mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
RDMA/cxgb4: Handle NET_XMIT return codes
cxgb4_create_server() and cxgb4_create_server6() return NET_XMIT_* values or a negative errno. iw_cxgb4 need to handle this correctly. Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
5b34180883
commit
e6b11163d4
@ -3127,6 +3127,8 @@ static int create_server6(struct c4iw_dev *dev, struct c4iw_listen_ep *ep)
|
||||
err = c4iw_wait_for_reply(&ep->com.dev->rdev,
|
||||
&ep->com.wr_wait,
|
||||
0, 0, __func__);
|
||||
else if (err > 0)
|
||||
err = net_xmit_errno(err);
|
||||
if (err)
|
||||
pr_err("cxgb4_create_server6/filter failed err %d stid %d laddr %pI6 lport %d\n",
|
||||
err, ep->stid,
|
||||
@ -3160,6 +3162,8 @@ static int create_server4(struct c4iw_dev *dev, struct c4iw_listen_ep *ep)
|
||||
err = c4iw_wait_for_reply(&ep->com.dev->rdev,
|
||||
&ep->com.wr_wait,
|
||||
0, 0, __func__);
|
||||
else if (err > 0)
|
||||
err = net_xmit_errno(err);
|
||||
}
|
||||
if (err)
|
||||
pr_err("cxgb4_create_server/filter failed err %d stid %d laddr %pI4 lport %d\n"
|
||||
|
Loading…
Reference in New Issue
Block a user