numam-dpdk/examples
Jianfeng Tan 71a7e2424e examples/l3fwd: fix using packet type blindly
As a example to use ptype info, l3fwd needs firstly to use
rte_eth_dev_get_supported_ptypes() API to check if device and/or
its PMD driver will parse and fill the needed packet type; if not,
use the newly added option, --parse-ptype, to analyze it in the
callback softly.

As the mode of EXACT_MATCH uses the 5 tuples to caculate hash, so
we narrow down its scope to:
  a. ip packets with no extensions, and
  b. L4 payload should be either tcp or udp.

Note: this patch does not completely solve the issue, "cannot run
l3fwd on virtio or other devices", because hw_ip_checksum may be
not supported by the devices. Currently we can:
  a. remove this requirements, or
  b. wait for virtio front end (pmd) to support it.

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
2016-03-25 19:53:00 +01:00
..
bond examples/bond: fix FreeBSD build 2015-12-07 03:21:13 +01:00
cmdline examples: fix whitespace 2015-06-12 11:10:10 +02:00
distributor examples/distributor: fix build for non-x86 arch 2016-02-16 07:21:31 +01:00
dpdk_qat replace bzero with memset 2015-12-07 04:57:16 +01:00
ethtool examples/ethtool: fix build 2016-02-16 07:33:44 +01: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 lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
ip_pipeline examples/ip_pipeline: fix configuration parser 2016-03-22 19:22:06 +01:00
ip_reassembly lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
ipsec-secgw examples/ipsec-secgw: add IPsec sample application 2016-03-11 11:06:29 +01:00
ipv4_multicast remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
kni examples/kni: fix crash on exit 2015-08-10 16:25:30 +02:00
l2fwd examples: use buffered Tx 2016-03-11 18:05:55 +01:00
l2fwd-cat examples/l2fwd-cat: add sample application for PQoS CAT and CDP 2016-03-21 23:36:43 +01:00
l2fwd-crypto examples/l2fwd-crypto: add NULL algorithms 2016-03-24 20:53:40 +01:00
l2fwd-ivshmem config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
l2fwd-jobstats examples: use buffered Tx 2016-03-11 18:05:55 +01:00
l2fwd-keepalive examples: use buffered Tx 2016-03-11 18:05:55 +01:00
l3fwd examples/l3fwd: fix using packet type blindly 2016-03-25 19:53:00 +01:00
l3fwd-acl examples: use buffered Tx 2016-03-11 18:05:55 +01:00
l3fwd-power examples/l3fwd-power: fix memory leak for non-IP packets 2016-03-16 18:51:43 +01:00
l3fwd-vf lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
link_status_interrupt examples: use buffered Tx 2016-03-11 18:05:55 +01:00
load_balancer lpm: add a new config structure for IPv4 2016-03-09 23:05:05 +01:00
multi_process examples: use buffered Tx 2016-03-11 18:05:55 +01:00
netmap_compat remove extra parentheses in return statement 2016-02-10 15:47:50 +01:00
packet_ordering examples: use buffered Tx 2016-03-11 18:05:55 +01:00
performance-thread examples/performance-thread: fix build without SSE4.1 2016-03-22 19:22:06 +01:00
ptpclient mk: fix missing librt dependencies 2016-03-22 20:46:53 +01:00
qos_meter examples: use buffered Tx 2016-03-11 18:05:55 +01:00
qos_sched doc: drop old naming of the project 2016-02-10 15:47:51 +01:00
quota_watermark remove extra parentheses in return statement 2016-02-10 15:47:50 +01: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 ethdev: rework tunnel filtering structure 2016-03-13 15:26:55 +01:00
timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
vhost examples/vhost: fix VLAN tag 2016-03-25 19:53:00 +01:00
vhost_xen vhost: remove device operations pointers 2016-02-19 19:33:31 +01:00
vm_power_manager config: remove useless explicit includes of generated header 2016-02-10 22:43:38 +01:00
vmdq examples/vmdq: fix crash when using too many pools 2015-12-07 03:21:13 +01:00
vmdq_dcb examples/vmdq_dcb: support X710 2016-03-16 17:47:10 +01:00
Makefile examples/l2fwd-cat: add sample application for PQoS CAT and CDP 2016-03-21 23:36:43 +01:00