public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Steve Wise
	<swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>,
	dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH for-next] iw_cxgb4: remove BUG_ON() usage.
Date: Mon, 6 Nov 2017 09:23:48 -0500	[thread overview]
Message-ID: <e0576722-2c47-9020-34b4-dea7983600a9@intel.com> (raw)
In-Reply-To: <20171103195527.E4AE72BC82-ff04S8wfc4plDsoTORJclLwze2ij/50Q0E9HWUfgJXw@public.gmane.org>

On 11/2/2017 5:11 PM, Steve Wise wrote:
> iw_cxgb4 has many BUG_ON()s that were left over from various enhancemnets
> made over the years.  Almost all of them should just be removed.  Some,
> however indicate a ULP usage error and can be handled w/o bringing down
> the system.
> 
> If the condition cannot happen with correctly implemented cxgb4 sw/fw,
> then remove the BUG_ON.
> 
> If the condition indicates a misbehaving ULP (like CQ overflows), add
> proper recovery logic.
> 
> Signed-off-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
> ---
>   drivers/infiniband/hw/cxgb4/cm.c       | 25 +++++++++----------------
>   drivers/infiniband/hw/cxgb4/cq.c       | 10 ----------
>   drivers/infiniband/hw/cxgb4/id_table.c |  1 -
>   drivers/infiniband/hw/cxgb4/iw_cxgb4.h |  1 -
>   drivers/infiniband/hw/cxgb4/provider.c |  4 ++--
>   drivers/infiniband/hw/cxgb4/qp.c       |  3 ---
>   drivers/infiniband/hw/cxgb4/t4.h       |  7 ++-----
>   7 files changed, 13 insertions(+), 38 deletions(-)

Awesome to see these go away.

Reviewed-by: Dennis Dalessandro <dennis.dalessandro-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-11-06 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-02 21:11 [PATCH for-next] iw_cxgb4: remove BUG_ON() usage Steve Wise
     [not found] ` <20171103195527.E4AE72BC82-ff04S8wfc4plDsoTORJclLwze2ij/50Q0E9HWUfgJXw@public.gmane.org>
2017-11-06 14:23   ` Dennis Dalessandro [this message]
     [not found]     ` <e0576722-2c47-9020-34b4-dea7983600a9-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2017-11-13 20:13       ` Doug Ledford

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e0576722-2c47-9020-34b4-dea7983600a9@intel.com \
    --to=dennis.dalessandro-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox