提交 5eb1b589 编写于 作者: B Bhaskar Upadhaya 提交者: zhaoxiaoqiang11

qede: add netpoll support for qede driver

stable inclusion
from stable-v5.10.168
commit 8aba483f70344aaeca03630d4e8b8de31febcddd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7URR4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=8aba483f70344aaeca03630d4e8b8de31febcddd

----------------------------------------------------

[ Upstream commit 961aa716 ]

handle netpoll case when qede_poll is called by
netpoll layer with budget 0
Signed-off-by: NBhaskar Upadhaya <bupadhaya@marvell.com>
Signed-off-by: NIgor Russkikh <irusskikh@marvell.com>
Signed-off-by: NAriel Elior <aelior@marvell.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Stable-dep-of: 2ccce20d ("qede: execute xdp_do_flush() before napi_complete_done()")
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: Nzhaoxiaoqiang11 <zhaoxiaoqiang11@jd.com>
上级 27fe78bf
......@@ -1456,7 +1456,8 @@ int qede_poll(struct napi_struct *napi, int budget)
rx_work_done = (likely(fp->type & QEDE_FASTPATH_RX) &&
qede_has_rx_work(fp->rxq)) ?
qede_rx_int(fp, budget) : 0;
if (rx_work_done < budget) {
/* Handle case where we are called by netpoll with a budget of 0 */
if (rx_work_done < budget || !budget) {
if (!qede_poll_is_more_work(fp)) {
napi_complete_done(napi, rx_work_done);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册