linux-stable/net
Richard Gobert 7b355b76e2 gro: decrease size of CB
The GRO control block (NAPI_GRO_CB) is currently at its maximum size.
This commit reduces its size by putting two groups of fields that are
used only at different times into a union.

Specifically, the fields frag0 and frag0_len are the fields that make up
the frag0 optimisation mechanism, which is used during the initial
parsing of the SKB.

The fields last and age are used after the initial parsing, while the
SKB is stored in the GRO list, waiting for other packets to arrive.

There was one location in dev_gro_receive that modified the frag0 fields
after setting last and age. I changed this accordingly without altering
the code behaviour.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230601161407.GA9253@debian
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2023-06-06 11:12:20 +02:00
..
6lowpan
9p
802
8021q
appletalk
atm
ax25
batman-adv
bluetooth
bpf
bpfilter
bridge skbuff: bridge: Add layer 2 miss indication 2023-05-30 23:37:00 -07:00
caif
can
ceph
core gro: decrease size of CB 2023-06-06 11:12:20 +02:00
dcb
dccp
devlink devlink: bring port new reply back 2023-06-01 21:37:32 -07:00
dns_resolver
dsa
ethernet
ethtool
handshake
hsr
ieee802154
ife
ipv4 ip_gre: clean up some inconsistent indenting 2023-06-02 10:44:46 +01:00
ipv6 ipv6: lower "link become ready"'s level message 2023-06-04 15:39:10 +01:00
iucv
kcm kcm: Convert kcm_sendpage() to use MSG_SPLICE_PAGES 2023-06-05 20:51:56 -07:00
key
l2tp
l3mdev
lapb
llc
mac80211
mac802154
mctp
mpls
mptcp Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-06-01 15:38:26 -07:00
ncsi
netfilter ipv4: Drop tos parameter from flowi4_update_output() 2023-06-02 10:52:38 +01:00
netlabel
netlink net/netlink: fix NETLINK_LIST_MEMBERSHIPS length report 2023-05-31 00:02:24 -07:00
netrom
nfc
nsh
openvswitch
packet af_packet: do not use READ_ONCE() in packet_bind() 2023-05-29 22:03:48 -07:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc rxrpc: Truncate UTS_RELEASE for rxrpc version 2023-05-30 10:01:06 +02:00
sched Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-06-01 15:38:26 -07:00
sctp ipv4: Drop tos parameter from flowi4_update_output() 2023-06-02 10:52:38 +01:00
smc net/smc: Don't use RMBs not mapped to new link in SMCRv2 ADD LINK 2023-05-30 11:26:32 +02:00
strparser
sunrpc
switchdev
tipc tipc: delete tipc_mtu_bad from tipc_udp_enable 2023-05-31 00:01:11 -07:00
tls tls: suppress wakeups unless we have a full record 2023-06-02 09:51:12 +01:00
unix
vmw_vsock
wireless
x25
xdp
xfrm
Kconfig
Kconfig.debug
Makefile
compat.c
devres.c
socket.c
sysctl_net.c