gro: move the tc_ext comparison to a helper
authorJakub Kicinski <kuba@kernel.org>
Fri, 16 Jun 2023 20:49:39 +0000 (13:49 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jun 2023 17:08:35 +0000 (18:08 +0100)
commit2dc6af8be002d16715485372ce1e02b65faf9283
tree8c7d22df25adbd164d96aa3c456ecaa76a1e4eb1
parent988e8d90b3dc482637532e61bc2d58bfc4af5167
gro: move the tc_ext comparison to a helper

The double ifdefs (one for the variable declaration and
one around the code) are quite aesthetically displeasing.
Factor this code out into a helper for easier wrapping.

This will become even more ugly when another skb ext
comparison is added in the future.

The resulting machine code looks the same, the compiler
seems to try to use %rax more and some blocks more around
but I haven't spotted minor differences.

Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/gro.c