[dpdk-dev] [PATCH] pcap: Fixed bug in eth_pcap_rx function

2014-08-13 Thread Thomas Monjalon
> > 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 th

[dpdk-dev] [PATCH] pcap: Fixed bug in eth_pcap_rx function

2014-08-12 Thread Jiajia, SunX
at dpdk.org > Subject: [dpdk-dev] [PATCH] pcap: Fixed bug in eth_pcap_rx function > > 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

[dpdk-dev] [PATCH] pcap: Fixed bug in eth_pcap_rx function

2014-08-05 Thread Pablo de Lara
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[] s