Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

amd-xgbe: Add the __GFP_NOWARN flag to Rx buffer allocation

When allocating Rx related buffers, alloc_pages is called using an order
number that is decreased until successful. A system under stress can
experience failures during this allocation process resulting in a warning
being issued. This message can be of concern to end users even though the
failure is not fatal. Since the failure is not fatal and can occur
multiple times, the driver should include the __GFP_NOWARN flag to
suppress the warning message from being issued.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Tom Lendacky and committed by
David S. Miller
472cfe71 7c80c3af

+1 -1
+1 -1
drivers/net/ethernet/amd/xgbe/xgbe-desc.c
··· 268 268 int ret; 269 269 270 270 /* Try to obtain pages, decreasing order if necessary */ 271 - gfp |= __GFP_COLD | __GFP_COMP; 271 + gfp |= __GFP_COLD | __GFP_COMP | __GFP_NOWARN; 272 272 while (order >= 0) { 273 273 pages = alloc_pages(gfp, order); 274 274 if (pages)