]> 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)
commit42e85cb080704268d838939cb97c2b27c4c60235
treea0ec1b5cbf18e9d0a1b906ba522e84490f3bd3a5
parent717893b85aabcc28de9a3a5ca71034e8e3ee9e2f
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