]> git.baikalelectronics.ru Git - kernel.git/commit
net: use napi_consume_skb() in skb_defer_free_flush()
authorEric Dumazet <edumazet@google.com>
Mon, 16 May 2022 04:24:54 +0000 (21:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2022 10:33:59 +0000 (11:33 +0100)
commit2b6bb0d202933ee59a83fbc59827130188eb4a13
treee3e28604e20b7228c98df8039df280e9da45109a
parent4c3e8c487c434b0c38247cb81a8deeb4b843e58c
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>
net/core/dev.c