diff options
author | 2021-03-30 12:28:51 +0200 | |
---|---|---|
committer | 2021-03-30 17:06:49 -0700 | |
commit | e0e3070a9bc9bb3d3e00b37da872ed5b0adbd077 (patch) | |
tree | f1d86dcc9d50dd02fcb55978574d7a2d4608398f /tools/perf/scripts/python/export-to-sqlite.py | |
parent | udp: skip L4 aggregation for UDP tunnel packets (diff) | |
download | wireguard-linux-e0e3070a9bc9bb3d3e00b37da872ed5b0adbd077.tar.xz wireguard-linux-e0e3070a9bc9bb3d3e00b37da872ed5b0adbd077.zip |
udp: properly complete L4 GRO over UDP tunnel packet
After the previous patch, the stack can do L4 UDP aggregation
on top of a UDP tunnel.
In such scenario, udp{4,6}_gro_complete will be called twice. This function
will enter its is_flist branch immediately, even though that is only
correct on the second call, as GSO_FRAGLIST is only relevant for the
inner packet.
Instead, we need to try first UDP tunnel-based aggregation, if the GRO
packet requires that.
This patch changes udp{4,6}_gro_complete to skip the frag list processing
when while encap_mark == 1, identifying processing of the outer tunnel
header.
Additionally, clears the field in udp_gro_complete() so that we can enter
the frag list path on the next round, for the inner header.
v1 -> v2:
- hopefully clarified the commit message
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions