Pass-through pipeline is updated with addition of packet fields swap action. To enable swap action, new entry i.e 'swap' is required in the passthrough pipeline section of the configuration file, and this entry contains the offsets (in bytes) of the packet fields to be swapped. Each swap entry specifies the pair of packet fields offsets to be swapped. Therefore, to perform swap action on more than one pair of packets fields, separate swap entries, each one responsible for unique pair of packet fields are needed. Following illustrates the pass-through pipeline configuration that swaps the source and destination addresses of the mac and tcp ports of the received packets. [EAL] log_level = 0 [PIPELINE0] type = MASTER core = 0 [PIPELINE1] type = PASS-THROUGH core = 1 pktq_in = RXQ0.0 RXQ1.0 RXQ2.0 RXQ3.0 pktq_out = TXQ0.0 TXQ1.0 TXQ2.0 TXQ3.0 swap = 256 262; MACDST <-> MACSRC ;swap = 282 286; IPSRC <-> IPDST swap = 290 292; PORTSRC <-> PORTDST Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD license for the core libraries and drivers. The kernel components are GPLv2 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%