pipeline: relax table match field requirements
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Thu, 15 Apr 2021 21:15:35 +0000 (22:15 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 20 Apr 2021 00:24:36 +0000 (02:24 +0200)
commitea5ab65f57434691eaa9f63974065e38a3bde87c
treea4ff75812427186fc4647dc7d8392cb9b23b2fbe
parent1af0e07b2758944905389d7a0ae15499d9c4e210
pipeline: relax table match field requirements

The match fields for a given table have to be part of the same header
or the metadata structure. This commit removes the requirement that
the list of match fields must observe the order of fields within their
structure. For example, the h.ipv4.dst_addr field can now be listed
before the h.ipv4.src_addr field in a table match field list, even
though within the IPv4 header the dst_addr field is present after the
src_addr field.

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_swx_ctl.c
lib/librte_pipeline/rte_swx_pipeline.c