Loading
net: hns3: add cond_resched() to hns3 ring buffer init process
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9NZTZ CVE: NA ---------------------------------------------------------------------- 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: a723fb8e ("net: hns3: refine for set ring parameters") Signed-off-by:Jie Wang <wangjie125@huawei.com>