]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Reuse alloc cq code for all CQs allocation
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 28 Mar 2017 08:23:55 +0000 (11:23 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 6 Apr 2017 22:21:27 +0000 (01:21 +0300)
commitb4a828547db1c0c65d8e481d37c826b76c995a91
treec8a7be6203b79ab34ad4a7521118df39bea708d7
parentc768c10237ffbf32cf9d62d1194c409804063f96
net/mlx5e: Reuse alloc cq code for all CQs allocation

Reuse the code for mlx5e_alloc_cq and mlx5e_alloc_drop_cq, as they
have a similar flow.

Prior to this patch, the CQEs in the "drop CQ" were not initialized,
fixed
it with the shared flow of alloc CQ.  This is not a critical bug as the
RQ connected to this CQ never moved to RTS, but still better to have
this right.

Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_main.c