]> git.hungrycats.org Git - linux/commit
RDMA/bnxt_re: Share a page to expose per SRQ info with userspace
authorChandramohan Akula <chandramohan.akula@broadcom.com>
Thu, 29 Aug 2024 15:34:05 +0000 (08:34 -0700)
committerLeon Romanovsky <leon@kernel.org>
Mon, 2 Sep 2024 07:10:36 +0000 (10:10 +0300)
commit181028a0d84cdcc7ac86d05cc49eaa416ce85c8b
tree4b545197838197067cef61b8ed097162ae341fb3
parentb4207630e0040b2f8d59ee28bb645771db31d37f
RDMA/bnxt_re: Share a page to expose per SRQ info with userspace

Gen P7 adapters needs to share a toggle bits information received
in kernel driver with the user space. User space needs this
info to arm the SRQ.

User space application can get this page using the
UAPI routines. Library will mmap this page and get the
toggle bits to be used in the next ARM Doorbell.

Uses a hash list to map the SRQ structure from the SRQ ID.
SRQ structure is retrieved from the hash list while the
library calls the UAPI routine to get the toggle page
mapping. Currently the full page is mapped per SRQ. This
can be optimized to enable multiple SRQs from the same
application share the same page and different offsets
in the page

Signed-off-by: Chandramohan Akula <chandramohan.akula@broadcom.com>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Link: https://patch.msgid.link/1724945645-14989-4-git-send-email-selvin.xavier@broadcom.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/bnxt_re.h
drivers/infiniband/hw/bnxt_re/ib_verbs.c
drivers/infiniband/hw/bnxt_re/ib_verbs.h
drivers/infiniband/hw/bnxt_re/main.c
include/uapi/rdma/bnxt_re-abi.h