From: William Tu <hidden> Date: 2018-03-09 15:35:11
The series fixes a couple of erspan issues.
The first patch adds the erspan v2 proto type to the ip6 tunnel lookup.
The second patch improves the error handling when users screws the
version number in metadata. The final patch makes sure the skb has
enough headroom for pushing erspan header when xmit.
William Tu (3):
ip6gre: add erspan v2 to tunnel lookup
ip6erspan: improve error handling for erspan version number.
ip6erspan: make sure enough headroom at xmit.
net/ipv6/ip6_gre.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
2.7.4
From: William Tu <hidden> Date: 2018-03-09 15:35:13
When users fill in incorrect erspan version number through
the struct erspan_metadata uapi, current code skips pushing
the erspan header but continue pushing the gre header, which
is incorrect. The patch fixes it by returning error.
Signed-off-by: William Tu <redacted>
---
net/ipv6/ip6_gre.c | 2 ++
1 file changed, 2 insertions(+)
From: William Tu <hidden> Date: 2018-03-09 15:35:13
The patch adds the erspan v2 proto in ip6gre_tunnel_lookup
so the erspan v2 tunnel can be found correctly.
Signed-off-by: William Tu <redacted>
---
net/ipv6/ip6_gre.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From: William Tu <hidden> Date: 2018-03-09 15:35:18
The patch adds skb_cow_header() to ensure enough headroom
at ip6erspan_tunnel_xmit before pushing the erspan header
to the skb.
Signed-off-by: William Tu <redacted>
---
net/ipv6/ip6_gre.c | 3 +++
1 file changed, 3 insertions(+)
From: David Miller <davem@davemloft.net> Date: 2018-03-09 18:04:12
From: William Tu <redacted>
Date: Fri, 9 Mar 2018 07:34:39 -0800
The series fixes a couple of erspan issues.
The first patch adds the erspan v2 proto type to the ip6 tunnel lookup.
The second patch improves the error handling when users screws the
version number in metadata. The final patch makes sure the skb has
enough headroom for pushing erspan header when xmit.