]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2020 23:24:00 +0000 (16:24 -0700)
commit8d7d0a8fa677080b217fbe13d96a15dd19cf1126
treeb0a6ecd53f5b3c5804cb2e859c42537e5f3a5775
parent27acd3ae4a92a2543334962c5a4a7406ba435be3
hv_netvsc: Remove "unlikely" from netvsc_select_queue

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: dd9ebeb97719 ("hv_netvsc: defer queue selection to VF")
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hyperv/netvsc_drv.c