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
@@ -2615,6 +2615,7 @@ static int e100_close(struct net_device *netdev)
|
||||
static const struct net_device_ops e100_netdev_ops = {
|
||||
.ndo_open = e100_open,
|
||||
.ndo_stop = e100_close,
|
||||
.ndo_start_xmit = e100_xmit_frame,
|
||||
.ndo_validate_addr = eth_validate_addr,
|
||||
.ndo_set_multicast_list = e100_set_multicast_list,
|
||||
.ndo_set_mac_address = e100_set_mac_address,
|
||||
@@ -2640,7 +2641,6 @@ static int __devinit e100_probe(struct pci_dev *pdev,
|
||||
}
|
||||
|
||||
netdev->netdev_ops = &e100_netdev_ops;
|
||||
netdev->hard_start_xmit = e100_xmit_frame;
|
||||
SET_ETHTOOL_OPS(netdev, &e100_ethtool_ops);
|
||||
netdev->watchdog_timeo = E100_WATCHDOG_PERIOD;
|
||||
strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1);
|
||||
|
Reference in New Issue
Block a user