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
..
2015-12-07 03:21:13 +01:00
2015-06-12 11:10:10 +02:00
2015-12-07 04:57:16 +01:00
2016-02-16 07:33:44 +01:00
2015-08-10 16:25:30 +02:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2016-03-11 18:05:55 +01:00
2015-05-11 15:51:14 +02:00
2015-03-10 11:47:46 +01:00
2016-03-25 19:53:00 +01:00
2016-03-16 17:47:10 +01:00