[0/3] app/testpmd: add l3 encap/decap cmd

Message ID 1538251641-91511-1-git-send-email-orika@mellanox.com (mailing list archive)


Ori Kam Sept. 29, 2018, 8:07 p.m. UTC
  Currently testpmd have support only for encapsulation and decapsulation
for L2 tunnels.

This series adds commands for L3 tunnels types, L3 tunnel is a tunnel
that the inner packet is missing the L2 part. The encapsulation uses
the encap_l3 command in-order to remove the inner l2.
For decapsulation since the inner packet is missing the L2 there is
a need to supply it to the NIC using the decap_l3.

The tunnels are are implemented are: MPLSoGRE and MPLSoUDP
while the decap can be used for all L3 tunnels.

This series is based on add generic L2/L3 tunnel encapsulation actions [1]

[1] https://mails.dpdk.org/archives/dev/2018-September/111781.html

Ori Kam (3):
  app/testpmd: add MPLSoUDP encapsulation
  app/testpmd: add MPLSoGRE encapsulation
  app/testpmd: add decap l3 command

 app/test-pmd/cmdline.c                      | 434 ++++++++++++++++++++++++++++
 app/test-pmd/cmdline_flow.c                 | 317 ++++++++++++++++++++
 app/test-pmd/testpmd.h                      |  42 +++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 131 +++++++++
 4 files changed, 924 insertions(+)