summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorAlexander Lobakin <alobakin@pm.me>2020-11-10 02:47:23 +0300
committerJakub Kicinski <kuba@kernel.org>2020-11-10 07:03:55 +0300
commit8be33ecfc1ffd2da20cc29e957e4cb6eb99310cb (patch)
tree11bfd38c3ac7b92136663f5699867b3325141f29 /security
parent52643b7832d8dca9df647a6ce181e3faf86dc99f (diff)
downloadlinux-8be33ecfc1ffd2da20cc29e957e4cb6eb99310cb.tar.xz
net: skb_vlan_untag(): don't reset transport offset if set by GRO layer
Similar to commit fda55eca5a33f ("net: introduce skb_transport_header_was_set()"), avoid resetting transport offsets that were already set by GRO layer. This not only mirrors the behavior of __netif_receive_skb_core(), but also makes sense when it comes to UDP GSO fraglists forwarding: transport offset of such skbs is set only once by GRO receive callback and remains untouched and correct up to the xmitting driver in 1:1 case, but becomes junk after untagging in ingress VLAN case and breaks UDP GSO offload. This does not happen after this change, and all types of forwarding of UDP GSO fraglists work as expected. Since v1 [1]: - keep the code 1:1 with __netif_receive_skb_core() (Jakub). [1] https://lore.kernel.org/netdev/zYurwsZRN7BkqSoikWQLVqHyxz18h4LhHU4NFa2Vw@cp4-web-038.plabs.ch Signed-off-by: Alexander Lobakin <alobakin@pm.me> Link: https://lore.kernel.org/r/7JgIkgEztzt0W6ZtC9V9Cnk5qfkrUFYcpN871syCi8@cp4-web-040.plabs.ch Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions