Skip to content

ip_gre: do not report erspan version on GRE interface

Hangbin Liu requested to merge liuhangbin/centos-stream-9:gre_bz2150168 into main

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2150168 Upstream Status: net.git commit ee496694b9ee

commit ee496694b9eea651ae1aa4c4667d886cdf74aa3b Author: Hangbin Liu liuhangbin@gmail.com Date: Sat Dec 3 11:28:58 2022 +0800

ip_gre: do not report erspan version on GRE interface

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: Hangbin Liu haliu@redhat.com

Edited by Hangbin Liu

Merge request reports