net/mlx5: fix freeing packet pacing
authorOphir Munk <ophirmu@nvidia.com>
Mon, 28 Dec 2020 09:54:08 +0000 (11:54 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commitb492e28882f7009421d133126aa7524c02339ba3
tree85f11af3f6a71b8e077fc8b418101dff71d1f61b
parented7f6255c9cea12c5f31a274a63e5596738b1b55
net/mlx5: fix freeing packet pacing

Packet pacing is allocated under condition #ifdef HAVE_MLX5DV_PP_ALLOC.
In a similar way - free packet pacing index under the same condition.
This update is required to successfully compile under operating systems
which do not support packet pacing.

Fixes: aef1e20ebeb2 ("net/mlx5: allocate packet pacing context")
Cc: stable@dpdk.org
Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_txpp.c