[PATCH 0/4 net-next] Allow to inherit from VLAN encapsulated IP

Matthias May posted 4 patches 3 years, 9 months ago
net/ipv4/ip_tunnel.c  | 17 +++++++++--------
net/ipv6/ip6_gre.c    | 43 +++++++++++++++++++++++++++++++++++--------
net/ipv6/ip6_tunnel.c | 11 +++++++----
3 files changed, 51 insertions(+), 20 deletions(-)
[PATCH 0/4 net-next] Allow to inherit from VLAN encapsulated IP
Posted by Matthias May 3 years, 9 months ago
Currently IPv4 and IPv6 tunnels are able to inherit IP header fields
like TOS, TTL or the DF from their payload, when the payload is IPv4
or IPv6. Some types of tunnels, like GRETAP or VXLAN are able to carry
VLANs. The visible skb->protocol shows in this case as protocol
ETH_P_8021Q or ETH_P_8021AD. However all the relevant structures for IP
payload are correct and just need to be used.

Patch 1 allows tunnels with IPv4 as outer header to inherit from VLAN
encapsulated payload.
Patch 2 fixes a bug, where the DSCP for tunnels with IPv6 as outer header
is never set.
Patch 3 allows tunnels with IPv6 as outer header to inherit the TTL from
VLAN encapsulated payload.
Patch 4 allows IP6GRETAP tunnels with IPv6 as outer header to inherit the
TOS from VLAN encapsulated payload.

Matthias May (4):
  ip_tunnel: allow to inherit from VLAN encapsulated IP
  ip6_gre: set DSCP for non-IP
  ip6_gre: use actual protocol to select xmit
  ip6_tunnel: allow to inherit from VLAN encapsulated IP

 net/ipv4/ip_tunnel.c  | 17 +++++++++--------
 net/ipv6/ip6_gre.c    | 43 +++++++++++++++++++++++++++++++++++--------
 net/ipv6/ip6_tunnel.c | 11 +++++++----
 3 files changed, 51 insertions(+), 20 deletions(-)

-- 
2.35.1
Re: [PATCH 0/4 net-next] Allow to inherit from VLAN encapsulated IP
Posted by patchwork-bot+netdevbpf@kernel.org 3 years, 9 months ago
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Mon, 11 Jul 2022 11:17:18 +0200 you wrote:
> Currently IPv4 and IPv6 tunnels are able to inherit IP header fields
> like TOS, TTL or the DF from their payload, when the payload is IPv4
> or IPv6. Some types of tunnels, like GRETAP or VXLAN are able to carry
> VLANs. The visible skb->protocol shows in this case as protocol
> ETH_P_8021Q or ETH_P_8021AD. However all the relevant structures for IP
> payload are correct and just need to be used.
> 
> [...]

Here is the summary with links:
  - [1/4,v3,net-next] ip_tunnel: allow to inherit from VLAN encapsulated IP
    https://git.kernel.org/netdev/net-next/c/7ae29fd1be43
  - [2/4,net-next] ip6_gre: set DSCP for non-IP
    https://git.kernel.org/netdev/net-next/c/41337f52b967
  - [3/4,net-next] ip6_gre: use actual protocol to select xmit
    https://git.kernel.org/netdev/net-next/c/3f8a8447fd0b
  - [4/4,net-next] ip6_tunnel: allow to inherit from VLAN encapsulated IP
    https://git.kernel.org/netdev/net-next/c/b09ab9c92e50

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html