diff options
| author | Varun Prakash <varun@chelsio.com> | 2016-09-13 11:53:59 -0400 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2016-09-15 20:49:19 -0400 |
| commit | b65eef0a5b1a635f9b056cf74d3ef778f3794a75 (patch) | |
| tree | d3aa3cd881f9079fd6b5c0a15462a608407e1c62 /drivers/target | |
| parent | 95554761d1db54f7c058cc0ed389282ce7361999 (diff) | |
libcxgb,iw_cxgb4,cxgbit: add cxgb_is_neg_adv()
Add cxgb_is_neg_adv() in libcxgb_cm.h to remove
it's duplicate definitions from cxgb4/cm.c and
cxgbit/cxgbit_cm.c.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/target')
| -rw-r--r-- | drivers/target/iscsi/cxgbit/cxgbit_cm.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/target/iscsi/cxgbit/cxgbit_cm.c b/drivers/target/iscsi/cxgbit/cxgbit_cm.c index e961ac4bf5db..c46bdd5d58ca 100644 --- a/drivers/target/iscsi/cxgbit/cxgbit_cm.c +++ b/drivers/target/iscsi/cxgbit/cxgbit_cm.c | |||
| @@ -73,15 +73,6 @@ out: | |||
| 73 | return wr_waitp->ret; | 73 | return wr_waitp->ret; |
| 74 | } | 74 | } |
| 75 | 75 | ||
| 76 | /* Returns whether a CPL status conveys negative advice. | ||
| 77 | */ | ||
| 78 | static int cxgbit_is_neg_adv(unsigned int status) | ||
| 79 | { | ||
| 80 | return status == CPL_ERR_RTX_NEG_ADVICE || | ||
| 81 | status == CPL_ERR_PERSIST_NEG_ADVICE || | ||
| 82 | status == CPL_ERR_KEEPALV_NEG_ADVICE; | ||
| 83 | } | ||
| 84 | |||
| 85 | static int cxgbit_np_hashfn(const struct cxgbit_np *cnp) | 76 | static int cxgbit_np_hashfn(const struct cxgbit_np *cnp) |
| 86 | { | 77 | { |
| 87 | return ((unsigned long)cnp >> 10) & (NP_INFO_HASH_SIZE - 1); | 78 | return ((unsigned long)cnp >> 10) & (NP_INFO_HASH_SIZE - 1); |
| @@ -1704,7 +1695,7 @@ static void cxgbit_abort_req_rss(struct cxgbit_sock *csk, struct sk_buff *skb) | |||
| 1704 | pr_debug("%s: csk %p; tid %u; state %d\n", | 1695 | pr_debug("%s: csk %p; tid %u; state %d\n", |
| 1705 | __func__, csk, tid, csk->com.state); | 1696 | __func__, csk, tid, csk->com.state); |
| 1706 | 1697 | ||
| 1707 | if (cxgbit_is_neg_adv(hdr->status)) { | 1698 | if (cxgb_is_neg_adv(hdr->status)) { |
| 1708 | pr_err("%s: got neg advise %d on tid %u\n", | 1699 | pr_err("%s: got neg advise %d on tid %u\n", |
| 1709 | __func__, hdr->status, tid); | 1700 | __func__, hdr->status, tid); |
| 1710 | goto rel_skb; | 1701 | goto rel_skb; |
