numam-dpdk/examples
Jasvinder Singh ee3fd1b982 examples/ip_pipeline: extract fields in passthrough pipeline
This patch implements a generic approach to
extract fields from the packet's header and
copying them to packet metadata. The fields
are selected at the desired offset on the basis
of the mask specified in application configuration
file. The extracted fields, for instance, can be
used to compute hash for the lookup table. This
feature exposes more flexibility to the users as
they will be able to employ new protocol headers
and specify the required fields to be extracted.

The above feature has been implemented as port_in
action handler of the passthrough pipeline. The
example of the configuration file for passthrough
pipeline is as below;

[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
dma_size = 16
dma_dst_offset = 64
dma_src_offset = 150
dma_src_mask = 00FF0000FFFFFFFFFFFFFFFFFFFFFFFF
dma_hash_offset = 80

Signed-off-by: Jasvinder Singh <jasvinder.singh@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
2015-12-07 02:35:56 +01:00
..
bond examples/bond: fix build with clang 2015-05-19 17:35:33 +02:00
cmdline examples: fix whitespace 2015-06-12 11:10:10 +02:00
distributor examples/distributor: fix build with icc 2015 2015-11-27 21:43:35 +01:00
dpdk_qat mbuf: use offset macro 2015-06-24 12:01:14 +02:00
exception_path apps: use helper to create mbuf pools 2015-04-28 11:34:10 +02:00
helloworld tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
ip_fragmentation mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
ip_pipeline examples/ip_pipeline: extract fields in passthrough pipeline 2015-12-07 02:35:56 +01:00
ip_reassembly mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
ipv4_multicast examples/ipv4_multicast: support double vlan stripping and insertion 2015-07-07 16:42:49 +02:00
kni examples/kni: fix crash on exit 2015-08-10 16:25:30 +02:00
l2fwd examples: fix whitespace 2015-06-12 11:10:10 +02:00
l2fwd-crypto examples/l2fwd-crypto: add sample application 2015-11-25 19:18:04 +01:00
l2fwd-ivshmem apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
l2fwd-jobstats apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
l2fwd-keepalive examples/l2fwd-keepalive: add sample application 2015-11-19 15:45:26 +01:00
l3fwd mbuf: remove packet type from offload flags 2015-09-03 19:22:48 +02:00
l3fwd-acl acl: remove old API 2015-09-03 19:22:48 +02:00
l3fwd-power examples/l3fwd-power: disable Rx interrupt when waking up 2015-10-29 23:47:37 +01:00
l3fwd-vf hash: rename unused field 2015-07-13 19:27:31 +02:00
link_status_interrupt apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
load_balancer mbuf: use offset macro 2015-06-24 12:01:14 +02:00
multi_process examples: fix whitespace 2015-06-12 11:10:10 +02:00
netmap_compat examples: fix whitespace 2015-06-12 11:10:10 +02:00
packet_ordering apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
ptpclient examples/ptpclient: add minimal PTP client 2015-11-13 17:44:49 +01:00
qos_meter apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
qos_sched examples/qos_sched: remove duplicated cfgfile library 2015-10-22 18:09:36 +02:00
quota_watermark examples: fix whitespace 2015-06-12 11:10:10 +02:00
rxtx_callbacks apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
skeleton apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
tep_termination eal/linux: fix build with glibc < 2.12 2015-11-25 14:41:37 +01:00
timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
vhost eal/linux: fix build with glibc < 2.12 2015-11-25 14:41:37 +01:00
vhost_xen eal/linux: fix build with glibc < 2.12 2015-11-25 14:41:37 +01:00
vm_power_manager examples/vm_power: fix physical core mask 2015-08-11 09:43:22 +02:00
vmdq apps: fix default mbuf size 2015-05-11 15:51:14 +02:00
vmdq_dcb ethdev: rename DCB field in config structs 2015-11-01 14:44:31 +01:00
Makefile examples/l2fwd-crypto: add sample application 2015-11-25 19:18:04 +01:00