diff options
author | Eric Dumazet <edumazet@google.com> | 2022-05-15 21:24:54 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-05-16 11:33:59 +0100 |
commit | 2db60eed1a957423cf06ee1060fc45ed3971990d (patch) | |
tree | e3e28604e20b7228c98df8039df280e9da45109a /net/core | |
parent | 97e719a82b43c6c2bb5eebdb3c5d479a332ac2ac (diff) |
net: use napi_consume_skb() in skb_defer_free_flush()
skb_defer_free_flush() runs from softirq context,
we have the opportunity to refill the napi_alloc_cache,
and/or use kmem_cache_free_bulk() when this cache is full.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index a5e663e1a75a..d0b34bc50706 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6633,7 +6633,7 @@ static void skb_defer_free_flush(struct softnet_data *sd) while (skb != NULL) { next = skb->next; - __kfree_skb(skb); + napi_consume_skb(skb, 1); skb = next; } } |