From 69fbb4e9b5bae73edc91271279a30bdfaa4ca08d Mon Sep 17 00:00:00 2001 From: Ivan Malov Date: Mon, 25 Oct 2021 14:04:15 +0300 Subject: [PATCH] net/sfc: ignore direction attributes in transfer flows [1] has deprecated the use of direction attributes in "transfer" flows. Ignore them during the transition period. [1] commit 9d2a349b388a ("ethdev: deprecate direction attributes in transfer flows") Signed-off-by: Ivan Malov Reviewed-by: Andrew Rybchenko --- drivers/net/sfc/sfc_flow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/sfc/sfc_flow.c b/drivers/net/sfc/sfc_flow.c index be2dfe778a..fc74c8035e 100644 --- a/drivers/net/sfc/sfc_flow.c +++ b/drivers/net/sfc/sfc_flow.c @@ -1252,13 +1252,13 @@ sfc_flow_parse_attr(struct sfc_adapter *sa, "Groups are not supported"); return -rte_errno; } - if (attr->egress != 0) { + if (attr->egress != 0 && attr->transfer == 0) { rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ATTR_EGRESS, attr, "Egress is not supported"); return -rte_errno; } - if (attr->ingress == 0) { + if (attr->ingress == 0 && attr->transfer == 0) { rte_flow_error_set(error, ENOTSUP, RTE_FLOW_ERROR_TYPE_ATTR_INGRESS, attr, "Ingress is compulsory"); -- 2.39.5