[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <531611FC.4000202@cogentembedded.com>
Date: Tue, 04 Mar 2014 20:48:44 +0300
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Hariprasad Shenai <hariprasad@...lsio.com>, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org
CC: davem@...emloft.net, roland@...estorage.com, kumaras@...lsio.com,
dm@...lsio.com, swise@...ngridcomputing.com, leedom@...lsio.com,
santosh@...lsio.com, nirranjan@...lsio.com
Subject: Re: [PATCHv3 net-next 09/31] iw_cxgb4: Treat CPL_ERR_KEEPALV_NEG_ADVICE
as negative advice.
On 03/04/2014 03:41 PM, Hariprasad Shenai wrote:
> From: Steve Wise <swise@...ngridcomputing.com>
> Based on original work by Anand Priyadarshee <anandp@...lsio.com>.
> Signed-off-by: Steve Wise <swise@...ngridcomputing.com>
[...]
> diff --git a/drivers/infiniband/hw/cxgb4/cm.c b/drivers/infiniband/hw/cxgb4/cm.c
> index 74a2250..c63dfe5 100644
> --- a/drivers/infiniband/hw/cxgb4/cm.c
> +++ b/drivers/infiniband/hw/cxgb4/cm.c
> @@ -1648,6 +1648,15 @@ static inline int act_open_has_tid(int status)
> status != CPL_ERR_ARP_MISS;
> }
>
> +/* Returns whether a CPL status conveys negative advice.
> + */
Hm, why not just make this one-line comment? Sorry that I haven't said
that before.
> +static int 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;
> +}
> +
> #define ACT_OPEN_RETRY_COUNT 2
>
> static int import_ep(struct c4iw_ep *ep, int iptype, __u8 *peer_ip,
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists