Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-22 Thread Xiaoyu Min
On Wed, 20-04-22, 10:26, Kevin Traynor wrote: > On 15/04/2020 14:48, Xiaoyu Min wrote: > > This RFC propose a generic `swap` forwarding engine, which could be seen > > as an extension of existing `macswap` but provide more flexibility. > > > > With this generic `swap` forwarding engine, we can `sw

Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-22 Thread Kevin Traynor
On 15/04/2020 14:48, Xiaoyu Min wrote: > This RFC propose a generic `swap` forwarding engine, which could be seen > as an extension of existing `macswap` but provide more flexibility. > > With this generic `swap` forwarding engine, we can `swap` the source and > destination of L2/L3 address as wel

Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-21 Thread Xiaoyu Min
On Tue, 20-04-21, 21:56, Ferruh Yigit wrote: > On 4/15/2020 2:48 PM, Xiaoyu Min wrote: > > This RFC propose a generic `swap` forwarding engine, which could be seen > > as an extension of existing `macswap` but provide more flexibility. > > > > With this generic `swap` forwarding engine, we can `sw

Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-21 Thread Xiaoyu Min
- ``auto``: swaps all supported fields (L2 to L4) if available, default. > > + > > + - ``mac``: swaps the source address and destination address of Ethernet, > > as > > same as ``macswap``. > > + > > + - ``ip``: swaps the source address and destination address o

Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-21 Thread Ferruh Yigit
On 4/15/2020 2:48 PM, Xiaoyu Min wrote: > This RFC propose a generic `swap` forwarding engine, which could be seen > as an extension of existing `macswap` but provide more flexibility. > > With this generic `swap` forwarding engine, we can `swap` the source and > destination of L2/L3 address as we

Re: [dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-21 Thread Iremonger, Bernard
source address and destination address of Ethernet, as > same as ``macswap``. > + > + - ``ip``: swaps the source address and destination address of IP (v4 and > v6). > + > + - ``tp``: swaps the source port and destination port of transport layer > (TCP > and UDP). > + &

[dpdk-dev] [RFC] app/testpmd: add generic swap forwarding engine

2020-04-15 Thread Xiaoyu Min
This RFC propose a generic `swap` forwarding engine, which could be seen as an extension of existing `macswap` but provide more flexibility. With this generic `swap` forwarding engine, we can `swap` the source and destination of L2/L3 address as well as the source and destination port of L4 accord