ethdev: support flow elements with variable length
authorGregory Etelson <getelson@nvidia.com>
Wed, 20 Oct 2021 15:14:54 +0000 (18:14 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Oct 2021 16:53:46 +0000 (18:53 +0200)
commit6cf72047332b253a62aad3fa316901d93615d59a
tree7f712c0ff8578a4955542984595b6ace7aaf0c53
parentc8c69973255018f779443f34ad6c81a4c9b7f47c
ethdev: support flow elements with variable length

Flow API provides RAW item type for packet patterns of variable
length. The RAW item structure has fixed size members that describe the
variable pattern length and methods to process it.

There is the new Flow items with variable lengths coming - flex
item. In order to handle this item (and potentially other new ones
with variable pattern length) in flow copy and conversion routines
the helper function is introduced.

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Reviewed-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
lib/ethdev/rte_flow.c