]> git.baikalelectronics.ru Git - 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)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 Dec 2022 10:45:55 +0000 (11:45 +0100)
commit486ed736f7ad052f98a536cc1737bb00ba2de66d
treea887c01d7684ff1983a6396739f39aa8d895dc19
parent7e939eabb4bf9441fc00245ed43da82711753bc6
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: 70011e755a5f ("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>
net/ipv4/ip_gre.c