Lines Matching refs:ndc

252 	const struct net_device_context *ndc)
281 if (pkt_proto & ndc->l4_hash) {
300 const struct net_device_context *ndc = netdev_priv(ndev);
304 q_idx = ndc->tx_table[netvsc_get_hash(skb, ndc) &
346 struct net_device_context *ndc = netdev_priv(ndev);
351 vf_netdev = rcu_dereference(ndc->vf_netdev);
1177 struct net_device_context *ndc = netdev_priv(dev);
1179 ndc->l4_hash = HV_DEFAULT_L4HASH;
1181 ndc->speed = SPEED_UNKNOWN;
1182 ndc->duplex = DUPLEX_FULL;
1190 struct net_device_context *ndc = netdev_priv(dev);
1193 vf_netdev = rtnl_dereference(ndc->vf_netdev);
1198 cmd->base.speed = ndc->speed;
1199 cmd->base.duplex = ndc->duplex;
1208 struct net_device_context *ndc = netdev_priv(dev);
1209 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1220 &ndc->speed, &ndc->duplex);
1416 struct net_device_context *ndc = netdev_priv(ndev);
1417 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1418 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1498 struct net_device_context *ndc = netdev_priv(dev);
1499 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1518 struct net_device_context *ndc = netdev_priv(dev);
1519 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1520 const void *nds = &ndc->eth_stats;
1581 struct net_device_context *ndc = netdev_priv(dev);
1582 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1626 netvsc_get_rss_hash_opts(struct net_device_context *ndc,
1635 if (ndc->l4_hash & HV_TCP4_L4HASH)
1641 if (ndc->l4_hash & HV_TCP6_L4HASH)
1647 if (ndc->l4_hash & HV_UDP4_L4HASH)
1653 if (ndc->l4_hash & HV_UDP6_L4HASH)
1673 struct net_device_context *ndc = netdev_priv(dev);
1674 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1685 return netvsc_get_rss_hash_opts(ndc, info);
1690 static int netvsc_set_rss_hash_opts(struct net_device_context *ndc,
1697 ndc->l4_hash |= HV_TCP4_L4HASH;
1701 ndc->l4_hash |= HV_TCP6_L4HASH;
1705 ndc->l4_hash |= HV_UDP4_L4HASH;
1709 ndc->l4_hash |= HV_UDP6_L4HASH;
1722 ndc->l4_hash &= ~HV_TCP4_L4HASH;
1726 ndc->l4_hash &= ~HV_TCP6_L4HASH;
1730 ndc->l4_hash &= ~HV_UDP4_L4HASH;
1734 ndc->l4_hash &= ~HV_UDP6_L4HASH;
1750 struct net_device_context *ndc = netdev_priv(ndev);
1753 return netvsc_set_rss_hash_opts(ndc, info);
1771 struct net_device_context *ndc = netdev_priv(dev);
1772 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev);
1785 indir[i] = ndc->rx_table[i];
1797 struct net_device_context *ndc = netdev_priv(dev);
1798 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev);
1815 ndc->rx_table[i] = indir[i];
1980 struct net_device_context *ndc = netdev_priv(netdev);
1986 memcpy(regs_buff, ndc->tx_table, VRSS_SEND_TAB_SIZE * sizeof(u32));