4b27989d24
When a port is closed implicitly by the PMD, for example, if it is a representor port and its master port is detached, flow indirect actions could remain with their handles no longer valid. If a newly attached device is assigned the same ID as the closed port, those indirect actions became accessible again. Any attempt to use them resulted in an undefined behavior. Flow flex items had no such issue on close, but had it on detach. Introduce flush_port_owned_resources() function for consistent cleanup and call it when a port is closed or detached. Make it flush flow rules and multicast addresses too because they logically belong to the port being removed. Fixes: |
||
---|---|---|
.. | ||
dumpcap | ||
pdump | ||
proc-info | ||
test | ||
test-acl | ||
test-bbdev | ||
test-cmdline | ||
test-compress-perf | ||
test-crypto-perf | ||
test-eventdev | ||
test-fib | ||
test-flow-perf | ||
test-gpudev | ||
test-pipeline | ||
test-pmd | ||
test-regex | ||
test-sad | ||
meson.build |