Hi Alexander, > -----Original Message----- > From: Alexander Kozyrev <akozy...@nvidia.com> > Sent: Sunday, February 6, 2022 5:25 AM > Subject: [PATCH v3 02/10] ethdev: add flow item/action templates > > Treating every single flow rule as a completely independent and separate > entity negatively impacts the flow rules insertion rate. Oftentimes in an > application, many flow rules share a common structure (the same item mask > and/or action list) so they can be grouped and classified together. > This knowledge may be used as a source of optimization by a PMD/HW. > > The pattern template defines common matching fields (the item mask) without > values. The actions template holds a list of action types that will be used > together in the same rule. The specific values for items and actions will > be given only during the rule creation. > > A table combines pattern and actions templates along with shared flow rule > attributes (group ID, priority and traffic direction). This way a PMD/HW > can prepare all the resources needed for efficient flow rules creation in > the datapath. To avoid any hiccups due to memory reallocation, the maximum > number of flow rules is defined at the table creation time. > > The flow rule creation is done by selecting a table, a pattern template > and an actions template (which are bound to the table), and setting unique > values for the items and actions. > > Signed-off-by: Alexander Kozyrev <akozy...@nvidia.com> > ---
Acked-by: Ori Kam <or...@nvidia.com> Best, Ori