aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_gre.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2019-02-08 18:00:17 -0500
committerDavid S. Miller <davem@davemloft.net>2019-02-08 18:00:17 -0500
commita655fe9f194842693258f43b5382855db1c2f654 (patch)
treea6e523c42378f43881c421530941dcbb529461ab /net/ipv4/ip_gre.c
parent7499a288bf1a4a49be9d72beb0a5c7b9aa6ffec9 (diff)
parent27b4ad621e887ce8e5eb508a0103f13d30f6b38a (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
An ipvlan bug fix in 'net' conflicted with the abstraction away of the IPV6 specific support in 'net-next'. Similarly, a bug fix for mlx5 in 'net' conflicted with the flow action conversion in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ip_gre.c')
-rw-r--r--net/ipv4/ip_gre.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index d1cef66820d3..ccee9411dae1 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -1381,12 +1381,17 @@ static int ipgre_fill_info(struct sk_buff *skb, const struct net_device *dev)
1381{ 1381{
1382 struct ip_tunnel *t = netdev_priv(dev); 1382 struct ip_tunnel *t = netdev_priv(dev);
1383 struct ip_tunnel_parm *p = &t->parms; 1383 struct ip_tunnel_parm *p = &t->parms;
1384 __be16 o_flags = p->o_flags;
1385
1386 if ((t->erspan_ver == 1 || t->erspan_ver == 2) &&
1387 !t->collect_md)
1388 o_flags |= TUNNEL_KEY;
1384 1389
1385 if (nla_put_u32(skb, IFLA_GRE_LINK, p->link) || 1390 if (nla_put_u32(skb, IFLA_GRE_LINK, p->link) ||
1386 nla_put_be16(skb, IFLA_GRE_IFLAGS, 1391 nla_put_be16(skb, IFLA_GRE_IFLAGS,
1387 gre_tnl_flags_to_gre_flags(p->i_flags)) || 1392 gre_tnl_flags_to_gre_flags(p->i_flags)) ||
1388 nla_put_be16(skb, IFLA_GRE_OFLAGS, 1393 nla_put_be16(skb, IFLA_GRE_OFLAGS,
1389 gre_tnl_flags_to_gre_flags(p->o_flags)) || 1394 gre_tnl_flags_to_gre_flags(o_flags)) ||
1390 nla_put_be32(skb, IFLA_GRE_IKEY, p->i_key) || 1395 nla_put_be32(skb, IFLA_GRE_IKEY, p->i_key) ||
1391 nla_put_be32(skb, IFLA_GRE_OKEY, p->o_key) || 1396 nla_put_be32(skb, IFLA_GRE_OKEY, p->o_key) ||
1392 nla_put_in_addr(skb, IFLA_GRE_LOCAL, p->iph.saddr) || 1397 nla_put_in_addr(skb, IFLA_GRE_LOCAL, p->iph.saddr) ||