net/mlx5: fix jump table leak
authorSuanming Mou <suanmingm@mellanox.com>
Mon, 13 Apr 2020 13:29:13 +0000 (21:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commitfe2c412ca935fb6e14605795243b85aac5778455
tree444c11ff6ad65be89a37643c91b66b4be3d0bd7d
parent9dbaf7eef6e17113f5c681c3c4fcee6bcda4b5f0
net/mlx5: fix jump table leak

Currently, when translate jump action, the table reference will be
increased all the time. But when release the jump action, the table
resource reference will only be decreased when jump action is released.
It means for jump action which was referenced more than one time, the
increased table reference only decrease one time when jump action is
released.

Add table release when the jump action was not new created.

Fixes: 684b9a1b1f5c ("net/mlx5: support jump action")
Cc: stable@dpdk.org
Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c