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
@ -3805,6 +3805,7 @@ static __exit void skge_debug_cleanup(void)
|
||||
static const struct net_device_ops skge_netdev_ops = {
|
||||
.ndo_open = skge_up,
|
||||
.ndo_stop = skge_down,
|
||||
.ndo_start_xmit = skge_xmit_frame,
|
||||
.ndo_do_ioctl = skge_ioctl,
|
||||
.ndo_get_stats = skge_get_stats,
|
||||
.ndo_tx_timeout = skge_tx_timeout,
|
||||
@ -3831,7 +3832,6 @@ static struct net_device *skge_devinit(struct skge_hw *hw, int port,
|
||||
}
|
||||
|
||||
SET_NETDEV_DEV(dev, &hw->pdev->dev);
|
||||
dev->hard_start_xmit = skge_xmit_frame;
|
||||
dev->netdev_ops = &skge_netdev_ops;
|
||||
dev->ethtool_ops = &skge_ethtool_ops;
|
||||
dev->watchdog_timeo = TX_WATCHDOG;
|
||||
|
Reference in New Issue
Block a user