Commit 3d6642ea authored by zhangxiangqian's avatar zhangxiangqian Committed by David S. Miller

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: default avatarzhangxiangqian <zhangxiangqian@kylinos.cn>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d87bbd3
......@@ -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;
......
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