From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8A576A0C53; Mon, 25 Oct 2021 13:05:02 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2C6974113A; Mon, 25 Oct 2021 13:04:33 +0200 (CEST) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by mails.dpdk.org (Postfix) with ESMTP id 49561410E2 for ; Mon, 25 Oct 2021 13:04:24 +0200 (CEST) Received: from localhost.localdomain (unknown [5.144.121.149]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by shelob.oktetlabs.ru (Postfix) with ESMTPSA id E75107F670; Mon, 25 Oct 2021 14:04:23 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru E75107F670 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1635159864; bh=49jIXYmNg/Gnp5cSZk8ztgwOhoTQDkJOJNBzFhSLh54=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=gGAakP8em668D+tOK31pQbUMUxpFw/s+IFaJEDJk7Q/ENH0oVtKcjiVqdymZGARCU 0QO72qk1CkBhOQelT2vh6wfUQHXTwHFT01R8lM8lVqB5fNMG5Sy91VQRWSmykcnvaO fkH1DF8FXAydlTh+2PTsfRMeB4Q2OmHkrc62KpHQ= From: Ivan Malov To: dev@dpdk.org Cc: Andrew Rybchenko Date: Mon, 25 Oct 2021 14:04:15 +0300 Message-Id: <20211025110415.20683-7-ivan.malov@oktetlabs.ru> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211025110415.20683-1-ivan.malov@oktetlabs.ru> References: <20211025110415.20683-1-ivan.malov@oktetlabs.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 7/7] net/sfc: ignore direction attributes in transfer flows X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" [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.20.1