]> git.ipfire.org Git - people/arne_f/kernel.git/commit
hv_netvsc: Remove "unlikely" from netvsc_select_queue
authorHaiyang Zhang <haiyangz@microsoft.com>
Thu, 20 Aug 2020 21:53:14 +0000 (14:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 08:46:33 +0000 (10:46 +0200)
commite5c9e466e9a446780914383bcfd388cd9398be59
tree929628ee8df127843eead304a87222a843aa14bb
parentc823c7f330bc3dca8731488d03490cc878aa3caf
hv_netvsc: Remove "unlikely" from netvsc_select_queue

commit 4d820543c54c47a2bd3c95ddbf52f83c89a219a0 upstream.

When using vf_ops->ndo_select_queue, the number of queues of VF is
usually bigger than the synthetic NIC. This condition may happen
often.
Remove "unlikely" from the comparison of ndev->real_num_tx_queues.

Fixes: b3bf5666a510 ("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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/hyperv/netvsc_drv.c