From df7250cc903daadf416a1021bceaaa7026e331f3 Mon Sep 17 00:00:00 2001 From: Denys Fedoryshchenko Date: Mon, 30 Jun 2025 18:28:17 +0300 Subject: ipoe: NETIF_F_NETNS_LOCAL got added back, fix NETIF_F_NETNS_LOCAL existed in <=6.11, then converted to dev->netns_local, and then renamed to netns_immutable in 0c493da86374dffff7505e67289ad75b21f5b301. This commit address this properly. Signed-off-by: Denys Fedoryshchenko --- drivers/ipoe/ipoe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'drivers') diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c index 8875eac8..14b6416a 100644 --- a/drivers/ipoe/ipoe.c +++ b/drivers/ipoe/ipoe.c @@ -1109,7 +1109,9 @@ static void ipoe_netdev_setup(struct net_device *dev) dev->iflink = 0; #endif dev->addr_len = ETH_ALEN; -#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,15,0) + dev->netns_immutable = true; +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(6,12,0) dev->netns_local = true; #else dev->features |= NETIF_F_NETNS_LOCAL; -- cgit v1.2.3