mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
95554761d1
commit
b65eef0a5b
3 changed files with 13 additions and 22 deletions
|
|
@ -73,15 +73,6 @@ out:
|
|||
return wr_waitp->ret;
|
||||
}
|
||||
|
||||
/* Returns whether a CPL status conveys negative advice.
|
||||
*/
|
||||
static int cxgbit_is_neg_adv(unsigned int status)
|
||||
{
|
||||
return status == CPL_ERR_RTX_NEG_ADVICE ||
|
||||
status == CPL_ERR_PERSIST_NEG_ADVICE ||
|
||||
status == CPL_ERR_KEEPALV_NEG_ADVICE;
|
||||
}
|
||||
|
||||
static int cxgbit_np_hashfn(const struct cxgbit_np *cnp)
|
||||
{
|
||||
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)
|
|||
pr_debug("%s: csk %p; tid %u; state %d\n",
|
||||
__func__, csk, tid, csk->com.state);
|
||||
|
||||
if (cxgbit_is_neg_adv(hdr->status)) {
|
||||
if (cxgb_is_neg_adv(hdr->status)) {
|
||||
pr_err("%s: got neg advise %d on tid %u\n",
|
||||
__func__, hdr->status, tid);
|
||||
goto rel_skb;
|
||||
|
|
|
|||
Loading…
Reference in a new issue