geneve: avoid indirect calls in GRO path, when possible
authorPaolo Abeni <pabeni@redhat.com>
Wed, 13 Apr 2022 08:44:40 +0000 (10:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 09:52:29 +0000 (10:52 +0100)
commitf623f83ae77396a5eda25451335295c0141c8c46
tree16c8ba266cc2ac0c45c45ec2a59ce4bdb4656496
parent4867d750b227fa1affb171cd257dd9dde48d7d32
geneve: avoid indirect calls in GRO path, when possible

In the most common setups, the geneve tunnels use an inner
ethernet encapsulation. In the GRO path, when such condition is
true, we can call directly the relevant GRO helper and avoid
a few indirect calls.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c