mbox series

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

Message ID 1538923293-127516-1-git-send-email-orika@mellanox.com (mailing list archive)
Headers
Series app/testpmd: add l3 encap/decap cmd |

Message

Ori Kam Oct. 7, 2018, 2:41 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

v2:
 * rebase on tip.


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                 | 316 ++++++++++++++++++++
 app/test-pmd/testpmd.h                      |  42 +++
 doc/guides/testpmd_app_ug/testpmd_funcs.rst | 131 +++++++++
 4 files changed, 923 insertions(+)
  

Comments

Ferruh Yigit Oct. 9, 2018, 4:48 p.m. UTC | #1
On 10/7/2018 3:41 PM, Ori Kam wrote:
> 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
> 
> v2:
>  * rebase on tip.
> 
> 
> Ori Kam (3):
>   app/testpmd: add MPLSoUDP encapsulation
>   app/testpmd: add MPLSoGRE encapsulation
>   app/testpmd: add decap l3 command

Reminder of this patchset, any reviews welcome.