RE: [PATCH net-next 03/15] net/mlx5e: psp: Remove unneeded ref counting for PSP steering
From: Loktionov, Aleksandr <hidden>
Date: 2026-07-07 14:15:56
Also in:
linux-rdma, lkml
quoted hunk ↗ jump to hunk
-----Original Message----- From: Tariq Toukan <tariqt@nvidia.com> Sent: Tuesday, July 7, 2026 3:09 PM To: Andrew Lunn <andrew+netdev@lunn.ch>; David S. Miller [off-list ref]; Eric Dumazet [off-list ref]; Jakub Kicinski [off-list ref]; netdev@vger.kernel.org; Paolo Abeni [off-list ref] Cc: Loktionov, Aleksandr <redacted>; Boris Pismenny [off-list ref]; Chris Mi [off-list ref]; Cosmin, Ratiu [off-list ref]; Daniel Zahka [off-list ref]; Dragos Tatulea [off-list ref]; Gal Pressman [off-list ref]; Keller, Jacob E [off-list ref]; Jianbo Liu [off-list ref]; Lama Kayal [off-list ref]; Leon Romanovsky [off-list ref]; linux-kernel@vger.kernel.org; linux-rdma@vger.kernel.org; Mark Bloch [off-list ref]; Raed Salem [off-list ref]; Rahul Rameshbabu [off-list ref]; Saeed Mahameed [off-list ref]; Stanislav Fomichev [off-list ref]; Stanislav Fomichev [off-list ref]; Tariq Toukan [off-list ref]; Willem de Bruijn [off-list ref] Subject: [PATCH net-next 03/15] net/mlx5e: psp: Remove unneeded ref counting for PSP steering From: Cosmin Ratiu <redacted> PSP steering uses reference counting for TX and RX steering tables, but there's only a single reference for each acquired and thus the reference counting is unnecessary. Remove it and consolidate functions to simplify the code. Signed-off-by: Cosmin Ratiu <redacted> Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> --- .../mellanox/mlx5/core/en_accel/psp.c | 129 +++++------------ - 1 file changed, 33 insertions(+), 96 deletions(-)diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.cb/drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c index d4686b5af776..a69c4e2821e9 100644--- a/drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_accel/psp.c@@ -26,7 +26,6 @@ struct mlx5e_psp_tx { struct mlx5_flow_table *ft; struct mlx5_flow_group *fg; struct mlx5_flow_handle *rule;
...
} static void mlx5e_accel_psp_fs_cleanup(struct mlx5e_psp_fs *fs) -- 2.44.0
Reviewed-by: Aleksandr Loktionov <redacted>