aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2021-02-13 14:13:09 +0000
committerDavid S. Miller <[email protected]>2021-02-13 22:32:04 +0000
commit9243adfc311a20371c3f4d8eaf0af4b135e6fac3 (patch)
tree69fbf812f67550da5b4ed3781bc650bbba4c2a0e /net/switchdev/switchdev.c
parentskbuff: allow to use NAPI cache from __napi_alloc_skb() (diff)
downloadkernel-9243adfc311a20371c3f4d8eaf0af4b135e6fac3.tar.gz
kernel-9243adfc311a20371c3f4d8eaf0af4b135e6fac3.zip
skbuff: queue NAPI_MERGED_FREE skbs into NAPI cache instead of freeing
napi_frags_finish() and napi_skb_finish() can only be called inside NAPI Rx context, so we can feed NAPI cache with skbuff_heads that got NAPI_MERGED_FREE verdict instead of immediate freeing. Replace __kfree_skb() with __kfree_skb_defer() in napi_skb_finish() and move napi_skb_free_stolen_head() to skbuff.c, so it can drop skbs to NAPI cache. As many drivers call napi_alloc_skb()/napi_get_frags() on their receive path, this becomes especially useful. 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