|
@@ -353,7 +353,7 @@ struct sk_buff *__netdev_alloc_skb(struct net_device *dev,
|
|
unsigned int fragsz = SKB_DATA_ALIGN(length + NET_SKB_PAD) +
|
|
unsigned int fragsz = SKB_DATA_ALIGN(length + NET_SKB_PAD) +
|
|
SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
|
|
SKB_DATA_ALIGN(sizeof(struct skb_shared_info));
|
|
|
|
|
|
- if (fragsz <= PAGE_SIZE && !(gfp_mask & __GFP_WAIT)) {
|
|
|
|
|
|
+ if (fragsz <= PAGE_SIZE && !(gfp_mask & (__GFP_WAIT | GFP_DMA))) {
|
|
void *data = netdev_alloc_frag(fragsz);
|
|
void *data = netdev_alloc_frag(fragsz);
|
|
|
|
|
|
if (likely(data)) {
|
|
if (likely(data)) {
|