summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorDmitriy Eshenko <dmitriy.eshenko@accel-ppp.org>2024-12-01 11:06:33 +0300
committerGitHub <noreply@github.com>2024-12-01 11:06:33 +0300
commite29679d0e004ff47f4704cf0892066f6084cf939 (patch)
tree9d05e728e5bf07584f0850444e9dca45dbfe64ef /drivers
parent56f4cdce99599cf87afbf724ff3f14f909da37a0 (diff)
parent43f9e5c7ffdc02c06d8c1459027bbf550048e0d4 (diff)
downloadaccel-ppp-e29679d0e004ff47f4704cf0892066f6084cf939.tar.gz
accel-ppp-e29679d0e004ff47f4704cf0892066f6084cf939.zip
Merge pull request #222 from svlobanov/ipoe-6.12
ipoe: fix driver for kernel 6.12 (NETIF_F_NETNS_LOCAL)
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ipoe/ipoe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index fa7dec3f..c6b88620 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -1105,7 +1105,11 @@ 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)
+ dev->netns_local = true;
+#else
dev->features |= NETIF_F_NETNS_LOCAL;
+#endif
dev->features &= ~(NETIF_F_HW_VLAN_FILTER | NETIF_F_LRO);
dev->header_ops = &ipoe_hard_header_ops;
dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;