udp: use indirect call wrapper for data ready()
authorPaolo Abeni <pabeni@redhat.com>
Tue, 18 Jul 2023 14:38:09 +0000 (16:38 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 20 Jul 2023 04:12:59 +0000 (21:12 -0700)
commit0558e1674598ec9029c1d3bceb787c8340272b51
tree7f6d266fae8d81c53295f3504165114cafe8714b
parent5dd2b6faaab2fcae2ac1e8591f3e235709b80fa2
udp: use indirect call wrapper for data ready()

In most cases UDP sockets use the default data ready callback.
Leverage the indirect call wrapper for such callback to avoid an
indirect call in fastpath.

The above gives small but measurable performance gain under UDP flood.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/d47d53e6f8ee7a11228ca2f025d6243cc04b77f3.1689691004.git.pabeni@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/udp.c