diff options
author | Feras Daoud <ferasda@mellanox.com> | 2016-12-28 13:47:25 +0100 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-12 20:01:04 +0100 |
commit | d32b9a81d7c9bf111536b547a60b50c8dd7fccd1 (patch) | |
tree | b3c0f7cdbbdfa02a28c31cc49d82f1b4f99a7875 /drivers/infiniband/ulp/ipoib/ipoib_main.c | |
parent | IB/ipoib: rtnl_unlock can not come after free_netdev (diff) | |
download | linux-d32b9a81d7c9bf111536b547a60b50c8dd7fccd1.tar.xz linux-d32b9a81d7c9bf111536b547a60b50c8dd7fccd1.zip |
IB/ipoib: Add detailed error message to dev_queue_xmit call
Add a detailed return code to dev_queue_xmit function when
calling to requeue packet via __skb_dequeue.
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Erez Shitrit <erezsh@mellanox.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_main.c')
-rw-r--r-- | drivers/infiniband/ulp/ipoib/ipoib_main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_main.c b/drivers/infiniband/ulp/ipoib/ipoib_main.c index 045f844d7f4a..1086858f1cbf 100644 --- a/drivers/infiniband/ulp/ipoib/ipoib_main.c +++ b/drivers/infiniband/ulp/ipoib/ipoib_main.c @@ -843,10 +843,12 @@ static void path_rec_completion(int status, ipoib_put_ah(old_ah); while ((skb = __skb_dequeue(&skqueue))) { + int ret; skb->dev = dev; - if (dev_queue_xmit(skb)) - ipoib_warn(priv, "dev_queue_xmit failed " - "to requeue packet\n"); + ret = dev_queue_xmit(skb); + if (ret) + ipoib_warn(priv, "%s: dev_queue_xmit failed to re-queue packet, ret:%d\n", + __func__, ret); } } |