]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Use mlx5e_stop_room_for_max_wqe where appropriate
authorMaxim Mikityanskiy <maximmi@nvidia.com>
Tue, 27 Sep 2022 20:36:02 +0000 (13:36 -0700)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Sep 2022 02:36:36 +0000 (19:36 -0700)
commit6cac700e206d15cf8a7e5df5ee8a037196b00f3a
treeaca3ef4087bbf8c7332bbdc64e6bc7b2e19056ad
parent922146f893b45d6f2e41b3d2b9c7c5f4c285011b
net/mlx5e: Use mlx5e_stop_room_for_max_wqe where appropriate

mlx5e_alloc_xdpsq calculates sq->stop_room internally, but there is
already a function for that: mlx5e_stop_room_for_max_wqe. This commit
makes use of this function.

Signed-off-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c