diff options
| author | Selvin Xavier <selvin.xavier@broadcom.com> | 2026-06-16 01:47:47 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-16 20:30:40 +0300 |
| commit | 441baa79043431807115fd030d7d0bb14ed441a0 (patch) | |
| tree | 6b77ebd1d55fcd609cd0b5aca33b12f49b60ee98 /include/linux/array_size.h | |
| parent | 87267803a8c824616eb147c5dad7030a5db6f878 (diff) | |
| download | linux-441baa79043431807115fd030d7d0bb14ed441a0.tar.xz | |
RDMA/bnxt_re: Avoid repeated requests to allocate WC pages
Applications can request multiple WC pages for the same ucontext.
As of now, only 1 WC page per ucontext is supported. Add a lock to
avoid concurrent access and a check to fail repeated requests.
Also, if the mmap entry insert fails for the WC, free the Doorbell
page index mapped for the WC page.
Fixes: eee6268421a2 ("RDMA/bnxt_re: Move the UAPI methods to a dedicated file")
Fixes: 360da60d6c6e ("RDMA/bnxt_re: Enable low latency push")
Link: https://patch.msgid.link/r/20260615224751.232802-12-selvin.xavier@broadcom.com
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/linux/array_size.h')
0 files changed, 0 insertions, 0 deletions
