diff options
author | Steve Wise <swise@opengridcomputing.com> | 2010-04-05 21:59:57 +0200 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-04-22 00:21:28 +0200 |
commit | 73a203d2014f50d874b9e40083ad481ca70408e8 (patch) | |
tree | 61e6b580a99d99b7428adbd5f5dc1d6731bdc548 /drivers/infiniband | |
parent | RDMA/cxgb3: Use the dma state API instead of pci equivalents (diff) | |
download | linux-73a203d2014f50d874b9e40083ad481ca70408e8.tar.xz linux-73a203d2014f50d874b9e40083ad481ca70408e8.zip |
RDMA/cxgb3: Don't free skbs on NET_XMIT_* indications from LLD
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/cxgb3/iwch_cm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c index 4fef03296276..cfd6db019f1e 100644 --- a/drivers/infiniband/hw/cxgb3/iwch_cm.c +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c @@ -151,7 +151,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; } @@ -167,7 +167,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; } |