@@ -264,6 +264,11 @@ struct mlx5_rss_caps {
__u8 reserved[7];
};
+struct mlx5_packet_pacing_caps {
+ struct ibv_packet_pacing_caps caps;
+ __u32 reserved;
+};
+
struct mlx5_query_device_ex_resp {
struct ibv_query_device_resp_ex ibv_resp;
__u32 comp_mask;
@@ -271,7 +276,7 @@ struct mlx5_query_device_ex_resp {
struct ibv_tso_caps tso_caps;
struct mlx5_rss_caps rss_caps; /* vendor data channel */
__u64 reserved_cqe_comp;
- struct ibv_packet_pacing_caps packet_pacing_caps;
+ struct mlx5_packet_pacing_caps packet_pacing_caps;
};
#endif /* MLX5_ABI_H */
@@ -1922,7 +1922,7 @@ int mlx5_query_device_ex(struct ibv_context *context,
attr->tso_caps = resp.tso_caps;
attr->rss_caps.rx_hash_fields_mask = resp.rss_caps.rx_hash_fields_mask;
attr->rss_caps.rx_hash_function = resp.rss_caps.rx_hash_function;
- attr->packet_pacing_caps = resp.packet_pacing_caps;
+ attr->packet_pacing_caps = resp.packet_pacing_caps.caps;
major = (raw_fw_ver >> 32) & 0xffff;
minor = (raw_fw_ver >> 16) & 0xffff;