net/mlx5: fix release of jump to queue action
authorOri Kam <orika@mellanox.com>
Sun, 14 Apr 2019 20:17:11 +0000 (20:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 19 Apr 2019 12:51:55 +0000 (14:51 +0200)
commit3eb00443107296ce156a043a8f1865b0b0b56e1d
tree9ef08972ee72c41891aa1699c2013898a80088f4
parent30a86157f6d56d112a73bc3bbdda5c24acdb4c79
net/mlx5: fix release of jump to queue action

Currently the allocation of the jump to QP is done in flow apply,
this results in memory leak.

This patch fixes this issue by moving the allocation and release of the
jump to QP action to the responsibility of the hrxq.

Fixes: cbb66daa3c85 ("net/mlx5: prepare Direct Verbs for Direct Rule")
Cc: stable@dpdk.org
Signed-off-by: Ori Kam <orika@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_rxtx.h