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

Iremonger, Bernard bernard.iremonger at intel.com
Wed Jul 24 17:00:48 CEST 2019


> -----Original Message-----
> From: David Marchand [mailto:david.marchand at redhat.com]
> Sent: Wednesday, July 24, 2019 11:59 AM
> To: dev at dpdk.org
> Cc: olivier.matz at 6wind.com; stable at dpdk.org; Lu, Wenzhuo
> <wenzhuo.lu at intel.com>; Wu, Jingjing <jingjing.wu at intel.com>; Iremonger,
> Bernard <bernard.iremonger at intel.com>
> Subject: [PATCH] app/testpmd: fix eth packet dump for small buffers
> 
> 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 release")
> Cc: stable at dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand at redhat.com>

Acked-by: Bernard Iremonger <bernard.iremonger at intel.com>



More information about the stable mailing list