]> www.infradead.org Git - users/dwmw2/linux.git/commit
mlx5/core: deduplicate {mlx5_,}eq_update_ci()
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 7 Nov 2024 18:30:52 +0000 (11:30 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 11 Nov 2024 22:13:44 +0000 (14:13 -0800)
commit619e4109e2588436327f23c04c54a9994b765636
tree959ff8f239c1cb4b96448dbc633362334a92c8ed
parentb83db10996f5276f998bb5bb59da2fada560efbd
mlx5/core: deduplicate {mlx5_,}eq_update_ci()

The logic of eq_update_ci() is duplicated in mlx5_eq_update_ci(). The
only additional work done by mlx5_eq_update_ci() is to increment
eq->cons_index. Call eq_update_ci() from mlx5_eq_update_ci() to avoid
the duplication.

Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Parav Pandit <parav@nvidia.com>
Acked-by: Tariq Toukan <tariqt@nvidia.com>
Link: https://patch.msgid.link/20241107183054.2443218-2-csander@purestorage.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eq.c