[dpdk-dev] [PATCH 3/3] app/testpmd: add sanity checks on received/sent packets
David Marchand
david.marchand at 6wind.com
Tue Sep 25 17:11:11 CEST 2018
On Tue, Sep 25, 2018 at 3:17 PM, Iremonger, Bernard
<bernard.iremonger at intel.com> wrote:
> Hi David,
>
>> -----Original Message-----
>> From: David Marchand [mailto:david.marchand at 6wind.com]
>> Sent: Monday, September 10, 2018 6:46 AM
>> To: dev at dpdk.org
>> Cc: olivier.matz at 6wind.com; Lu, Wenzhuo <wenzhuo.lu at intel.com>; Wu,
>> Jingjing <jingjing.wu at intel.com>; Iremonger, Bernard
>> <bernard.iremonger at intel.com>
>> Subject: [PATCH 3/3] app/testpmd: add sanity checks on received/sent
>> packets
>>
>> Make use of the newly introduced rte_mbuf_check() to (optionally) check all
>> packets received/sent through a port.
>> The idea behind this is to help to quickly identify badly formatted mbufs
>> coming from the pmd on the rx side, and from the application on the tx side.
>> Setting the verbose level to some > 0 value will dump all packets in the
>> associated rx/tx callback to further help in the debugging.
>>
>> Signed-off-by: David Marchand <david.marchand at 6wind.com>
>> ---
>> app/test-pmd/cmdline.c | 63 +++++++++++++++++++
>> app/test-pmd/config.c | 23 +++++++
>> app/test-pmd/parameters.c | 7 +++
>> app/test-pmd/testpmd.c | 123
>> ++++++++++++++++++++++++++++++++++++++
>> app/test-pmd/testpmd.h | 9 +++
>> 5 files changed, 225 insertions(+)
>
> There should probably be an entry in section 4.6 of the Testpmd User Guide for the
> "port config all sanity_check" command.
Sure, will do.
--
David Marchand
More information about the dev
mailing list