[dpdk-dev] [PATCH 1/4] net/netvsc: move rxbuf_info from per-device to per-queue

Stephen Hemminger stephen at networkplumber.org
Mon Aug 17 01:11:03 CEST 2020


On Mon, 10 Aug 2020 19:33:11 -0700
longli at linuxonhyperv.com wrote:

> From: Long Li <longli at microsoft.com>
> 
> netvsc uses rxbuf_info buffer to track received packets attached via
> rte_pktmbuf_attach_extbuf() and ack the host based on usage count. It uses
> the transaction_id in the VMBus packet to locate where to use memory in the
> rxbuf_info.
> 
> This is not correct in multiple channel setup, as different channels may
> return idential transaction_ids at a time, and may corrupt the rxbuf_info
> buffer.
> 
> Fix this by defining rxbuf_info for each queue.
> 
> Fixes: 4e9c73e96 ("net/netvsc: add Hyper-V network device")
> Cc: stable at dpdk.org
> Signed-off-by: Long Li <longli at microsoft.com>

Acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list