kernel_samsung_a53x/drivers/net/ethernet/hisilicon/hns3
Jie Wang c38e667ee8 net: hns3: add cond_resched() to hns3 ring buffer init process
[ Upstream commit 968fde83841a8c23558dfbd0a0c69d636db52b55 ]

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: a723fb8efe29 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 14:19:03 +01:00
..
hns3pf net: hns3: use appropriate barrier function after setting a bit value 2024-11-19 11:32:46 +01:00
hns3vf net: hns3: use appropriate barrier function after setting a bit value 2024-11-19 11:32:46 +01:00
hclge_mbx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hnae3.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hnae3.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns3_dcbnl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns3_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns3_enet.c net: hns3: add cond_resched() to hns3 ring buffer init process 2024-11-19 14:19:03 +01:00
hns3_enet.h net: hns3: add cond_resched() to hns3 ring buffer init process 2024-11-19 14:19:03 +01:00
hns3_ethtool.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hns3_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00