diff options
| author | Alexander Lobakin <[email protected]> | 2021-02-13 14:12:49 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-02-13 22:32:04 +0000 |
| commit | cfb8ec6595217430166fe833bca611e6bb126d2d (patch) | |
| tree | b24bcfb87ed70ac3dacad5adb0bd6fcaff0209f4 /net/switchdev/switchdev.c | |
| parent | skbuff: allow to optionally use NAPI cache from __alloc_skb() (diff) | |
| download | kernel-cfb8ec6595217430166fe833bca611e6bb126d2d.tar.gz kernel-cfb8ec6595217430166fe833bca611e6bb126d2d.zip | |
skbuff: allow to use NAPI cache from __napi_alloc_skb()
{,__}napi_alloc_skb() is mostly used either for optional non-linear
receive methods (usually controlled via Ethtool private flags and off
by default) and/or for Rx copybreaks.
Use __napi_build_skb() here for obtaining skbuff_heads from NAPI cache
instead of inplace allocations. This includes both kmalloc and page
frag paths.
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
