netdev: add more functions to netdevice ops
This patch moves neigh_setup and hard_start_xmit into the network device ops structure. For bisection, fix all the previously converted drivers as well. Bonding driver took the biggest hit on this. Added a prefetch of the hard_start_xmit in the fast path to try and reduce any impact this would have. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6ab33d5171
commit
008298231a
@@ -2955,7 +2955,6 @@ static int __devinit init_one(struct pci_dev *pdev,
|
||||
|
||||
netdev->features |= NETIF_F_HW_VLAN_TX | NETIF_F_HW_VLAN_RX;
|
||||
netdev->netdev_ops = &cxgb_netdev_ops;
|
||||
netdev->hard_start_xmit = t3_eth_xmit;
|
||||
SET_ETHTOOL_OPS(netdev, &cxgb_ethtool_ops);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user