Re: [dpdk-dev] [PATCH v3 4/8] app/testpmd: support VXLAN encap for sample action
From: Slava Ovsiienko <hidden>
Date: 2021-03-17 10:07:39
From: Slava Ovsiienko <hidden>
Date: 2021-03-17 10:07:39
-----Original Message-----
From: dev <redacted> On Behalf Of Salem Sol
Sent: Wednesday, March 17, 2021 11:26
To: dev@dpdk.org
Cc: Salem Sol <redacted>; Ori Kam <redacted>; Xiaoyun Li
[off-list ref]
Subject: [dpdk-dev] [PATCH v3 4/8] app/testpmd: support VXLAN encap for
sample action
Add support for rte_flow_action_vxlan_encap as a sample action.
The example of test-pmd command:
1. set vxlan ip-version ... vni ... udp-src ...
set raw_encap 1 eth src.../ ipv4.../...
set sample_actions 2 vxlan_encap / port_id id 0 / end
flow create 0 ... pattern eth / end actions
sample ratio 1 index 2 / raw_encap index 1 / port_id id 0...
The flow will result in all the matched egress packets will be
encapsulated and sent to wire, and also mirrored the packets
using VXLAN encapsulation data and sent to wire.
Signed-off-by: Salem Sol <redacted>Acked-by: Viacheslav Ovsiienko <redacted>