Skip to content

Add ZTE zrdma provider #1611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add ZTE zrdma provider #1611

wants to merge 8 commits into from

Conversation

ztefuyan
Copy link

zrdma is introduced to support RDMA RoCEv2 verbs for ZTE Dinghai ASIC NX series NICs.
Supported service Type: RC,UD
Supported operation type: send,write,read
Retransmission: Go Bake to N

ztefuyan and others added 8 commits May 27, 2025 11:19
This patch add code mainframework for RDMA userspace library of zxdh zrdma.
Including operation functions for register zxdh device zrdma.

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
This patch add the following verbs:
reg_mr
rereg_mr
dereg_mr
alloc_mw
bind_mw
dealloc_mw

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
This patch add the following verbs:
create_cq
destroy_cq
modify_cq
poll_cq
req_notify_cq
resize_cq
cq_event

also add other information:
debug interface function
private interface for operation hardware

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
This patch add the following verbs:
create_qp
destroy_qp
modify_qp
post_send
post_recv
create_ah
destroy_ah

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
This patch add the following verbs:
create_srq
destroy_srq
modify_srq
post_srq_recv
get_srq_num

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
Thia patch add the following verbs:
query_device_ex
query_port
attach_mcast
detach_mcast
This patch also add the following function:
add support for new vendor id and device id
add support for private verbs interface
use ZXDH_DEBUG_MASK to control debug level log
use ZXDH_WRITE_IMM_SPILIT_RNABLE to fix write with immediate bug

on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
rinl_buf->wqe_list will be double-freed in error flow, first in
alloc_recv_rinl_buf() and then in free_recv_rinl_buf(). Actually
free_recv_rinl_buf() shouldn't be called when alloc_recv_rinl_buf()
failed.

Fixes: 83b0baf ("libhns: Refactor rq inline")
Signed-off-by: wenglianfa <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
on-behalf-of: @ZTE [email protected]

Signed-off-by: zte_lifuyan <[email protected]>
Signed-off-by: ztefuyan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants