]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net/mlx5e: Modifying channels number and updating TX queues
authorCarolina Jubran <cjubran@nvidia.com>
Sun, 12 May 2024 12:43:04 +0000 (15:43 +0300)
committerJakub Kicinski <kuba@kernel.org>
Mon, 13 May 2024 23:35:47 +0000 (16:35 -0700)
commitbcee093751f87dff6ace6355da06e62fd04189a3
tree262000f1c9a12ff01eacafe698aed2db1bad761c
parente0e6adfe8c20f1b633017e4dafec1b06117da2df
net/mlx5e: Modifying channels number and updating TX queues

It is not appropriate for the mlx5e_num_channels_changed
function to be called solely for updating the TX queues,
even if the channels number has not been changed.

Move the code responsible for updating the TC and TX queues
from mlx5e_num_channels_changed and produce a new function
called mlx5e_update_tc_and_tx_queues. This new function should
only be called when the channels number remains unchanged.

Signed-off-by: Carolina Jubran <cjubran@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240512124306.740898-3-tariqt@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c
drivers/net/ethernet/mellanox/mlx5/core/en_main.c