]> 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)
commit1653e95f6499003ceaf18b71ea8c506577537bd6
tree297fb9d63b476455bec142f394c6ebcb09a3c229
parentd6c81cd4efb520473aaa01c2472731efcf2c1fcc
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