]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gve: Fix GFP flags when allocing pages
authorShailend Chand <shailend@google.com>
Tue, 13 Sep 2022 00:09:01 +0000 (17:09 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Nov 2023 16:26:42 +0000 (17:26 +0100)
commit77db87c4a4ede20048b280508902863e1d9dae19
tree7eae685d1d15d378a4c046c8518d0e1aae64392b
parent8b424bdf6c9c13674966b24d0c11954056b6206b
gve: Fix GFP flags when allocing pages

[ Upstream commit a92f7a6feeb3884c69c1c7c1f13bccecb2228ad0 ]

Use GFP_ATOMIC when allocating pages out of the hotpath,
continue to use GFP_KERNEL when allocating pages during setup.

GFP_KERNEL will allow blocking which allows it to succeed
more often in a low memory enviornment but in the hotpath we do
not want to allow the allocation to block.

Fixes: f5cedc84a30d2 ("gve: Add transmit and receive support")
Signed-off-by: Catherine Sullivan <csully@google.com>
Signed-off-by: David Awogbemila <awogbemila@google.com>
Link: https://lore.kernel.org/r/20220126003843.3584521-1-awogbemila@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/google/gve/gve_rx_dqo.c