diff options
| author | Alexander Lobakin <[email protected]> | 2021-02-13 14:12:38 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-02-13 22:32:04 +0000 |
| commit | d13612b58e6453fc664f282514fe2bd7b848230f (patch) | |
| tree | 40e77ecc6855d9d592229d4a572b818d4e5e0491 /net/switchdev/switchdev.c | |
| parent | skbuff: introduce {,__}napi_build_skb() which reuses NAPI cache heads (diff) | |
| download | kernel-d13612b58e6453fc664f282514fe2bd7b848230f.tar.gz kernel-d13612b58e6453fc664f282514fe2bd7b848230f.zip | |
skbuff: allow to optionally use NAPI cache from __alloc_skb()
Reuse the old and forgotten SKB_ALLOC_NAPI to add an option to get
an skbuff_head from the NAPI cache instead of inplace allocation
inside __alloc_skb().
This implies that the function is called from softirq or BH-off
context, not for allocating a clone or from a distant node.
Cc: Alexander Duyck <[email protected]> # Simplified flags check
Signed-off-by: Alexander Lobakin <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
