]> git.baikalelectronics.ru Git - kernel.git/commit
sit: update dev->needed_headroom in ipip6_tunnel_bind_dev()
authorCong Wang <cong.wang@bytedance.com>
Thu, 27 Apr 2023 06:00:06 +0000 (23:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:58 +0000 (11:35 +0200)
commit8919bfc0f101734a3c8d2b9137cc379e9b95534c
treeaa028e5b8929b936a7829694a32142f163c78826
parent0da4e7c5cf3749fb92bfc88b637369e1eeeb1070
sit: update dev->needed_headroom in ipip6_tunnel_bind_dev()

[ Upstream commit c88f8d5cd95fd039cff95d682b8e71100c001df0 ]

When a tunnel device is bound with the underlying device, its
dev->needed_headroom needs to be updated properly. IPv4 tunnels
already do the same in ip_tunnel_bind_dev(). Otherwise we may
not have enough header room for skb, especially after commit
cfaa46b97f12 ("gue: TX support for using remote checksum offload option").

Fixes: 0fa61b32cf14 ("sit: add IPv4 over IPv4 support")
Reported-by: Palash Oswal <oswalpalash@gmail.com>
Link: https://lore.kernel.org/netdev/CAGyP=7fDcSPKu6nttbGwt7RXzE3uyYxLjCSE97J64pRxJP8jPA@mail.gmail.com/
Cc: Kuniyuki Iwashima <kuniyu@amazon.com>
Cc: Eric Dumazet <edumazet@google.com>
Signed-off-by: Cong Wang <cong.wang@bytedance.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ipv6/sit.c