Re: [dpdk-dev] [PATCH 1/3] net/pcap: fix Rx with small buffers

2019-07-24 Thread Ferruh Yigit
On 7/24/2019 12:54 PM, David Marchand wrote: > If the pkt pool contains only buffers smaller than the default headroom, > then the driver will compute an invalid buffer size (negative value cast > to an uint16_t). > Rely on the mbuf api to check how much space is available in the mbuf. > > Fixes:

[dpdk-dev] [PATCH 1/3] net/pcap: fix Rx with small buffers

2019-07-24 Thread David Marchand
If the pkt pool contains only buffers smaller than the default headroom, then the driver will compute an invalid buffer size (negative value cast to an uint16_t). Rely on the mbuf api to check how much space is available in the mbuf. Fixes: 6eb0ae218a98 ("pcap: fix mbuf allocation") Cc: sta...@dpd