[ovs-dev] [PATCH V6 2/2] odp-util: Do not rewrite fields with the same values as matched

2019-03-09 Thread Eli Britstein
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 +-

[ovs-dev] [PATCH V6 0/2] Do not rewrite fields with the same values as matched

2019-03-09 Thread Eli Britstein
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