app/testpmd: release flows left before port stop
authorGregory Etelson <getelson@nvidia.com>
Thu, 26 Nov 2020 16:43:02 +0000 (18:43 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:07 +0000 (16:03 +0100)
commit0f93edbf7c874480e21e365f527fecdb305984b9
treee579f01a9e7b70542fefacbd6b3dd769f7507f19
parent48a580c5df78b3addac6f57969167bb86c7428f5
app/testpmd: release flows left before port stop

According to RTE flow user guide, PMD will not keep flow rules after
port stop. Application resources that refer to flow rules become
obsolete after port stop and must not be used.
Testpmd maintains linked list of active flows for each port. Entries in
that list are allocated dynamically and must be explicitly released to
prevent memory leak.
The patch releases testpmd port flow_list that holds remaining flows
before port is stopped.

Cc: stable@dpdk.org
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
app/test-pmd/testpmd.c