]> git.baikalelectronics.ru Git - kernel.git/commit
vlan/8021q: avoid retpoline overhead on GRO
authorAlexander Lobakin <alobakin@pm.me>
Thu, 18 Mar 2021 18:42:34 +0000 (18:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2021 02:51:12 +0000 (19:51 -0700)
commit7853af7fe45b9aab80c8084aded67bbb64abf04a
treea0ec1b5cbf18e9d0a1b906ba522e84490f3bd3a5
parent71e6837593b34001b473575c03f675f5a92d3e61
vlan/8021q: avoid retpoline overhead on GRO

The two most popular headers going after VLAN are IPv4 and IPv6.
Retpoline overhead for them is addressed only in dev_gro_receive(),
when they lie right after the outermost Ethernet header.
Use the indirect call wrappers in VLAN GRO receive code to reduce
the penalty on receiving tagged frames (when hardware stripping is
off or not available).

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlan_core.c