summaryrefslogtreecommitdiff
path: root/io_uring/fdinfo.c
diff options
context:
space:
mode:
authorZiwei Xiao <ziweixiao@google.com>2023-11-14 03:41:44 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-28 20:19:52 +0300
commitff33be9cecee28f021493369bddb826f068a1acb (patch)
tree62ad70b81e8ccc3fc50ae9051eba0a97ee1d1980 /io_uring/fdinfo.c
parent3409e3adb1b41a31ede1409d5288a9a1b5b1dead (diff)
downloadlinux-ff33be9cecee28f021493369bddb826f068a1acb.tar.xz
gve: Fixes for napi_poll when budget is 0
[ Upstream commit 278a370c1766060d2144d6cf0b06c101e1043b6d ] Netpoll will explicilty pass the polling call with a budget of 0 to indicate it's clearing the Tx path only. For the gve_rx_poll and gve_xdp_poll, they were mistakenly taking the 0 budget as the indication to do all the work. Add check to avoid the rx path and xdp path being called when budget is 0. And also avoid napi_complete_done being called when budget is 0 for netpoll. Fixes: f5cedc84a30d ("gve: Add transmit and receive support") Signed-off-by: Ziwei Xiao <ziweixiao@google.com> Link: https://lore.kernel.org/r/20231114004144.2022268-1-ziweixiao@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'io_uring/fdinfo.c')
0 files changed, 0 insertions, 0 deletions