diff options
| author | Linux Build Service Account <lnxbuild@localhost> | 2017-02-08 17:47:31 -0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-02-08 17:47:30 -0800 |
| commit | 3a6de8f9a925ea2b8ec21880173f54bdadca51ad (patch) | |
| tree | c9624fb61cceaf92c291c96826accfc49a2a4e67 /net | |
| parent | d412bf2a8c2b991341970740ec1dd406a24ff1d1 (diff) | |
| parent | 84386b65978af030850e6cbac3caf526ee5acb9f (diff) | |
Merge "net: support __alloc_skb to always use GFP_DMA"
Diffstat (limited to 'net')
| -rw-r--r-- | net/core/skbuff.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index 46e60923221f..6f7985e6f129 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -208,6 +208,9 @@ struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask, u8 *data; bool pfmemalloc; + if (IS_ENABLED(CONFIG_FORCE_ALLOC_FROM_DMA_ZONE)) + gfp_mask |= GFP_DMA; + cache = (flags & SKB_ALLOC_FCLONE) ? skbuff_fclone_cache : skbuff_head_cache; |
