Skip to content
Snippets Groups Projects
Commit 3dcc1edc authored by Li RongQing's avatar Li RongQing Committed by David S. Miller
Browse files

virtio_net: reduce raw_smp_processor_id() calling in virtnet_xdp_get_sq


smp_processor_id()/raw* will be called once each when not
more queues in virtnet_xdp_get_sq() which is called in
non-preemptible context, so it's safe to call the function
smp_processor_id() once.

Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b0df250
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment