]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: EQ, No need to store eq index as a field
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 18:52:33 +0000 (10:52 -0800)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 20 Nov 2018 18:06:18 +0000 (20:06 +0200)
commitde4ab6e51f448fe865541f2603dcb35ada25a5b4
treee836be3b9de6e47aded3f510ef36931a310dad18
parent54c02fd18715d33ac00092ca3485b12c83eb3c17
net/mlx5: EQ, No need to store eq index as a field

eq->index is used only for completion EQs and is assigned to be
the completion eq index, it is used only when traversing the completion
eqs list, and it can be calculated dynamically, thus remove the
eq->index field.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/driver.h