Message ID | 20250113154055.1927008-2-tariqt@nvidia.com (mailing list archive) |
---|---|
State | New |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mlx5 misc fixes 2025-01-13 | expand |
On 1/13/2025 7:40 AM, Tariq Toukan wrote: > From: Patrisious Haddad <phaddad@nvidia.com> > > User added steering rules at RDMA_TX were being added to the first prio, > which is the counters prio. > Fix that so that they are correctly added to the BYPASS_PRIO instead. > > Fixes: 24670b1a3166 ("net/mlx5: Add support for RDMA TX steering") > Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> > Reviewed-by: Mark Bloch <mbloch@nvidia.com> > Signed-off-by: Tariq Toukan <tariqt@nvidia.com> > --- Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> > drivers/net/ethernet/mellanox/mlx5/core/fs_core.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c > index 2eabfcc247c6..0ce999706d41 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c > +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c > @@ -2709,6 +2709,7 @@ struct mlx5_flow_namespace *mlx5_get_flow_namespace(struct mlx5_core_dev *dev, > break; > case MLX5_FLOW_NAMESPACE_RDMA_TX: > root_ns = steering->rdma_tx_root_ns; > + prio = RDMA_TX_BYPASS_PRIO; > break; > case MLX5_FLOW_NAMESPACE_RDMA_RX_COUNTERS: > root_ns = steering->rdma_rx_root_ns;
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c index 2eabfcc247c6..0ce999706d41 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.c @@ -2709,6 +2709,7 @@ struct mlx5_flow_namespace *mlx5_get_flow_namespace(struct mlx5_core_dev *dev, break; case MLX5_FLOW_NAMESPACE_RDMA_TX: root_ns = steering->rdma_tx_root_ns; + prio = RDMA_TX_BYPASS_PRIO; break; case MLX5_FLOW_NAMESPACE_RDMA_RX_COUNTERS: root_ns = steering->rdma_rx_root_ns;