net/mlx5: extend device attributes getter
This commit adds device attributes parameters to be reported by mlx5_os_get_dev_attr(): max_cqe, max_mr, max_pd, max_srq, max_srq_wr Signed-off-by: Ophir Munk <ophirmu@nvidia.com> Acked-by: Matan Azrad <matan@nvidia.com>
This commit is contained in:
parent
09a5e9777e
commit
1f29d15ec9
@ -116,7 +116,12 @@ mlx5_os_get_dev_attr(void *ctx, struct mlx5_dev_attr *device_attr)
|
||||
device_attr->max_qp_wr = attr_ex.orig_attr.max_qp_wr;
|
||||
device_attr->max_sge = attr_ex.orig_attr.max_sge;
|
||||
device_attr->max_cq = attr_ex.orig_attr.max_cq;
|
||||
device_attr->max_cqe = attr_ex.orig_attr.max_cqe;
|
||||
device_attr->max_mr = attr_ex.orig_attr.max_mr;
|
||||
device_attr->max_pd = attr_ex.orig_attr.max_pd;
|
||||
device_attr->max_qp = attr_ex.orig_attr.max_qp;
|
||||
device_attr->max_srq = attr_ex.orig_attr.max_srq;
|
||||
device_attr->max_srq_wr = attr_ex.orig_attr.max_srq_wr;
|
||||
device_attr->raw_packet_caps = attr_ex.raw_packet_caps;
|
||||
device_attr->max_rwq_indirection_table_size =
|
||||
attr_ex.rss_caps.max_rwq_indirection_table_size;
|
||||
|
@ -83,6 +83,11 @@ struct mlx5_dev_attr {
|
||||
int max_sge;
|
||||
int max_cq;
|
||||
int max_qp;
|
||||
int max_cqe;
|
||||
uint32_t max_pd;
|
||||
uint32_t max_mr;
|
||||
uint32_t max_srq;
|
||||
uint32_t max_srq_wr;
|
||||
uint32_t raw_packet_caps;
|
||||
uint32_t max_rwq_indirection_table_size;
|
||||
uint32_t max_tso;
|
||||
|
Loading…
Reference in New Issue
Block a user