kernel_samsung_a53x/drivers/net/ethernet/qlogic/qede
Asbjørn Sloth Tønnesen 8ea3806798 net: qede: use return from qede_parse_flow_attr() for flower
[ Upstream commit fcee2065a178f78be6fd516302830378b17dba3d ]

In qede_add_tc_flower_fltr(), when calling
qede_parse_flow_attr() then the return code
was only used for a non-zero check, and then
-EINVAL was returned.

qede_parse_flow_attr() can currently fail with:
* -EINVAL
* -EOPNOTSUPP
* -EPROTONOSUPPORT

This patch changes the code to use the actual
return code, not just return -EINVAL.

The blaimed commit introduced these functions.

Only compile tested.

Fixes: 2ce9c93eaca6 ("qede: Ingress tc flower offload (drop action) support.")
Signed-off-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 11:32:42 +01:00
..
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_dcbnl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_filter.c net: qede: use return from qede_parse_flow_attr() for flower 2024-11-19 11:32:42 +01:00
qede_fp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_ptp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_ptp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qede_rdma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00