Lines Matching refs:ndc

252 	const struct net_device_context *ndc = netdev_priv(ndev);  in netvsc_get_tx_queue()  local
256 q_idx = ndc->tx_table[netvsc_get_hash(skb, ndc) & in netvsc_get_tx_queue()
298 struct net_device_context *ndc = netdev_priv(ndev); in netvsc_select_queue() local
303 vf_netdev = rcu_dereference(ndc->vf_netdev); in netvsc_select_queue()
1163 struct net_device_context *ndc = netdev_priv(dev); in netvsc_init_settings() local
1165 ndc->l4_hash = HV_DEFAULT_L4HASH; in netvsc_init_settings()
1167 ndc->speed = SPEED_UNKNOWN; in netvsc_init_settings()
1168 ndc->duplex = DUPLEX_FULL; in netvsc_init_settings()
1176 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_link_ksettings() local
1179 vf_netdev = rtnl_dereference(ndc->vf_netdev); in netvsc_get_link_ksettings()
1184 cmd->base.speed = ndc->speed; in netvsc_get_link_ksettings()
1185 cmd->base.duplex = ndc->duplex; in netvsc_get_link_ksettings()
1194 struct net_device_context *ndc = netdev_priv(dev); in netvsc_set_link_ksettings() local
1195 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev); in netvsc_set_link_ksettings()
1206 &ndc->speed, &ndc->duplex); in netvsc_set_link_ksettings()
1404 struct net_device_context *ndc = netdev_priv(ndev); in netvsc_set_mac_addr() local
1405 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev); in netvsc_set_mac_addr()
1406 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev); in netvsc_set_mac_addr()
1486 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_sset_count() local
1487 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev); in netvsc_get_sset_count()
1506 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_ethtool_stats() local
1507 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev); in netvsc_get_ethtool_stats()
1508 const void *nds = &ndc->eth_stats; in netvsc_get_ethtool_stats()
1579 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_strings() local
1580 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev); in netvsc_get_strings()
1616 netvsc_get_rss_hash_opts(struct net_device_context *ndc, in netvsc_get_rss_hash_opts() argument
1625 if (ndc->l4_hash & HV_TCP4_L4HASH) in netvsc_get_rss_hash_opts()
1631 if (ndc->l4_hash & HV_TCP6_L4HASH) in netvsc_get_rss_hash_opts()
1637 if (ndc->l4_hash & HV_UDP4_L4HASH) in netvsc_get_rss_hash_opts()
1643 if (ndc->l4_hash & HV_UDP6_L4HASH) in netvsc_get_rss_hash_opts()
1663 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_rxnfc() local
1664 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev); in netvsc_get_rxnfc()
1675 return netvsc_get_rss_hash_opts(ndc, info); in netvsc_get_rxnfc()
1680 static int netvsc_set_rss_hash_opts(struct net_device_context *ndc, in netvsc_set_rss_hash_opts() argument
1687 ndc->l4_hash |= HV_TCP4_L4HASH; in netvsc_set_rss_hash_opts()
1691 ndc->l4_hash |= HV_TCP6_L4HASH; in netvsc_set_rss_hash_opts()
1695 ndc->l4_hash |= HV_UDP4_L4HASH; in netvsc_set_rss_hash_opts()
1699 ndc->l4_hash |= HV_UDP6_L4HASH; in netvsc_set_rss_hash_opts()
1712 ndc->l4_hash &= ~HV_TCP4_L4HASH; in netvsc_set_rss_hash_opts()
1716 ndc->l4_hash &= ~HV_TCP6_L4HASH; in netvsc_set_rss_hash_opts()
1720 ndc->l4_hash &= ~HV_UDP4_L4HASH; in netvsc_set_rss_hash_opts()
1724 ndc->l4_hash &= ~HV_UDP6_L4HASH; in netvsc_set_rss_hash_opts()
1740 struct net_device_context *ndc = netdev_priv(ndev); in netvsc_set_rxnfc() local
1743 return netvsc_set_rss_hash_opts(ndc, info); in netvsc_set_rxnfc()
1755 struct net_device_context *ndc = netdev_priv(dev); in netvsc_rss_indir_size() local
1757 return ndc->rx_table_sz; in netvsc_rss_indir_size()
1763 struct net_device_context *ndc = netdev_priv(dev); in netvsc_get_rxfh() local
1764 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev); in netvsc_get_rxfh()
1775 for (i = 0; i < ndc->rx_table_sz; i++) in netvsc_get_rxfh()
1776 rxfh->indir[i] = ndc->rx_table[i]; in netvsc_get_rxfh()
1789 struct net_device_context *ndc = netdev_priv(dev); in netvsc_set_rxfh() local
1790 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev); in netvsc_set_rxfh()
1804 for (i = 0; i < ndc->rx_table_sz; i++) in netvsc_set_rxfh()
1808 for (i = 0; i < ndc->rx_table_sz; i++) in netvsc_set_rxfh()
1809 ndc->rx_table[i] = rxfh->indir[i]; in netvsc_set_rxfh()
1978 struct net_device_context *ndc = netdev_priv(netdev); in netvsc_get_regs() local
1984 memcpy(regs_buff, ndc->tx_table, VRSS_SEND_TAB_SIZE * sizeof(u32)); in netvsc_get_regs()