diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2019-04-12 17:07:37 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-04-18 04:09:24 +0200 |
commit | ba0509b6881efd0c8b26c36490cba87d8fb324c0 (patch) | |
tree | 823c2b8b7faca2fc53cbda830d77572be132b1c6 /drivers/spi/spi-stm32.c | |
parent | bpf: cpumap use ptr_ring_consume_batched (diff) | |
download | linux-ba0509b6881efd0c8b26c36490cba87d8fb324c0.tar.xz linux-ba0509b6881efd0c8b26c36490cba87d8fb324c0.zip |
net: core: introduce build_skb_around
The function build_skb() also have the responsibility to allocate and clear
the SKB structure. Introduce a new function build_skb_around(), that moves
the responsibility of allocation and clearing to the caller. This allows
caller to use kmem_cache (slab/slub) bulk allocation API.
Next patch use this function combined with kmem_cache_alloc_bulk.
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'drivers/spi/spi-stm32.c')
0 files changed, 0 insertions, 0 deletions