numam-dpdk/lib/librte_pmd_pcap
Richardson, Bruce 6eb0ae218a pcap: fix mbuf allocation
A static list of 64 mbufs was being reused in Rx function.
This caused two errors:
1) If more than 64 buffers were requested in a single burst,
   only the last 64 buffers are returned, the others are lost.
2) Application will free the mbuf being returned, but the receive
   function will reuse the buffer anyway. If some other allocation
   is done, there is suddenly multiple writers for the same mbuf.
It is fixed by allocating mbuf on demand.

In the same time, some length errors are fixed.

Reported-by: Mats Liljegren <mats.liljegren@enea.com>
Reported-by: Robert Sanford <rsanford@prolexic.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
2014-01-15 15:55:05 +01:00
..
Makefile pcap: fix build without ixgbe 2013-11-24 01:31:33 +01:00
rte_eth_pcap_arg_parser.c pcap: add new driver 2013-10-09 16:16:14 +02:00
rte_eth_pcap_arg_parser.h pcap: add new driver 2013-10-09 16:16:14 +02:00
rte_eth_pcap.c pcap: fix mbuf allocation 2014-01-15 15:55:05 +01:00
rte_eth_pcap.h pcap: add new driver 2013-10-09 16:16:14 +02:00