]> git.baikalelectronics.ru Git - kernel.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)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 01:31:06 +0000 (18:31 -0700)
commit2e65a48ea58cf77300e0c78daaf2e74d88c264df
tree35267b8eb3cb7a1174c9af03357a93e57d6fc7df
parentbe5455883d2fe1d8ade2a5a19db863027ea07fd6
gve: Fix GFP flags when allocing pages

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: 7c1caa9e3b2e4 ("gve: DQO: Add RX path")
Signed-off-by: Shailend Chand <shailend@google.com>
Signed-off-by: Jeroen de Borst <jeroendb@google.com>
Link: https://lore.kernel.org/r/20220913000901.959546-1-jeroendb@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/google/gve/gve_rx_dqo.c