]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ip_gre: do not report erspan version on GRE interface
authorHangbin Liu <liuhangbin@gmail.com>
Sat, 3 Dec 2022 03:28:58 +0000 (11:28 +0800)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 13:02:56 +0000 (14:02 +0100)
commit4f00b2c87d1fa4fe15395d119d743fc1db5e63d3
treee04d2883c38e5fb0b51f4e7b495a18222f930a92
parent4e71aec2ad27ef6323264381b65493f84a646df0
ip_gre: do not report erspan version on GRE interface

[ Upstream commit ee496694b9eea651ae1aa4c4667d886cdf74aa3b ]

Although the type I ERSPAN is based on the barebones IP + GRE
encapsulation and no extra ERSPAN header. Report erspan version on GRE
interface looks unreasonable. Fix this by separating the erspan and gre
fill info.

IPv6 GRE does not have this info as IPv6 only supports erspan version
1 and 2.

Reported-by: Jianlin Shi <jishi@redhat.com>
Fixes: f989d546a2d5 ("erspan: Add type I version 0 support.")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Acked-by: William Tu <u9012063@gmail.com>
Link: https://lore.kernel.org/r/20221203032858.3130339-1-liuhangbin@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 99eec0a766f9433b83ba064b467d5e9d95233bd6)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
net/ipv4/ip_gre.c