On Wed, Oct 21, 2026 at 03:25:43PM +0100, Anatoly Burakov wrote:
> `iavf_parse_engine_validate()` sets an error when validation fails, but
> then returns the engine pointer. `iavf_flow_process_filter()` treats a
> non-NULL engine as success, so `rte_flow_validate()` can accept an
> invalid flow.
>
> Return `NULL` on validation failure and return the engine only after
> validation succeeds.
>
> Fixes: ff2d0c345c3b ("net/iavf: support generic flow API")
> Cc: [email protected]
>
> Signed-off-by: Anatoly Burakov <[email protected]>
> ---
> drivers/net/intel/iavf/iavf_generic_flow.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v4 06/10] net/iavf: centralize memory man... Bruce Richardson
- [PATCH v4 07/10] net/iavf: skip RSS teardown during PF-in... Anatoly Burakov
- Re: [PATCH v4 07/10] net/iavf: skip RSS teardown dur... Bruce Richardson
- [PATCH v4 08/10] net/iavf: remove redundant reset checks ... Anatoly Burakov
- Re: [PATCH v4 08/10] net/iavf: remove redundant rese... Bruce Richardson
- [PATCH v4 05/10] net/iavf: fix generic flow error-path le... Anatoly Burakov
- Re: [PATCH v4 05/10] net/iavf: fix generic flow erro... Bruce Richardson
- [PATCH v4 09/10] net/iavf: fix null engine for egress sec... Anatoly Burakov
- [PATCH v4 10/10] net/iavf: fix IPsec flow metadata leaks Anatoly Burakov
- [PATCH v4 03/10] net/iavf: fix false success on flow vali... Anatoly Burakov
- Re: [PATCH v4 03/10] net/iavf: fix false success on ... Bruce Richardson
- [PATCH v4 02/10] net/iavf: do not store ethdev pointer Anatoly Burakov
- Re: [PATCH v4 02/10] net/iavf: do not store ethdev p... Bruce Richardson
- [PATCH v4 01/10] net/iavf: keep device stopped if start f... Anatoly Burakov
- Re: [PATCH v4 01/10] net/iavf: keep device stopped i... Bruce Richardson

