From: Ivan Malov Date: Mon, 2 Nov 2020 11:43:15 +0000 (+0300) Subject: ethdev: introduce transfer attribute to shared action conf X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9ff91c0d817c38d19d97d30d52a47dcc1bc66a08;p=dpdk.git ethdev: introduce transfer attribute to shared action conf 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 Acked-by: Andrew Rybchenko Acked-by: Ajit Khaparde Acked-by: Andrey Vesnovaty --- diff --git a/lib/librte_ethdev/rte_flow.h b/lib/librte_ethdev/rte_flow.h index a8eac4deb8..8b970ba0b7 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; }; /**