]> git.ipfire.org Git - thirdparty/linux.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)
commitc8e21b3b576b78fe1b07522aea046af2634a24e8
tree297fb9d63b476455bec142f394c6ebcb09a3c229
parentca828cb4686f1aece8d30541e11b8e21de1a7b0e
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