diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2015-06-29 12:22:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-07-10 12:49:32 -0400 |
commit | 8c6e5415f83cb5ba0da1321ec743b650c8a16764 (patch) | |
tree | de09a2de246e07dce7e1383e1b952db816bb365f /drivers/net/ethernet | |
parent | 67866a8c30f4707cef895635d5d08cb8105d2f5e (diff) |
amd-xgbe: Add the __GFP_NOWARN flag to Rx buffer allocation
[ Upstream commit 472cfe7127760d68b819cf35a26e5a1b44b30f4e ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/amd/xgbe/xgbe-desc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-desc.c b/drivers/net/ethernet/amd/xgbe/xgbe-desc.c index d81fc6bd4759..5c92fb71b37e 100644 --- a/drivers/net/ethernet/amd/xgbe/xgbe-desc.c +++ b/drivers/net/ethernet/amd/xgbe/xgbe-desc.c | |||
@@ -263,7 +263,7 @@ static int xgbe_alloc_pages(struct xgbe_prv_data *pdata, | |||
263 | int ret; | 263 | int ret; |
264 | 264 | ||
265 | /* Try to obtain pages, decreasing order if necessary */ | 265 | /* Try to obtain pages, decreasing order if necessary */ |
266 | gfp |= __GFP_COLD | __GFP_COMP; | 266 | gfp |= __GFP_COLD | __GFP_COMP | __GFP_NOWARN; |
267 | while (order >= 0) { | 267 | while (order >= 0) { |
268 | pages = alloc_pages(gfp, order); | 268 | pages = alloc_pages(gfp, order); |
269 | if (pages) | 269 | if (pages) |