Re: [dpdk-dev] [PATCH 3/3] net/pcap: fix concurrent multiseg packet transmits

2019-07-24 Thread Ferruh Yigit
On 7/24/2019 12:54 PM, David Marchand wrote: > Two cores can send multi segment packets on two different pcap ports. > Because of this, we can't have one single buffer to linearize packets. +1, you are right. > > Use rte_pktmbuf_read() to copy the packet into a buffer on the stack > and remove e

[dpdk-dev] [PATCH 3/3] net/pcap: fix concurrent multiseg packet transmits

2019-07-24 Thread David Marchand
Two cores can send multi segment packets on two different pcap ports. Because of this, we can't have one single buffer to linearize packets. Use rte_pktmbuf_read() to copy the packet into a buffer on the stack and remove eth_pcap_gather_data(). Fixes: 6db141c91e1f ("pcap: support jumbo frames") C