diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-08-31 15:50:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-01 04:13:52 -0400 |
commit | 3b29a56d31d585d39bf9ffe9ef1f10bd637ee0f1 (patch) | |
tree | 32bef42ee7730a73422195347476d412a5cb8fde /drivers/net/igb | |
parent | 27a1de95a1461ec0589005c293d6ac23a46cb72d (diff) |
intel: convert drivers to netdev_tx_t
Get rid of some bogus return wrapping as well.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index cef4289d571..7a054d99bff 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -98,9 +98,11 @@ static void igb_set_multi(struct net_device *); | |||
98 | static void igb_update_phy_info(unsigned long); | 98 | static void igb_update_phy_info(unsigned long); |
99 | static void igb_watchdog(unsigned long); | 99 | static void igb_watchdog(unsigned long); |
100 | static void igb_watchdog_task(struct work_struct *); | 100 | static void igb_watchdog_task(struct work_struct *); |
101 | static int igb_xmit_frame_ring_adv(struct sk_buff *, struct net_device *, | 101 | static netdev_tx_t igb_xmit_frame_ring_adv(struct sk_buff *, |
102 | struct igb_ring *); | 102 | struct net_device *, |
103 | static int igb_xmit_frame_adv(struct sk_buff *skb, struct net_device *); | 103 | struct igb_ring *); |
104 | static netdev_tx_t igb_xmit_frame_adv(struct sk_buff *skb, | ||
105 | struct net_device *); | ||
104 | static struct net_device_stats *igb_get_stats(struct net_device *); | 106 | static struct net_device_stats *igb_get_stats(struct net_device *); |
105 | static int igb_change_mtu(struct net_device *, int); | 107 | static int igb_change_mtu(struct net_device *, int); |
106 | static int igb_set_mac(struct net_device *, void *); | 108 | static int igb_set_mac(struct net_device *, void *); |
@@ -3295,9 +3297,9 @@ static int igb_maybe_stop_tx(struct net_device *netdev, | |||
3295 | return __igb_maybe_stop_tx(netdev, tx_ring, size); | 3297 | return __igb_maybe_stop_tx(netdev, tx_ring, size); |
3296 | } | 3298 | } |
3297 | 3299 | ||
3298 | static int igb_xmit_frame_ring_adv(struct sk_buff *skb, | 3300 | static netdev_tx_t igb_xmit_frame_ring_adv(struct sk_buff *skb, |
3299 | struct net_device *netdev, | 3301 | struct net_device *netdev, |
3300 | struct igb_ring *tx_ring) | 3302 | struct igb_ring *tx_ring) |
3301 | { | 3303 | { |
3302 | struct igb_adapter *adapter = netdev_priv(netdev); | 3304 | struct igb_adapter *adapter = netdev_priv(netdev); |
3303 | unsigned int first; | 3305 | unsigned int first; |
@@ -3385,7 +3387,8 @@ static int igb_xmit_frame_ring_adv(struct sk_buff *skb, | |||
3385 | return NETDEV_TX_OK; | 3387 | return NETDEV_TX_OK; |
3386 | } | 3388 | } |
3387 | 3389 | ||
3388 | static int igb_xmit_frame_adv(struct sk_buff *skb, struct net_device *netdev) | 3390 | static netdev_tx_t igb_xmit_frame_adv(struct sk_buff *skb, |
3391 | struct net_device *netdev) | ||
3389 | { | 3392 | { |
3390 | struct igb_adapter *adapter = netdev_priv(netdev); | 3393 | struct igb_adapter *adapter = netdev_priv(netdev); |
3391 | struct igb_ring *tx_ring; | 3394 | struct igb_ring *tx_ring; |
@@ -3398,7 +3401,7 @@ static int igb_xmit_frame_adv(struct sk_buff *skb, struct net_device *netdev) | |||
3398 | * to a flow. Right now, performance is impacted slightly negatively | 3401 | * to a flow. Right now, performance is impacted slightly negatively |
3399 | * if using multiple tx queues. If the stack breaks away from a | 3402 | * if using multiple tx queues. If the stack breaks away from a |
3400 | * single qdisc implementation, we can look at this again. */ | 3403 | * single qdisc implementation, we can look at this again. */ |
3401 | return (igb_xmit_frame_ring_adv(skb, netdev, tx_ring)); | 3404 | return igb_xmit_frame_ring_adv(skb, netdev, tx_ring); |
3402 | } | 3405 | } |
3403 | 3406 | ||
3404 | /** | 3407 | /** |