Skip to content

Commit

Permalink
bnxt_re/lib: Add new uapi to notify the driver
Browse files Browse the repository at this point in the history
Add uverb API to notify the driver about the
doorbell FIFO congestion.

Signed-off-by: Chandramohan Akula <[email protected]>
Signed-off-by: Selvin Xavier <[email protected]>
  • Loading branch information
chandramohan-akula authored and selvintxavier committed Aug 2, 2023
1 parent 291ca55 commit 3a1e777
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/bnxt_re/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ void bnxt_re_put_pbuf(struct bnxt_re_context *cntx,
int bnxt_re_alloc_page(struct ibv_context *ibvctx,
struct bnxt_re_mmap_info *minfo,
uint32_t *page_handle);
int bnxt_re_notify_drv(struct ibv_context *ibvctx);

/* pointer conversion functions*/
static inline struct bnxt_re_dev *to_bnxt_re_dev(struct ibv_device *ibvdev)
{
Expand Down
10 changes: 10 additions & 0 deletions providers/bnxt_re/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ static int bnxt_re_map_db_page(struct ibv_context *ibvctx,
return 0;
}

int bnxt_re_notify_drv(struct ibv_context *ibvctx)
{
DECLARE_COMMAND_BUFFER(cmd,
BNXT_RE_OBJECT_NOTIFY_DRV,
BNXT_RE_METHOD_NOTIFY_DRV,
0);

return execute_ioctl(ibvctx, cmd);
}

int bnxt_re_alloc_page(struct ibv_context *ibvctx,
struct bnxt_re_mmap_info *minfo,
uint32_t *page_handle)
Expand Down

0 comments on commit 3a1e777

Please sign in to comment.