net/mlx5: add trunk release for indexed pool
authorSuanming Mou <suanmingm@mellanox.com>
Thu, 16 Apr 2020 02:42:01 +0000 (10:42 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 21 Apr 2020 11:57:09 +0000 (13:57 +0200)
commit1fd4bb67eb2d0c8a62d642e6ec3b78c0452313e8
tree8ca5206a76d7e4537c88a348533bab834340b56e
parent62d7d519b1f9998b8552f3504f7d6925a6959736
net/mlx5: add trunk release for indexed pool

While entries are fully freed in trunk, it means the trunk is free now.
User may prefer the free trunk memory can be reclaimed.

Add the trunk release memory option for indexed pool in this case.

Signed-off-by: Suanming Mou <suanmingm@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_utils.c
drivers/net/mlx5/mlx5_utils.h