ethdev: add IPv4/IPv6 ECN header rewrite action
authorJiawei Wang <jiaweiw@nvidia.com>
Sat, 2 Apr 2022 07:11:47 +0000 (10:11 +0300)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Thu, 2 Jun 2022 09:58:38 +0000 (11:58 +0200)
commitc4e442fa4c455afcbdf11d5c3d7fd7e3481eb1a4
tree32c1bc3590feeedc7a41730ef841302b905ac142
parentea6101a8e483f3b6ec505c91b7e72ab1628dab1f
ethdev: add IPv4/IPv6 ECN header rewrite action

This patch introduces the IPv4/IPv6 ECN modify field support, and
adds the testpmd CLI commands support.

Usage:
modify_field op set dst_type ipv4_ecn src_type ...

For example:

flow create 0 ingress group 1 pattern eth / ipv4 /  end actions
modify_field op set dst_type ipv4_ecn src_type value src_value
0x03 width 2 / queue index 0 / end

Signed-off-by: Jiawei Wang <jiaweiw@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-pmd/cmdline_flow.c
lib/ethdev/rte_flow.h