linux-uconsole/drivers/net/hyperv
Haiyang Zhang 1bf1ca93b9 hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit()
[ Upstream commit c3d897e01a ]

netvsc_vf_xmit() / dev_queue_xmit() will call VF NIC’s ndo_select_queue
or netdev_pick_tx() again. They will use skb_get_rx_queue() to get the
queue number, so the “skb->queue_mapping - 1” will be used. This may
cause the last queue of VF not been used.

Use skb_record_rx_queue() here, so that the skb_get_rx_queue() called
later will get the correct queue number, and VF will be able to use
all queues.

Fixes: b3bf5666a5 ("hv_netvsc: defer queue selection to VF")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-26 10:31:06 +02:00
..
hyperv_net.h hv_netvsc: Fix offset usage in netvsc_send_table() 2020-01-27 14:51:20 +01:00
Kconfig hv_netvsc: drop common code until callback model fixed 2018-06-12 15:22:28 -07:00
Makefile
netvsc.c hv_netvsc: Fix unwanted wakeup in netvsc_attach() 2020-03-05 16:42:19 +01:00
netvsc_drv.c hv_netvsc: Fix the queue_mapping in netvsc_vf_xmit() 2020-08-26 10:31:06 +02:00
netvsc_trace.c
netvsc_trace.h
rndis_filter.c hv_netvsc: Fix memory leak when removing rndis device 2020-01-23 08:21:34 +01:00