OSDN Git Service

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)
commit2883f352571b9b830561ca21b8a666936366a120
treee836be3b9de6e47aded3f510ef36931a310dad18
parent4de45c758636c37efd313589f91c739f613fbe7d
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