aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge/myri10ge.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2009-08-31 15:50:58 -0400
committerDavid S. Miller <davem@davemloft.net>2009-09-01 04:14:07 -0400
commit61357325f377889a1daffa14962d705dc814dd0e (patch)
tree7b436f1097abbc5681de6d1e5901f62963b42220 /drivers/net/myri10ge/myri10ge.c
parentd0cf9c0dadcdc89a755bcb301cfc9c796eb28ccf (diff)
netdev: convert bulk of drivers to netdev_tx_t
In a couple of cases collapse some extra code like: int retval = NETDEV_TX_OK; ... return retval; into return NETDEV_TX_OK; Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/myri10ge/myri10ge.c')
-rw-r--r--drivers/net/myri10ge/myri10ge.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c
index 75deef35b1e0..6930c87f362e 100644
--- a/drivers/net/myri10ge/myri10ge.c
+++ b/drivers/net/myri10ge/myri10ge.c
@@ -360,7 +360,8 @@ MODULE_PARM_DESC(myri10ge_dca, "Enable DCA if possible");
360#define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8) 360#define myri10ge_pio_copy(to,from,size) __iowrite64_copy(to,from,size/8)
361 361
362static void myri10ge_set_multicast_list(struct net_device *dev); 362static void myri10ge_set_multicast_list(struct net_device *dev);
363static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev); 363static netdev_tx_t myri10ge_sw_tso(struct sk_buff *skb,
364 struct net_device *dev);
364 365
365static inline void put_be32(__be32 val, __be32 __iomem * p) 366static inline void put_be32(__be32 val, __be32 __iomem * p)
366{ 367{
@@ -2656,7 +2657,8 @@ myri10ge_submit_req(struct myri10ge_tx_buf *tx, struct mcp_kreq_ether_send *src,
2656 * it and try again. 2657 * it and try again.
2657 */ 2658 */
2658 2659
2659static int myri10ge_xmit(struct sk_buff *skb, struct net_device *dev) 2660static netdev_tx_t myri10ge_xmit(struct sk_buff *skb,
2661 struct net_device *dev)
2660{ 2662{
2661 struct myri10ge_priv *mgp = netdev_priv(dev); 2663 struct myri10ge_priv *mgp = netdev_priv(dev);
2662 struct myri10ge_slice_state *ss; 2664 struct myri10ge_slice_state *ss;
@@ -2947,12 +2949,13 @@ drop:
2947 2949
2948} 2950}
2949 2951
2950static int myri10ge_sw_tso(struct sk_buff *skb, struct net_device *dev) 2952static netdev_tx_t myri10ge_sw_tso(struct sk_buff *skb,
2953 struct net_device *dev)
2951{ 2954{
2952 struct sk_buff *segs, *curr; 2955 struct sk_buff *segs, *curr;
2953 struct myri10ge_priv *mgp = netdev_priv(dev); 2956 struct myri10ge_priv *mgp = netdev_priv(dev);
2954 struct myri10ge_slice_state *ss; 2957 struct myri10ge_slice_state *ss;
2955 int status; 2958 netdev_tx_t status;
2956 2959
2957 segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO6); 2960 segs = skb_gso_segment(skb, dev->features & ~NETIF_F_TSO6);
2958 if (IS_ERR(segs)) 2961 if (IS_ERR(segs))