From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id BCD00A0521; Mon, 2 Nov 2020 12:43:48 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 95E01C842; Mon, 2 Nov 2020 12:43:31 +0100 (CET) Received: from shelob.oktetlabs.ru (shelob.oktetlabs.ru [91.220.146.113]) by dpdk.org (Postfix) with ESMTP id DBF5EC836 for ; Mon, 2 Nov 2020 12:43:29 +0100 (CET) Received: from localhost.localdomain (unknown [188.242.7.54]) (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 6B1177F4F8; Mon, 2 Nov 2020 14:43:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 shelob.oktetlabs.ru 6B1177F4F8 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=oktetlabs.ru; s=default; t=1604317408; bh=VKfreri/A+YI7TAhvpBiBljSEh1e/twQA9Drs2Z6WIk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=ZIFD/Rs+xVpmam1377ZQwmm678w9Q5J1mW4F9nkbYQX+go2f6SSQC9pC+svXD1+ly mv4r7Db07SXsC8r/GVP0FPpDDvXknXxcvc5iWXcNMooiUaBOuWbsIKMFLHtMMfP+NT em0moH8f8vdSMGhdDwLjsXGmFVgy9gwdAqsACAMs= From: Ivan Malov To: dev@dpdk.org Cc: Xueming Li , Ori Kam , Thomas Monjalon , Ferruh Yigit , Andrew Rybchenko Date: Mon, 2 Nov 2020 14:43:15 +0300 Message-Id: <20201102114317.24492-1-ivan.malov@oktetlabs.ru> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201029114644.22169-1-ivan.malov@oktetlabs.ru> References: <20201029114644.22169-1-ivan.malov@oktetlabs.ru> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v3 1/2] ethdev: introduce transfer attribute to shared action conf X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" In a flow rule, attribute "transfer" means operation level at which both traffic is matched and actions are conducted. Add the very same attribute to shared action configuration. If a driver needs to prepare HW resources in two different ways, depending on the operation level, in order to set up an action, then this new attribute will indicate the level. Also, when handling a flow rule insertion, the driver will be able to turn down a shared action if its level is unfit. Signed-off-by: Ivan Malov Acked-by: Ori Kam --- lib/librte_ethdev/rte_flow.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index a8eac4deb..8b970ba0b 100644 --- a/lib/librte_ethdev/rte_flow.h +++ b/lib/librte_ethdev/rte_flow.h @@ -3487,6 +3487,14 @@ struct rte_flow_shared_action_conf { /**< Action valid for rules applied to ingress traffic. */ uint32_t egress:1; /**< Action valid for rules applied to egress traffic. */ + + /** + * When set to 1, indicates that the action is valid for + * transfer traffic; otherwise, for non-transfer traffic. + * + * See struct rte_flow_attr. + */ + uint32_t transfer:1; }; /** -- 2.20.1