app/testpmd: support integrity flow item
authorOri Kam <orika@nvidia.com>
Mon, 19 Apr 2021 12:44:31 +0000 (15:44 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 19 Apr 2021 17:05:17 +0000 (19:05 +0200)
commit0797fa6ccf9dec6e9e079d76ca2cedf7ceda0df4
tree6eabd3dba8c97139d853014418f8441b382f2350
parentb10a421a1f3bb88c0c4317304611c98e578f9257
app/testpmd: support integrity flow item

The integrity item allows the application to match
on the integrity of a packet.

Usage example:
match that packet integrity checks are OK. The checks depend on
packet layers. For example ICMP packet will not check L4 level.
flow create 0 ingress pattern integrity value mask 0x01 value spec 0x01

Match that L4 packet is OK - check L2 & L3 & L4 layers:
flow create 0 ingress pattern integrity value mask 0xfe value spec 0xfe

Signed-off-by: Ori Kam <orika@nvidia.com>
Signed-off-by: Gregory Etelson <getelson@nvidia.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
app/test-pmd/cmdline_flow.c
doc/guides/testpmd_app_ug/testpmd_funcs.rst