diff options
| author | Eric Dumazet <edumazet@google.com> | 2026-06-09 12:13:37 +0300 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-06-11 16:38:49 +0300 |
| commit | 6e12a8894e027ed33c562e2bf993ab61a7e2b75d (patch) | |
| tree | 6ebc4e45e9a77a02d74ee3a1adc2810b86c03ca0 /tools/lib/python/kdoc | |
| parent | 0ce346bf2f6823497e572d78b8d8f05abb0f132b (diff) | |
| download | linux-6e12a8894e027ed33c562e2bf993ab61a7e2b75d.tar.xz | |
ip6_tunnel: do not use dst6_mtu() in ip4ip6_err() and ip6erspan_tunnel_xmit()
This is a minor performance / conceptual fix.
1) ip6erspan_tunnel_xmit()
ERSPAN tunnel can mirror both IPv4 and IPv6 traffic, skb
(the packet being mirrored) can be an IPv4 packet,
and thus dst can be an IPv4 destination entry
Use dst_mtu() which contains generic logic for both families.
2) ip4ip6_err()
skb2 has been prepared as an IPv4 packet, and its destination
is an IPv4 route.
dst6_mtu() is optimized for IPv6 destinations and uses INDIRECT_CALL_1
to call ip6_mtu() directly if the ops match.
We should use dst4_mtu() instead.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://patch.msgid.link/20260609091337.2672441-1-edumazet@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
