net/mlx5: Refactor calculation of required completion vectors
authorEli Cohen <elic@nvidia.com>
Tue, 3 Jan 2023 07:16:11 +0000 (09:16 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 24 Mar 2023 23:04:30 +0000 (16:04 -0700)
commit1dc85133c207831dbaa91941a98f6c488411927a
tree40f74c77bfae3b24f349095a225068d944b34666
parentfe578cbb2f053f465e19d2671a523dcd01953888
net/mlx5: Refactor calculation of required completion vectors

Move the calculation to a separate function. We will add more
functionality to it in a follow up patch.

Signed-off-by: Eli Cohen <elic@nvidia.com>
Reviewed-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c