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)
commit95b6c6a519a300dc667960740ebd43b960b32883
treec8a7be6203b79ab34ad4a7521118df39bea708d7
parent84e11edb71dec60644e62a07b588777a604e1a00
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