Re: [dpdk-dev] [PATCH] app/testpmd: fix eth packet dump for small buffers

2019-07-24 Thread Iremonger, Bernard
> -Original Message- > From: David Marchand [mailto:david.march...@redhat.com] > Sent: Wednesday, July 24, 2019 11:59 AM > To: dev@dpdk.org > Cc: olivier.m...@6wind.com; sta...@dpdk.org; Lu, Wenzhuo > ; Wu, Jingjing ; Iremonger, > Bernard > Subject: [PATCH] app/testpmd: fix eth packet dump

[dpdk-dev] [PATCH] app/testpmd: fix eth packet dump for small buffers

2019-07-24 Thread David Marchand
In the rather unlikely case where the first segment is too small to contain an ethernet header, we can't go and directly dereference the mbuf data buffer. Using rte_pktmbuf_read is a little more expensive but this is still acceptable for a debugging feature. Fixes: af75078fece3 ("first public rel