ethdev: introduce transfer attribute to shared action conf
authorIvan Malov <ivan.malov@oktetlabs.ru>
Mon, 2 Nov 2020 11:43:15 +0000 (14:43 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 22:35:07 +0000 (23:35 +0100)
commit9ff91c0d817c38d19d97d30d52a47dcc1bc66a08
treef7c1ad14d5fbe07b685eb761a05c0db80eb9684f
parentf6870a7ed6b3fde94fb936256515bfc53bdc5015
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 <ivan.malov@oktetlabs.ru>
Acked-by: Ori Kam <orika@nvidia.com>
Acked-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Acked-by: Andrey Vesnovaty <andreyv@nvidia.com>
lib/librte_ethdev/rte_flow.h