summaryrefslogtreecommitdiff
path: root/lib/net_utils.c
diff options
context:
space:
mode:
authorRichard Gobert <richardbgobert@gmail.com>2023-06-01 19:14:09 +0300
committerPaolo Abeni <pabeni@redhat.com>2023-06-06 12:12:20 +0300
commit7b355b76e2b32cc516969c01984efdf49b11fc81 (patch)
treec6bc8bd113c2703611609da8b42e888024d1ae0d /lib/net_utils.c
parentddb8701dcb67aff0155d507c63cb1e201daf3ad6 (diff)
downloadlinux-7b355b76e2b32cc516969c01984efdf49b11fc81.tar.xz
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>
Diffstat (limited to 'lib/net_utils.c')
0 files changed, 0 insertions, 0 deletions