diff options
author | 2024-11-05 17:43:57 +0000 | |
---|---|---|
committer | 2024-11-06 17:29:14 -0800 | |
commit | 1e4033b53db48cc77c436feac9c6d7d63db87b87 (patch) | |
tree | 01d711ab7fb8dcfa56a3e9c361ca55ff81feec1a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge branch 'ipv6-fix-hangup-on-device-removal' (diff) | |
download | wireguard-linux-1e4033b53db48cc77c436feac9c6d7d63db87b87.tar.xz wireguard-linux-1e4033b53db48cc77c436feac9c6d7d63db87b87.zip |
net: skb_reset_mac_len() must check if mac_header was set
Recent discussions show that skb_reset_mac_len() should be more careful.
We expect the MAC header being set.
If not, clear skb->mac_len and fire a warning for CONFIG_DEBUG_NET=y builds.
If after investigations we find that not having a MAC header was okay,
we can remove the warning.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/netdev/CANn89iJZGH+yEfJxfPWa3Hm7jxb-aeY2Up4HufmLMnVuQXt38A@mail.gmail.com/T/
Cc: En-Wei Wu <en-wei.wu@canonical.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Reviewed-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Link: https://patch.msgid.link/20241105174403.850330-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions