[PATCH net-next 07/15] net/mlx5e: Drop unused channel parameters
From: Tariq Toukan <tariqt@nvidia.com>
Date: 2026-02-23 20:43:38
Also in:
bpf, linux-rdma, lkml
Subsystem:
mellanox ethernet driver (mlx5e), mellanox mlx5 core vpi driver, networking drivers, the rest · Maintainers:
Saeed Mahameed, Tariq Toukan, Mark Bloch, Leon Romanovsky, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds
From: Dragos Tatulea <dtatulea@nvidia.com>
The channel parameters from struct mlx5_qmgmt_data are
built in mlx5e_queue_mem_alloc() but are not used.
mlx5e_open_channel() builds the channel parameters internally and those
parameters will be the ones that are used when opening the queue.
This patch drops the unused parameters.
Signed-off-by: Dragos Tatulea <dtatulea@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
---
drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
index 9e406275e243..aca88fed2ac7 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c
@@ -5555,7 +5555,6 @@ static const struct netdev_stat_ops mlx5e_stat_ops = {
struct mlx5_qmgmt_data {
struct mlx5e_channel *c;
- struct mlx5e_channel_param cparam;
};
static int mlx5e_queue_mem_alloc(struct net_device *dev,@@ -5566,7 +5565,6 @@ static int mlx5e_queue_mem_alloc(struct net_device *dev,
struct mlx5e_priv *priv = netdev_priv(dev);
struct mlx5e_channels *chs = &priv->channels;
struct mlx5e_params params = chs->params;
- struct mlx5_core_dev *mdev;
int err;
mutex_lock(&priv->state_lock);
@@ -5590,11 +5588,6 @@ static int mlx5e_queue_mem_alloc(struct net_device *dev,
goto unlock;
}
- mdev = mlx5_sd_ch_ix_get_dev(priv->mdev, queue_index);
- err = mlx5e_build_channel_param(mdev, ¶ms, &new->cparam);
- if (err)
- goto unlock;
-
err = mlx5e_open_channel(priv, queue_index, ¶ms, NULL, &new->c);
unlock:
mutex_unlock(&priv->state_lock);
--
2.44.0