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>
This commit is contained in:
zhangxiangqian 2022-10-13 15:41:12 +08:00 коммит произвёл David S. Miller
Родитель 0d87bbd39d
Коммит 3d6642eac7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;