projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba0154e
)
qed: add error handling flow to TID deregistratin posting failure
author
Ram Amrani
<
[email protected]
>
Sun, 30 Apr 2017 08:49:07 +0000
(11:49 +0300)
committer
David S. Miller
<
[email protected]
>
Mon, 1 May 2017 15:42:14 +0000
(11:42 -0400)
If the posting of the ramrod for the purpose of TID deregistration
fails, abort the deregistration operation without using the FW's
return code.
Signed-off-by: Ram Amrani <
[email protected]
>
Signed-off-by: Yuval Mintz <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/qlogic/qed/qed_roce.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qed/qed_roce.c
b/drivers/net/ethernet/qlogic/qed/qed_roce.c
index 01244d7beeb9e480ec4db87d2d1cee362ff67ca1..0c449ddc04de516f01184aa0ee1dbf2b8de834a2 100644
(file)
--- a/
drivers/net/ethernet/qlogic/qed/qed_roce.c
+++ b/
drivers/net/ethernet/qlogic/qed/qed_roce.c
@@
-2457,6
+2457,8
@@
qed_rdma_register_tid(void *rdma_cxt,
}
rc = qed_spq_post(p_hwfn, p_ent, &fw_return_code);
+ if (rc)
+ return rc;
if (fw_return_code != RDMA_RETURN_OK) {
DP_NOTICE(p_hwfn, "fw_return_code = %d\n", fw_return_code);