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/niu.c | |
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/niu.c')
-rw-r--r-- | drivers/net/niu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/niu.c b/drivers/net/niu.c index 318537efd583..a8d10630f804 100644 --- a/drivers/net/niu.c +++ b/drivers/net/niu.c | |||
@@ -8892,6 +8892,7 @@ static struct net_device * __devinit niu_alloc_and_init( | |||
8892 | static const struct net_device_ops niu_netdev_ops = { | 8892 | static const struct net_device_ops niu_netdev_ops = { |
8893 | .ndo_open = niu_open, | 8893 | .ndo_open = niu_open, |
8894 | .ndo_stop = niu_close, | 8894 | .ndo_stop = niu_close, |
8895 | .ndo_start_xmit = niu_start_xmit, | ||
8895 | .ndo_get_stats = niu_get_stats, | 8896 | .ndo_get_stats = niu_get_stats, |
8896 | .ndo_set_multicast_list = niu_set_rx_mode, | 8897 | .ndo_set_multicast_list = niu_set_rx_mode, |
8897 | .ndo_validate_addr = eth_validate_addr, | 8898 | .ndo_validate_addr = eth_validate_addr, |
@@ -8904,7 +8905,6 @@ static const struct net_device_ops niu_netdev_ops = { | |||
8904 | static void __devinit niu_assign_netdev_ops(struct net_device *dev) | 8905 | static void __devinit niu_assign_netdev_ops(struct net_device *dev) |
8905 | { | 8906 | { |
8906 | dev->netdev_ops = &niu_netdev_ops; | 8907 | dev->netdev_ops = &niu_netdev_ops; |
8907 | dev->hard_start_xmit = niu_start_xmit; | ||
8908 | dev->ethtool_ops = &niu_ethtool_ops; | 8908 | dev->ethtool_ops = &niu_ethtool_ops; |
8909 | dev->watchdog_timeo = NIU_TX_TIMEOUT; | 8909 | dev->watchdog_timeo = NIU_TX_TIMEOUT; |
8910 | } | 8910 | } |