Skip to content

gve: Fix GFP flags when allocing pages

Jordan Kimbrough requested to merge jokimbro/centos-stream-9:2140229 into main

Bugzilla: http://bugzilla.redhat.com/2140229

Build Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=50032714

Tested: Tested successfully on google internal gve integration tests

commit 8ccac4edc8da764389d4fc18b1df740892006557 Author: Shailend Chand shailend@google.com Date: Mon, 12 Sep 2022 17:09:01 -0700 Subject: 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: 9b8dd5e5ea48b ("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>

Signed-off-by: Jordan Kimbrough jokimbro@redhat.com

Edited by Jordan Kimbrough

Merge request reports