1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/hisilicon
Jie Wang 968fde8384 net: hns3: add cond_resched() to hns3 ring buffer init process
Currently hns3 ring buffer init process would hold cpu too long with big
Tx/Rx ring depth. This could cause soft lockup.

So this patch adds cond_resched() to the process. Then cpu can break to
run other tasks instead of busy looping.

Fixes: a723fb8efe ("net: hns3: refine for set ring parameters")
Signed-off-by: Jie Wang <wangjie125@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2024-06-07 12:20:28 +01:00
..
hns net: annotate writes on dev->mtu from ndo_change_mtu() 2024-05-07 16:19:14 -07:00
hns3 net: hns3: add cond_resched() to hns3 ring buffer init process 2024-06-07 12:20:28 +01:00
hip04_eth.c net: ethernet: hisilicon: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
hisi_femac.c net: ethernet: hisilicon: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
hix5hd2_gmac.c net: ethernet: Use device_get_match_data() 2023-10-13 10:04:53 +01:00
hns_mdio.c net: ethernet: hisilicon: Convert to platform remove callback returning void 2023-09-20 09:06:38 +01:00
Kconfig ethernet: fix PTP_1588_CLOCK dependencies 2021-08-13 17:49:05 -07:00
Makefile