[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191111.144408.866345901632784244.davem@davemloft.net>
Date: Mon, 11 Nov 2019 14:44:08 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: lucien.xin@...il.com
Cc: netdev@...r.kernel.org, dsahern@...il.com, tgraf@...g.ch,
jbenc@...hat.com
Subject: Re: [PATCH net-next] lwtunnel: ignore any TUNNEL_OPTIONS_PRESENT
flags set by users
From: Xin Long <lucien.xin@...il.com>
Date: Sun, 10 Nov 2019 12:26:21 +0800
> TUNNEL_OPTIONS_PRESENT (TUNNEL_GENEVE_OPT|TUNNEL_VXLAN_OPT|
> TUNNEL_ERSPAN_OPT) flags should be set only according to
> tb[LWTUNNEL_IP_OPTS], which is done in ip_tun_parse_opts().
>
> When setting info key.tun_flags, the TUNNEL_OPTIONS_PRESENT
> bits in tb[LWTUNNEL_IP(6)_FLAGS] passed from users should
> be ignored.
>
> While at it, replace all (TUNNEL_GENEVE_OPT|TUNNEL_VXLAN_OPT|
> TUNNEL_ERSPAN_OPT) with 'TUNNEL_OPTIONS_PRESENT'.
>
> Fixes: 3093fbe7ff4b ("route: Per route IP tunnel metadata via lightweight tunnel")
> Fixes: 32a2b002ce61 ("ipv6: route: per route IP tunnel metadata via lightweight tunnel")
> Signed-off-by: Xin Long <lucien.xin@...il.com>
Applied.
Powered by blists - more mailing lists