net/mlx5: fix the HWS registers initialization
PATCH 1/1 net/mlx5: fix the HWS registers initialization
The method to initialize tag registers by using capability bits is not supported on some old NICs. In the meanwhile, the HWS for flow rule insertion is not supported either. There is no need to initialize HWS only resource on the old NICs.
--- drivers/net/mlx5/mlx5.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/net/mlx5/mlx5.c +2 -1
@@ -1690,7 +1690,8 @@ mlx5_init_shared_dev_registers(struct mlx5_dev_ctx_shared *sh) }else {DRV_LOG (DEBUG ,"ASO register: NONE" ); } -mlx5_init_hws_flow_tags_registers (sh); +if (sh->config.dv_flow_en ==2 ) +mlx5_init_hws_flow_tags_registers (sh); } static struct mlx5_physical_device *
Signature · 1 line
2.39.3
Hi
Quoted 16 lines
-----Original Message-----
From: Bing Zhao <[email protected]>
Sent: Tuesday, February 27, 2024 5:26 PM
To: [email protected]; Suanming Mou <[email protected]>; Raslan Darawsheh <[email protected]>
Cc: Ori Kam <[email protected]>; Slava Ovsiienko <[email protected]>; Matan Azrad <[email protected]>; Dariusz Sosnowski <[email protected]>; Gregory Etelson <[email protected]>; [email protected]
Subject: [PATCH] net/mlx5: fix the HWS registers initializationThe method to initialize tag registers by using capability bits is not supported on some old NICs. In the meanwhile, the HWS for flow rule insertion is not supported either. There is no need to initialize HWS only resource on the old NICs.
Quoted 7 lines
Fixes 48041ccbaa8d ("net/mlx5: initialize HWS flow registers in sharedcontext")
Cc: [email protected]
Cc: [email protected]Signed-off-by Bing Zhao <[email protected]>Acked-by Suanming Mou <[email protected]>
Patch applied to next-net-mlx,
Kindest regards
Raslan Darawsheh