diff options
author | Jesper Dangaard Brouer <[email protected]> | 2019-04-12 17:07:37 +0200 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2019-04-17 19:09:24 -0700 |
commit | ba0509b6881efd0c8b26c36490cba87d8fb324c0 (patch) | |
tree | 823c2b8b7faca2fc53cbda830d77572be132b1c6 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | 77361825bb01ecadf3ac8622e2e4dbc28806e858 (diff) |
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 <[email protected]>
Acked-by: Song Liu <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions