Commit 4c72efef authored by Hariprasad S's avatar Hariprasad S Committed by Doug Ledford

RDMA/iw_cxgb4: Add missing error codes for act open cmd

Signed-off-by: default avatarSteve Wise <swise@opengridcomputing.com>
Signed-off-by: default avatarHariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent bce2841f
...@@ -2016,12 +2016,17 @@ static int send_fw_act_open_req(struct c4iw_ep *ep, unsigned int atid) ...@@ -2016,12 +2016,17 @@ static int send_fw_act_open_req(struct c4iw_ep *ep, unsigned int atid)
} }
/* /*
* Return whether a failed active open has allocated a TID * Some of the error codes above implicitly indicate that there is no TID
* allocated with the result of an ACT_OPEN. We use this predicate to make
* that explicit.
*/ */
static inline int act_open_has_tid(int status) static inline int act_open_has_tid(int status)
{ {
return status != CPL_ERR_TCAM_FULL && status != CPL_ERR_CONN_EXIST && return (status != CPL_ERR_TCAM_PARITY &&
status != CPL_ERR_ARP_MISS; status != CPL_ERR_TCAM_MISS &&
status != CPL_ERR_TCAM_FULL &&
status != CPL_ERR_CONN_EXIST_SYNRECV &&
status != CPL_ERR_CONN_EXIST);
} }
/* Returns whether a CPL status conveys negative advice. /* Returns whether a CPL status conveys negative advice.
......
...@@ -104,6 +104,8 @@ enum { ...@@ -104,6 +104,8 @@ enum {
enum CPL_error { enum CPL_error {
CPL_ERR_NONE = 0, CPL_ERR_NONE = 0,
CPL_ERR_TCAM_PARITY = 1,
CPL_ERR_TCAM_MISS = 2,
CPL_ERR_TCAM_FULL = 3, CPL_ERR_TCAM_FULL = 3,
CPL_ERR_BAD_LENGTH = 15, CPL_ERR_BAD_LENGTH = 15,
CPL_ERR_BAD_ROUTE = 18, CPL_ERR_BAD_ROUTE = 18,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment