]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: EQ, Create all EQs in one place
authorSaeed Mahameed <saeedm@mellanox.com>
Mon, 19 Nov 2018 18:52:36 +0000 (10:52 -0800)
committerLeon Romanovsky <leonro@mellanox.com>
Tue, 20 Nov 2018 18:06:42 +0000 (20:06 +0200)
commit913c93628ed00d0dc3ab27f50d135c33720f04a8
tree297fb9d63b476455bec142f394c6ebcb09a3c229
parent2cd2b65b271134ec59a47d74d216d67f0d2d42f9
net/mlx5: EQ, Create all EQs in one place

Instead of creating the EQ table in three steps at driver load,
 - allocate irq vectors
 - allocate async EQs
 - allocate completion EQs
Gather all of the procedures into one function in eq.c and call it from
driver load.

This will help us reduce the EQ and EQ table private structures
visibility to eq.c in downstream refactoring.

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/debugfs.c
drivers/net/ethernet/mellanox/mlx5/core/eq.c
drivers/net/ethernet/mellanox/mlx5/core/main.c
drivers/net/ethernet/mellanox/mlx5/core/mlx5_core.h