Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tap: do not overwrite flow API errors
[ upstream commit 11b90b53c6716ca9bc713bab6cfba039fe8e38cb ] All flow errors were ending up being reported as not supported, even when the error path was previously setting a valid and better error message. Example, asking for a non-existent queue in flow. Before: testpmd> flow create 0 ingress pattern eth src is 06:05:04:03:02:01 \ / end actions queue index 12 / end port_flow_complain(): Caught PMD error type 16 (specific action): cause: 0x7fffc46c1e18, action not supported: Operation not supported After: testpmd> flow create 0 ingress pattern eth src is 06:05:04:03:02:01 \ / end actions queue index 12 / end port_flow_complain(): Caught PMD error type 16 (specific action): cause: 0x7fffa54e1d88, queue index out of range: Numerical result out of range Fixes: f46900d ("net/tap: fix flow and port commands") Fixes: de96fe6 ("net/tap: add basic flow API patterns and actions") Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
- Loading branch information