Re: [PATCH net-next] net: geneve: set IFF_POINTOPOINT with IFLA_GENEVE_INNER_PROTO_INHERIT

From: Simon Horman
Date: Mon Mar 13 2023 - 14:44:41 EST


On Sun, Mar 12, 2023 at 05:45:57PM +0100, Josef Miegl wrote:
> 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@xxxxxxxx>

Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx>

> ---
> drivers/net/geneve.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c
> index 32684e94eb4f..78f9d588f712 100644
> --- a/drivers/net/geneve.c
> +++ b/drivers/net/geneve.c
> @@ -1421,7 +1421,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);
> --
> 2.37.1
>