net: make napi_threaded_poll() aware of sd->defer_list
authorEric Dumazet <edumazet@google.com>
Fri, 21 Apr 2023 09:43:56 +0000 (09:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Apr 2023 12:35:07 +0000 (13:35 +0100)
commita1aaee7f8f79d1b0595e24f8c3caed24630d6cb6
treeb13d4579a77711e6bbb662d134bb37d9a35a2103
parente6f50edfef046cf8ad541b4d5972bf38fdcdec39
net: make napi_threaded_poll() aware of sd->defer_list

If we call skb_defer_free_flush() from napi_threaded_poll(),
we can avoid to raise IPI from skb_attempt_defer_free()
when the list becomes too big.

This allows napi_threaded_poll() to rely less on softirqs,
and lowers latency caused by a too big list.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c