]> git.hungrycats.org Git - linux/commitdiff
RDMA/cxgb3: Don't free skbs on NET_XMIT_* indications from LLD
authorSteve Wise <swise@opengridcomputing.com>
Mon, 5 Apr 2010 19:59:57 +0000 (19:59 +0000)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 Mar 2016 13:25:48 +0000 (14:25 +0100)
commit 73a203d2014f50d874b9e40083ad481ca70408e8 upstream.

The low level cxgb3 driver can return NET_XMIT_CN and friends.
The iw_cxgb3 driver should _not_ treat these as errors.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/infiniband/hw/cxgb3/iwch_cm.c

index 675fc042bc6003d2bcf291bddc63f579e53a0f4c..148f288c871f8bcee610af676123c26bce245c97 100644 (file)
@@ -150,7 +150,7 @@ int iwch_l2t_send(struct t3cdev *tdev, struct sk_buff *skb, struct l2t_entry *l2
                return -EIO;
        }
        error = l2t_send(tdev, skb, l2e);
-       if (error)
+       if (error < 0)
                kfree_skb(skb);
        return error;
 }
@@ -166,7 +166,7 @@ int iwch_cxgb3_ofld_send(struct t3cdev *tdev, struct sk_buff *skb)
                return -EIO;
        }
        error = cxgb3_ofld_send(tdev, skb);
-       if (error)
+       if (error < 0)
                kfree_skb(skb);
        return error;
 }