Commit f3acd33d authored by xiaolinkui's avatar xiaolinkui Committed by David S. Miller

net: use unlikely for dql_avail case

This is an unlikely case, use unlikely() on it seems logical.
Signed-off-by: default avatarxiaolinkui <xiaolinkui@kylinos.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d4ed7463
...@@ -3272,7 +3272,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, ...@@ -3272,7 +3272,7 @@ static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
*/ */
smp_mb(); smp_mb();
if (dql_avail(&dev_queue->dql) < 0) if (unlikely(dql_avail(&dev_queue->dql) < 0))
return; return;
if (test_and_clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state)) if (test_and_clear_bit(__QUEUE_STATE_STACK_XOFF, &dev_queue->state))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment