app/testpmd: fix use of indirect action after port close
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Mon, 7 Mar 2022 16:48:21 +0000 (18:48 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 May 2022 10:50:57 +0000 (12:50 +0200)
commitf7352c176bbf131728445680ee08961a67cc09a6
treecde2650d58ee144ef075243685e6e37a9cc8d9e7
parentb77d3318d6a3ca266751031ff04520b7ad485529
app/testpmd: fix use of indirect action after port close

When a port was closed, indirect actions could remain
with their handles no longer valid.
If a newly attached device was assigned the same ID as the closed port,
those indirect actions became accessible again.
Any attempt to use them resulted in an undefined behavior.
Automatically flush indirect actions when a port is closed.

Fixes: 4b61b8774be9 ("ethdev: introduce indirect flow action")
Cc: stable@dpdk.org
Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
Acked-by: Aman Singh <aman.deep.singh@intel.com>
app/test-pmd/config.c
app/test-pmd/testpmd.c
app/test-pmd/testpmd.h