net/mlx5: fix queue rollback when starting device
authorYongseok Koh <yskoh@mellanox.com>
Mon, 23 Jul 2018 20:57:04 +0000 (13:57 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 12:05:52 +0000 (14:05 +0200)
commit24f653a7e8bff5f500894a07771dd6718966e9be
treef0aa828c335b0f1ab3a305149fa8fc09fda529c8
parentc20d4a70caa5c64520addae5f2e867f911b3aa18
net/mlx5: fix queue rollback when starting device

mlx5_rxq_start() and mlx5_rxq_stop() must be strictly paired because
internal reference counter is increased or decreased inside. Also,
mlx5_rxq_get() must be paired with mlx5_rxq_release().

Fixes: 7d6bf6b866b8 ("net/mlx5: add Multi-Packet Rx support")
Fixes: a1366b1a2be3 ("net/mlx5: add reference counter on DPDK Rx queues")
Fixes: 6e78005a9b30 ("net/mlx5: add reference counter on DPDK Tx queues")
Cc: stable@dpdk.org
Signed-off-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_trigger.c