diff options
author | zhangxiangqian <zhangxiangqian@kylinos.cn> | 2022-10-13 09:41:12 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-14 09:28:19 +0200 |
commit | 3d6642eac74d9442fde232181aa52d26d47991df (patch) | |
tree | 27ce2628f8d8acc23cf3236643cd2d62bede7492 /drivers/net/macvlan.c | |
parent | tls: strp: make sure the TCP skbs do not have overlapping data (diff) | |
download | linux-3d6642eac74d9442fde232181aa52d26d47991df.tar.xz linux-3d6642eac74d9442fde232181aa52d26d47991df.zip |
net: macvlan: change schedule system_wq to system_unbound_wq
For FT2000+/64 devices,
when four virtual machines share the same physical network interface,
DROP will occur due to the single core CPU performance problem.
ip_check_defrag and macvlan_process_broadcast is on the same CPU.
When the MACVLAN PORT increases, the CPU usage reaches more than 90%.
bc_queue > bc_queue_len_used (default 1000), causing DROP.
Signed-off-by: zhangxiangqian <zhangxiangqian@kylinos.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r-- | drivers/net/macvlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c index 8f8f73099de8..c5cfe8555199 100644 --- a/drivers/net/macvlan.c +++ b/drivers/net/macvlan.c @@ -361,7 +361,7 @@ static void macvlan_broadcast_enqueue(struct macvlan_port *port, } spin_unlock(&port->bc_queue.lock); - schedule_work(&port->bc_work); + queue_work(system_unbound_wq, &port->bc_work); if (err) goto free_nskb; |