|
@@ -602,6 +602,8 @@ static unsigned int refill_fl(struct adapter *adapter, struct sge_fl *fl,
|
|
*/
|
|
*/
|
|
BUG_ON(fl->avail + n > fl->size - FL_PER_EQ_UNIT);
|
|
BUG_ON(fl->avail + n > fl->size - FL_PER_EQ_UNIT);
|
|
|
|
|
|
|
|
+ gfp |= __GFP_NOWARN;
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* If we support large pages, prefer large buffers and fail over to
|
|
* If we support large pages, prefer large buffers and fail over to
|
|
* small pages if we can't allocate large pages to satisfy the refill.
|
|
* small pages if we can't allocate large pages to satisfy the refill.
|
|
@@ -612,8 +614,7 @@ static unsigned int refill_fl(struct adapter *adapter, struct sge_fl *fl,
|
|
goto alloc_small_pages;
|
|
goto alloc_small_pages;
|
|
|
|
|
|
while (n) {
|
|
while (n) {
|
|
- page = alloc_pages(gfp | __GFP_COMP | __GFP_NOWARN,
|
|
|
|
- FL_PG_ORDER);
|
|
|
|
|
|
+ page = __dev_alloc_pages(gfp, FL_PG_ORDER);
|
|
if (unlikely(!page)) {
|
|
if (unlikely(!page)) {
|
|
/*
|
|
/*
|
|
* We've failed inour attempt to allocate a "large
|
|
* We've failed inour attempt to allocate a "large
|
|
@@ -657,7 +658,7 @@ static unsigned int refill_fl(struct adapter *adapter, struct sge_fl *fl,
|
|
|
|
|
|
alloc_small_pages:
|
|
alloc_small_pages:
|
|
while (n--) {
|
|
while (n--) {
|
|
- page = __skb_alloc_page(gfp | __GFP_NOWARN, NULL);
|
|
|
|
|
|
+ page = __dev_alloc_page(gfp);
|
|
if (unlikely(!page)) {
|
|
if (unlikely(!page)) {
|
|
fl->alloc_failed++;
|
|
fl->alloc_failed++;
|
|
break;
|
|
break;
|