Skip to content

Commit 4d82054

Browse files
haiyangzdavem330
authored andcommitted
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: b3bf566 ("hv_netvsc: defer queue selection to VF") Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ce51f63 commit 4d82054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/hyperv/netvsc_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ static u16 netvsc_select_queue(struct net_device *ndev, struct sk_buff *skb,
367367
}
368368
rcu_read_unlock();
369369

370-
while (unlikely(txq >= ndev->real_num_tx_queues))
370+
while (txq >= ndev->real_num_tx_queues)
371371
txq -= ndev->real_num_tx_queues;
372372

373373
return txq;

0 commit comments

Comments
 (0)