cnic: Return error code in cnic_cm_close() if unsuccessful.
So that bnx2i can handle the error condition immediately and not have to wait for timeout. Signed-off-by: Michael Chan <mchan@broadcom.com. Signed-off-by: Eddie Wai <waie@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2850062af1
commit
ed99daa5a0
1 changed files with 2 additions and 0 deletions
|
@ -3026,6 +3026,8 @@ static int cnic_cm_close(struct cnic_sock *csk)
|
||||||
if (cnic_close_prep(csk)) {
|
if (cnic_close_prep(csk)) {
|
||||||
csk->state = L4_KCQE_OPCODE_VALUE_CLOSE_COMP;
|
csk->state = L4_KCQE_OPCODE_VALUE_CLOSE_COMP;
|
||||||
return cnic_cm_close_req(csk);
|
return cnic_cm_close_req(csk);
|
||||||
|
} else {
|
||||||
|
return -EALREADY;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue