Message ID | 20240911201757.1505453-7-saeed@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 8ad0e9608c2c528e708a622952657d4450b04f7f |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next,01/15] net/mlx5: HWS, updated API functions comments to kernel doc | expand |
On 9/11/2024 1:17 PM, Saeed Mahameed wrote: > From: Mark Bloch <mbloch@nvidia.com> > > Counter is in struct fte, remove it. > > Signed-off-by: Mark Bloch <mbloch@nvidia.com> > Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> > --- > drivers/net/ethernet/mellanox/mlx5/core/fs_core.h | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h > index 6201647d6156..5eacf64232f7 100644 > --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h > +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h > @@ -241,7 +241,6 @@ struct fs_fte { > struct mlx5_flow_context flow_context; > struct mlx5_flow_act action; > enum fs_fte_status status; > - struct mlx5_fc *counter; > struct rhash_head hash; It looks like this was added by commit bd5251dbf156 ("net/mlx5_core: Introduce flow steering destination of type counter") and never directly used. The pointer appears to also be stored in the mlx5_flow_destination which is the only place it was directly used. Makes sense. Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> > int modify_mask; > };
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h index 6201647d6156..5eacf64232f7 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h +++ b/drivers/net/ethernet/mellanox/mlx5/core/fs_core.h @@ -241,7 +241,6 @@ struct fs_fte { struct mlx5_flow_context flow_context; struct mlx5_flow_act action; enum fs_fte_status status; - struct mlx5_fc *counter; struct rhash_head hash; int modify_mask; };