acrn-kernel/net/8021q
Richard Gobert 35ffb66547 net: gro: skb_gro_header helper function
Introduce a simple helper function to replace a common pattern.
When accessing the GRO header, we fetch the pointer from frag0,
then test its validity and fetch it from the skb when necessary.

This leads to the pattern
skb_gro_header_fast -> skb_gro_header_hard -> skb_gro_header_slow
recurring many times throughout GRO code.

This patch replaces these patterns with a single inlined function
call, improving code readability.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20220823071034.GA56142@debian
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2022-08-25 10:33:21 +02:00
..
Kconfig
Makefile
vlan.c
vlan.h
vlan_core.c net: gro: skb_gro_header helper function 2022-08-25 10:33:21 +02:00
vlan_dev.c vlan: move from strlcpy with unused retval to strscpy 2022-08-22 17:55:48 -07:00
vlan_gvrp.c
vlan_mvrp.c
vlan_netlink.c vlan: fix memory leak in vlan_newlink() 2022-07-09 12:26:59 +01:00
vlanproc.c
vlanproc.h