Message ID | 20220516042456.3014395-3-eric.dumazet@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 2db60eed1a957423cf06ee1060fc45ed3971990d |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net: polish skb defer freeing | expand |
diff --git a/net/core/dev.c b/net/core/dev.c index d708f95356e0b03a61e8211adcf6d272dfa322b5..35b6d79b0c51412534dc3b3374b8d797d212f2d8 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -6632,7 +6632,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; } }