Merge branch 'net-cleanup-datagram-receive-helpers'
authorDavid S. Miller <davem@davemloft.net>
Fri, 28 Feb 2020 20:13:02 +0000 (12:13 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Feb 2020 20:13:02 +0000 (12:13 -0800)
Paolo Abeni says:

====================
net: cleanup datagram receive helpers

Several receive helpers have an optional destructor argument, which uglify
the code a bit and is taxed by retpoline overhead.

This series refactor the code so that we can drop such optional argument,
cleaning the helpers a bit and avoiding an indirect call in fast path.

The first patch refactor a bit the caller, so that the second patch
actually dropping the argument is more straight-forward

v1 -> v2:
 - call scm_stat_del() only when not peeking - Kirill
 - fix build issue with CONFIG_INET_ESPINTCP
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge