net/mlx5: fix meter suffix table leak
authorSuanming Mou <suanmingm@mellanox.com>
Mon, 13 Apr 2020 13:29:12 +0000 (21:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:08 +0000 (13:57 +0200)
commit9dbaf7eef6e17113f5c681c3c4fcee6bcda4b5f0
tree26c68bb214c5179bfd4df9fa9962bd59d7d56121
parent775fc97b0125c29f4bd36490f46f5f1e11dc048f
net/mlx5: fix meter suffix table leak

Currently, the meter suffix table is created and saved in the mlx5
shared struct. It causes the suffix table will never be released
even without any meter rules.

Move the suffix table to meter domain struct to help the suffix table
be released when all the meter rules are destroyed.

Fixes: 46a5e6bc6a85 ("net/mlx5: prepare meter flow tables")
Cc: stable@dpdk.org
Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.h
drivers/net/mlx5/mlx5_flow_dv.c