To improve performance and avoid wasting resources for HW offloaded
flows, do not rewrite fields that are matched with the same value.
Signed-off-by: Eli Britstein
Reviewed-by: Roi Dayan
---
lib/odp-util.c| 93 +--
tests/mpls-xlate.at | 2 +-
This patch set avoids unnecessary rewrite actions to fields with the
same values as matched on.
Patch 1 is a pre-step of generating ovs key fields macros
Patch 2 avoids the unnecessary rewrites and adapts the tests accordingly
Differences from V5:
Generating directly offsetof/sizeof arrays