gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper
authorAlexander Lobakin <alobakin@pm.me>
Thu, 18 Mar 2021 18:42:30 +0000 (18:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 02:51:12 +0000 (19:51 -0700)
commit86af2c82c28499b4b509d6b15637a96bd829201b
tree2b18b57281cfc421c6f7ca302314a17a5a55670c
parente75ec151c1088c1aa7a49ff16a2adcaddb24a861
gro: add combined call_gro_receive() + INDIRECT_CALL_INET() helper

call_gro_receive() is used to limit GRO recursion, but it works only
with callback pointers.
There's a combined version of call_gro_receive() + INDIRECT_CALL_2()
in <net/inet_common.h>, but it doesn't check for IPv6 modularity.
Add a similar new helper to cover both of these. It can and will be
used to avoid retpoline overhead when IP header lies behind another
offloaded proto.

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/gro.h