]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Improve MQPRIO resiliency
authorTariq Toukan <tariqt@nvidia.com>
Wed, 29 Sep 2021 12:51:26 +0000 (15:51 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 30 Sep 2021 21:07:55 +0000 (14:07 -0700)
commit0218e384d22bbc0581accb0d1d41519b38475c07
tree7841bac3090fe2262df2635d5ad7bc076fa3ad8f
parent17a3b9880fbe1bf5db54758670b5f120666dffd0
net/mlx5e: Improve MQPRIO resiliency

* Add netdev->tc_to_txq rollback in case of failure in
  mlx5e_update_netdev_queues().
* Fix broken transition between the two modes:
  MQPRIO DCB mode with tc==8, and MQPRIO channel mode.
* Disable MQPRIO channel mode if re-attaching with a different number
  of channels.
* Improve code sharing.

Fixes: 7924eb608351 ("net/mlx5e: Support MQPRIO channel mode")
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c