aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/myri10ge/myri10ge.c
diff options
context:
space:
mode:
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))