diff options
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index a7d14aae258a..9d5c1786c664 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -5135,7 +5135,8 @@ static void tg3_set_txd(struct tg3_napi *tnapi, int entry, | |||
5135 | /* hard_start_xmit for devices that don't have any bugs and | 5135 | /* hard_start_xmit for devices that don't have any bugs and |
5136 | * support TG3_FLG2_HW_TSO_2 only. | 5136 | * support TG3_FLG2_HW_TSO_2 only. |
5137 | */ | 5137 | */ |
5138 | static int tg3_start_xmit(struct sk_buff *skb, struct net_device *dev) | 5138 | static netdev_tx_t tg3_start_xmit(struct sk_buff *skb, |
5139 | struct net_device *dev) | ||
5139 | { | 5140 | { |
5140 | struct tg3 *tp = netdev_priv(dev); | 5141 | struct tg3 *tp = netdev_priv(dev); |
5141 | u32 len, entry, base_flags, mss; | 5142 | u32 len, entry, base_flags, mss; |
@@ -5251,7 +5252,8 @@ out_unlock: | |||
5251 | return NETDEV_TX_OK; | 5252 | return NETDEV_TX_OK; |
5252 | } | 5253 | } |
5253 | 5254 | ||
5254 | static int tg3_start_xmit_dma_bug(struct sk_buff *, struct net_device *); | 5255 | static netdev_tx_t tg3_start_xmit_dma_bug(struct sk_buff *, |
5256 | struct net_device *); | ||
5255 | 5257 | ||
5256 | /* Use GSO to workaround a rare TSO bug that may be triggered when the | 5258 | /* Use GSO to workaround a rare TSO bug that may be triggered when the |
5257 | * TSO header is greater than 80 bytes. | 5259 | * TSO header is greater than 80 bytes. |
@@ -5290,7 +5292,8 @@ tg3_tso_bug_end: | |||
5290 | /* hard_start_xmit for devices that have the 4G bug and/or 40-bit bug and | 5292 | /* hard_start_xmit for devices that have the 4G bug and/or 40-bit bug and |
5291 | * support TG3_FLG2_HW_TSO_1 or firmware TSO only. | 5293 | * support TG3_FLG2_HW_TSO_1 or firmware TSO only. |
5292 | */ | 5294 | */ |
5293 | static int tg3_start_xmit_dma_bug(struct sk_buff *skb, struct net_device *dev) | 5295 | static netdev_tx_t tg3_start_xmit_dma_bug(struct sk_buff *skb, |
5296 | struct net_device *dev) | ||
5294 | { | 5297 | { |
5295 | struct tg3 *tp = netdev_priv(dev); | 5298 | struct tg3 *tp = netdev_priv(dev); |
5296 | u32 len, entry, base_flags, mss; | 5299 | u32 len, entry, base_flags, mss; |