]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: geneve: set IFF_POINTOPOINT with IFLA_GENEVE_INNER_PROTO_INHERIT
authorJosef Miegl <josef@miegl.cz>
Sun, 12 Mar 2023 16:45:57 +0000 (17:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Mar 2023 08:12:04 +0000 (08:12 +0000)
The GENEVE tunnel used with IFLA_GENEVE_INNER_PROTO_INHERIT is
point-to-point, so set IFF_POINTOPOINT to reflect that.

Signed-off-by: Josef Miegl <josef@miegl.cz>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/geneve.c

index 89ff7f8e8c7e111a4eef9ed20705e95e279e1b6d..5c3c7169c0a28c8ec029b008c6fe8ba2984c026f 100644 (file)
@@ -1426,7 +1426,7 @@ static int geneve_configure(struct net *net, struct net_device *dev,
                dev->type = ARPHRD_NONE;
                dev->hard_header_len = 0;
                dev->addr_len = 0;
-               dev->flags = IFF_NOARP;
+               dev->flags = IFF_POINTOPOINT | IFF_NOARP;
        }
 
        err = register_netdevice(dev);