Re: [PATCH for-next] RDMA/bnxt_re: Wait for all the CQ events before freeing CQ data structures

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

 



On Fri, Mar 13, 2020 at 10:34:02AM -0700, Selvin Xavier wrote:
> Destroy CQ command to firmware returns the num_cnq_events
> as a response. This indicates the driver about the number
> of CQ events generated for this CQ. Driver should wait
> for all these events before freeing the CQ host structures.
> Also, add routine to clean all the pending notification
> for the CQs getting destroyed. This avoids the possibility
> of accessing the CQ data structures after its freed.
> 
> Fixes: 1ac5a4047975 ("RDMA/bnxt_re: Add bnxt_re RoCE driver")
> Signed-off-by: Selvin Xavier <selvin.xavier@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/bnxt_re/qplib_fp.c | 74 ++++++++++++++++++++++++++++++++
>  drivers/infiniband/hw/bnxt_re/qplib_fp.h |  1 +
>  2 files changed, 75 insertions(+)

Applied to for-next, thanks

Jason



[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