[dpdk-dev] [PATCH] pcap: Fixed bug in eth_pcap_rx function
Thomas Monjalon
thomas.monjalon at 6wind.com
Wed Aug 13 01:29:39 CEST 2014
> > Normally, bufs[i] stores the mbuf pointer, the index of buf[i]
> > is the loop count i, but if header.len > buf_size, DPDK will
> > free the mbuf, but the loop count i still increases, so some
> > of the items in bufs[] might be NULL ponter, causing a potential
> > DPDK core. Using num_rx as the index for bufs[] solves the problem.
> >
> > Signed-off-by: Pablo de Lara <pablo.de.lara.guarch at intel.com>
>
> Tested-by: Jiajia SunX <sunx.jiajia at intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon at 6wind.com>
Applied for version 1.7.1
Thanks
--
Thomas
More information about the dev
mailing list