examples/performance-thread: add packet type parsing
authorTomasz Kulasek <tomaszx.kulasek@intel.com>
Fri, 16 Dec 2016 15:15:16 +0000 (16:15 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 17 Jan 2017 17:40:17 +0000 (18:40 +0100)
commitfaf08c8b0f4a28bcbee6d7701acb010250ee2ff7
tree5c81b7c9e4bd225f8506c2bf35426b3ab91a60ed
parentd30185b7bf1cd6924bee7e7abe5d00ae31203ccb
examples/performance-thread: add packet type parsing

Last changes in Niantic and Fortville NIC drivers causes that
vector Rx path is chosen by default in l3fwd-thread application.
This path doesn't support propagation of hw packet type recognition
to the packet_type field in mbuf, and packets cannot be classified
properly.

The approach to solve this problem is similar to the commit:
71a7e2424e07 ("examples/l3fwd: fix using packet type blindly").

To use sw packet analyzer, new command line option "--parse-ptype" is
introduced.

Signed-off-by: Tomasz Kulasek <tomaszx.kulasek@intel.com>
doc/guides/sample_app_ug/performance_thread.rst
examples/performance-thread/l3fwd-thread/main.c