Re: [PATCH for-next] iw_cxgb4: remove BUG_ON() usage.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx>
---
  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@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux