History

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

Chandramohan Akula committed 2 years ago

Commit 181028a1 parent b4207635 files · +47 −2Browse files

Showing the changes to include/uapi (1 of 5 files). Show all

Unified · Split

include/uapi/rdma/bnxt_re-abi.h+6−0
@@ -141,8 +141,14 @@ struct bnxt_re_srq_req { · 140 unmodified lines
141141 __aligned_u64 srq_handle;
142142 };
143143
144+enum bnxt_re_srq_mask {
145+ BNXT_RE_SRQ_TOGGLE_PAGE_SUPPORT = 0x1,
146+};
147+
144148 struct bnxt_re_srq_resp {
145149 __u32 srqid;
150+ __u32 rsvd; /* padding */
151+ __aligned_u64 comp_mask;
146152 };
147153
148154 enum bnxt_re_shpg_offt {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t