Lines Matching refs:ndc

252 	const struct net_device_context *ndc = netdev_priv(ndev);
256 q_idx = ndc->tx_table[netvsc_get_hash(skb, ndc) &
298 struct net_device_context *ndc = netdev_priv(ndev);
303 vf_netdev = rcu_dereference(ndc->vf_netdev);
1162 struct net_device_context *ndc = netdev_priv(dev);
1164 ndc->l4_hash = HV_DEFAULT_L4HASH;
1166 ndc->speed = SPEED_UNKNOWN;
1167 ndc->duplex = DUPLEX_FULL;
1175 struct net_device_context *ndc = netdev_priv(dev);
1178 vf_netdev = rtnl_dereference(ndc->vf_netdev);
1183 cmd->base.speed = ndc->speed;
1184 cmd->base.duplex = ndc->duplex;
1193 struct net_device_context *ndc = netdev_priv(dev);
1194 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1205 &ndc->speed, &ndc->duplex);
1403 struct net_device_context *ndc = netdev_priv(ndev);
1404 struct net_device *vf_netdev = rtnl_dereference(ndc->vf_netdev);
1405 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1485 struct net_device_context *ndc = netdev_priv(dev);
1486 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1505 struct net_device_context *ndc = netdev_priv(dev);
1506 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1507 const void *nds = &ndc->eth_stats;
1578 struct net_device_context *ndc = netdev_priv(dev);
1579 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1615 netvsc_get_rss_hash_opts(struct net_device_context *ndc,
1624 if (ndc->l4_hash & HV_TCP4_L4HASH)
1630 if (ndc->l4_hash & HV_TCP6_L4HASH)
1636 if (ndc->l4_hash & HV_UDP4_L4HASH)
1642 if (ndc->l4_hash & HV_UDP6_L4HASH)
1662 struct net_device_context *ndc = netdev_priv(dev);
1663 struct netvsc_device *nvdev = rtnl_dereference(ndc->nvdev);
1674 return netvsc_get_rss_hash_opts(ndc, info);
1679 static int netvsc_set_rss_hash_opts(struct net_device_context *ndc,
1686 ndc->l4_hash |= HV_TCP4_L4HASH;
1690 ndc->l4_hash |= HV_TCP6_L4HASH;
1694 ndc->l4_hash |= HV_UDP4_L4HASH;
1698 ndc->l4_hash |= HV_UDP6_L4HASH;
1711 ndc->l4_hash &= ~HV_TCP4_L4HASH;
1715 ndc->l4_hash &= ~HV_TCP6_L4HASH;
1719 ndc->l4_hash &= ~HV_UDP4_L4HASH;
1723 ndc->l4_hash &= ~HV_UDP6_L4HASH;
1739 struct net_device_context *ndc = netdev_priv(ndev);
1742 return netvsc_set_rss_hash_opts(ndc, info);
1754 struct net_device_context *ndc = netdev_priv(dev);
1756 return ndc->rx_table_sz;
1762 struct net_device_context *ndc = netdev_priv(dev);
1763 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev);
1775 for (i = 0; i < ndc->rx_table_sz; i++)
1776 indir[i] = ndc->rx_table[i];
1788 struct net_device_context *ndc = netdev_priv(dev);
1789 struct netvsc_device *ndev = rtnl_dereference(ndc->nvdev);
1801 for (i = 0; i < ndc->rx_table_sz; i++)
1805 for (i = 0; i < ndc->rx_table_sz; i++)
1806 ndc->rx_table[i] = indir[i];
1975 struct net_device_context *ndc = netdev_priv(netdev);
1981 memcpy(regs_buff, ndc->tx_table, VRSS_SEND_TAB_SIZE * sizeof(u32));