net: introduce IPv4 IHL and version fields
authorGregory Etelson <getelson@nvidia.com>
Thu, 14 Oct 2021 17:41:13 +0000 (20:41 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 14 Oct 2021 21:00:45 +0000 (23:00 +0200)
commit63f2bbfa826661f3a23aa8257d4d4c4ce475fe1e
treedb69c52dbd7fab5cfffc9253c7e2d96e3a22be70
parent5dee2a0a6b445ba95d5dfe922dc9c3e33cb8015a
net: introduce IPv4 IHL and version fields

RTE IPv4 header definition combines the `version' and `ihl'  fields
into a single structure member.
This patch introduces dedicated structure members for both `version'
and `ihl' IPv4 fields. Separated header fields definitions allow to
create simplified code to match on the IHL value in a flow rule.
The original `version_ihl' structure member is kept for backward
compatibility.

Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Ray Kinsella <mdr@ashroe.eu>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
app/test/test_flow_classify.c
doc/guides/rel_notes/deprecation.rst
doc/guides/rel_notes/release_21_11.rst
lib/net/rte_ip.h