Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
port_flow_destroy() function never assumed that rule array can be freed when it's executing, and port_flow_aged() just violated that assumption. In case of flow async create failure, it tries to do a cleanup, but it wrongly removes a 1st flow (with id 0). pf->id is not set at this moment and it always is 0, thus 1st flow is removed. A local copy of flow->id must be used to call of port_flow_destroy() to avoid access and processing of flow->id after the flow is removed. Fixes: de956d5 ("app/testpmd: support age shared action context") Cc: [email protected] Signed-off-by: Danylo Vodopianov <[email protected]> Acked-by: Dariusz Sosnowski <[email protected]>
- Loading branch information