diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2018-11-19 10:52:33 -0800 |
---|---|---|
committer | Leon Romanovsky <leonro@mellanox.com> | 2018-11-20 20:06:18 +0200 |
commit | 2883f352571b9b830561ca21b8a666936366a120 (patch) | |
tree | e836be3b9de6e47aded3f510ef36931a310dad18 /include/linux/mlx5 | |
parent | 4de45c758636c37efd313589f91c739f613fbe7d (diff) | |
download | linux-stable-2883f352571b9b830561ca21b8a666936366a120.tar.gz linux-stable-2883f352571b9b830561ca21b8a666936366a120.tar.bz2 linux-stable-2883f352571b9b830561ca21b8a666936366a120.zip |
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>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/driver.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index 15cf6727a62d..4b62d71825c1 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -399,7 +399,6 @@ struct mlx5_eq { u8 eqn; int nent; struct list_head list; - int index; struct mlx5_rsc_debug *dbg; enum mlx5_eq_type type; union { |