mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
RDMA/mlx5: Add attr for max number page list length for PI operation
PI offload (protection information) is a feature that each RDMA provider can implement differently. Thus, introduce new device attribute to define the maximal length of the page list for PI fast registration operation. For example, mlx5 driver uses a single internal MR to map both data and protection SGL's, so it's equal to max_fast_reg_page_list_len / 2. Signed-off-by: Max Gurtovoy <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
6c984472ba
commit
62e3c379d4
2 changed files with 3 additions and 0 deletions
|
|
@ -390,6 +390,7 @@ struct ib_device_attr {
|
|||
int max_srq_wr;
|
||||
int max_srq_sge;
|
||||
unsigned int max_fast_reg_page_list_len;
|
||||
unsigned int max_pi_fast_reg_page_list_len;
|
||||
u16 max_pkeys;
|
||||
u8 local_ca_ack_delay;
|
||||
int sig_prot_cap;
|
||||
|
|
|
|||
Loading…
Reference in a new issue