[PATCH V2 1/4] common/mlx5: support FDB unified capability query
Ophir Munk
ophirmu at nvidia.com
Wed Feb 26 09:38:43 CET 2025
This commit queries the FW for the new unified FDB mode and saves it in
mlx5 shared device as fdb_unified_en bit.
Signed-off-by: Ophir Munk <ophirmu at nvidia.com>
---
drivers/common/mlx5/mlx5_devx_cmds.c | 3 +++
drivers/common/mlx5/mlx5_devx_cmds.h | 1 +
2 files changed, 4 insertions(+)
diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index bba00a9..f504b29 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -1349,6 +1349,9 @@ mlx5_devx_cmd_query_hca_attr(void *ctx,
attr->max_header_modify_pattern_length = MLX5_GET(wqe_based_flow_table_cap,
hcattr,
max_header_modify_pattern_length);
+ attr->fdb_unified_en = MLX5_GET(wqe_based_flow_table_cap,
+ hcattr,
+ fdb_unified_en);
}
/* Query HCA attribute for ROCE. */
if (attr->roce) {
diff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h
index 38548b4..8de4210 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.h
+++ b/drivers/common/mlx5/mlx5_devx_cmds.h
@@ -325,6 +325,7 @@ struct mlx5_hca_attr {
uint32_t cross_vhca:1;
uint32_t lag_rx_port_affinity:1;
uint32_t wqe_based_flow_table_sup:1;
+ uint32_t fdb_unified_en:1;
uint8_t max_header_modify_pattern_length;
uint64_t system_image_guid;
uint32_t log_max_conn_track_offload:5;
--
2.8.4
More information about the dev
mailing list