diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-11-20 23:14:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-20 23:14:53 -0500 |
commit | 008298231abbeb91bc7be9e8b078607b816d1a4a (patch) | |
tree | 8cb0c17720086ef97c614b96241f06aa63ce8511 /drivers/net/atl1e | |
parent | 6ab33d51713d6d60c7677c0d020910a8cb37e513 (diff) |
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>
Diffstat (limited to 'drivers/net/atl1e')
-rw-r--r-- | drivers/net/atl1e/atl1e_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/atl1e/atl1e_main.c b/drivers/net/atl1e/atl1e_main.c index a815fffc2a5b..98b2a7a466b8 100644 --- a/drivers/net/atl1e/atl1e_main.c +++ b/drivers/net/atl1e/atl1e_main.c | |||
@@ -2256,6 +2256,7 @@ static void atl1e_shutdown(struct pci_dev *pdev) | |||
2256 | static const struct net_device_ops atl1e_netdev_ops = { | 2256 | static const struct net_device_ops atl1e_netdev_ops = { |
2257 | .ndo_open = atl1e_open, | 2257 | .ndo_open = atl1e_open, |
2258 | .ndo_stop = atl1e_close, | 2258 | .ndo_stop = atl1e_close, |
2259 | .ndo_start_xmit = atl1e_xmit_frame, | ||
2259 | .ndo_get_stats = atl1e_get_stats, | 2260 | .ndo_get_stats = atl1e_get_stats, |
2260 | .ndo_set_multicast_list = atl1e_set_multi, | 2261 | .ndo_set_multicast_list = atl1e_set_multi, |
2261 | .ndo_validate_addr = eth_validate_addr, | 2262 | .ndo_validate_addr = eth_validate_addr, |
@@ -2277,7 +2278,7 @@ static int atl1e_init_netdev(struct net_device *netdev, struct pci_dev *pdev) | |||
2277 | 2278 | ||
2278 | netdev->irq = pdev->irq; | 2279 | netdev->irq = pdev->irq; |
2279 | netdev->netdev_ops = &atl1e_netdev_ops; | 2280 | netdev->netdev_ops = &atl1e_netdev_ops; |
2280 | netdev->hard_start_xmit = atl1e_xmit_frame, | 2281 | |
2281 | netdev->watchdog_timeo = AT_TX_WATCHDOG; | 2282 | netdev->watchdog_timeo = AT_TX_WATCHDOG; |
2282 | atl1e_set_ethtool_ops(netdev); | 2283 | atl1e_set_ethtool_ops(netdev); |
2283 | 2284 | ||