[dpdk-dev] [PATCH v4 2/3] examples/l3fwd: fix using packet type blindly

2016-03-25 Thread Thomas Monjalon
2016-03-25 08:47, Jianfeng Tan: > +* **examples/vhost: Fixed frequent mbuf allocation failure.** > + > + vhost-switch often fails to allocate mbuf when dequeue from vring because > it > + wrongly calculates the number of mbufs needed. Wrong rebase here ;) > +* **examples/l3fwd: Fixed using pac

[dpdk-dev] [PATCH v4 2/3] examples/l3fwd: fix using packet type blindly

2016-03-25 Thread Jianfeng Tan
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