numam-dpdk/app/test-pmd
Sean Zhang 26b7259a79 app/testpmd: support GRE option flow item
Add gre_option command for matching optional fields
(checksum/key/sequence) in GRE header. The item must follow gre item,
and the item does not change the flags in gre item, the application
should set the flags in gre item correspondingly.
Application can still use gre_key item 'gre_key value is xx' for key
matching, the effect is the same with using 'gre_option key is xx'.

The examples for gre_option are as follows:

To match on checksum field with value 0x11:
testpmd> ... pattern / eth / gre c_bit is 1 / gre_option checksum is
		0x11 / end ..

To match on checksum field with value 0x11 and any value of key:
testpmd> ... pattern / eth / gre c_bit is 1 k_bit is 1 / gre_option
		checksum is 0x11 / end ..

To match on checksum field with value 0x11 and no key field in packet:
testpmd> ... pattern / eth / gre c_bit is 1 k_bit is 0 / gre_option
		checksum is 0x11 / end ..

The invalid patterns for gre_option are as follows:

testpmd> ... pattern / eth / gre / gre_option checksum is 0x11 / end ..
		(c_bit in gre item not present)
testpmd> ... pattern / eth / gre c_bit is 0 / gre_option checksum is 0x11 /
		end .. (c_bit is unset for gre item, but checksum is
		specified by gre_option item)

Signed-off-by: Sean Zhang <xiazhang@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
2022-02-11 16:51:59 +01:00
..
5tswap.c net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
bpf_cmd.c app/testpmd: send failure logs to stderr 2021-07-24 15:12:57 +02:00
bpf_cmd.h build: replace use of old build macros 2020-10-19 22:15:44 +02:00
cmd_flex_item.c remove unnecessary null checks 2022-02-12 12:07:48 +01:00
cmdline_flow.c app/testpmd: support GRE option flow item 2022-02-11 16:51:59 +01:00
cmdline_mtr.c app/testpmd: fix access to DSCP table entries 2021-10-19 18:10:28 +02:00
cmdline_mtr.h app/testpmd: support policy actions per color 2021-04-21 12:22:18 +02:00
cmdline_tm.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
cmdline_tm.h app/testpmd: add TM command for non-leaf and packet mode 2020-09-18 18:55:10 +02:00
cmdline.c ethdev: add L2TPv2 RSS offload type 2022-02-09 21:30:14 +01:00
config.c ethdev: add L2TPv2 RSS offload type 2022-02-09 21:30:14 +01:00
csumonly.c app/testpmd: add SW L4 checksum in multi-segments 2022-02-04 13:44:55 +01:00
flowgen.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
icmpecho.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
ieee1588fwd.c mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
iofwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macfwd.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap_common.h mbuf: add namespace to offload flags 2021-10-24 13:37:43 +02:00
macswap_neon.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap_sse.h net: add rte prefix to ether structures 2019-05-24 13:34:45 +02:00
macswap.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
macswap.h net: rename Ethernet header fields 2021-10-08 14:58:11 +02:00
meson.build build: make metrics libraries optional 2021-11-17 12:48:33 +01:00
noisy_vnf.c app/testpmd: update forward engine beginning 2021-10-08 18:57:48 +02:00
parameters.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
rxonly.c app: remove unneeded atomic header include 2021-11-17 11:07:06 +01:00
shared_rxq_fwd.c app/testpmd: add forwarding engine for shared Rx queue 2021-10-22 00:09:19 +02:00
testpmd.c remove unnecessary null checks 2022-02-12 12:07:48 +01:00
testpmd.h app/testpmd: fix Tx scheduling interval 2022-01-14 18:02:30 +01:00
txonly.c app/testpmd: fix Tx scheduling interval 2022-01-14 18:02:30 +01:00
util.c app/testpmd: fix flow transfer proxy port handling 2021-11-17 11:26:27 +01:00