summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2022-08-17 17:43:21 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-21 15:39:57 +0200
commit3e77bbc87342841db66c18a3afca0441c8c555e4 (patch)
tree04c9808f6d05484bc177105738b02348f64e0768 /net/core
parent58b3ebcaa9773d179492313b4648ed6abaa10dcb (diff)
downloadlinux-stable-3e77bbc87342841db66c18a3afca0441c8c555e4.tar.gz
linux-stable-3e77bbc87342841db66c18a3afca0441c8c555e4.tar.bz2
linux-stable-3e77bbc87342841db66c18a3afca0441c8c555e4.zip
Remove DECnet support from kernel
commit 1202cdd665315c525b5237e96e0bedc76d7e754f upstream. DECnet is an obsolete network protocol that receives more attention from kernel janitors than users. It belongs in computer protocol history museum not in Linux kernel. It has been "Orphaned" in kernel since 2010. The iproute2 support for DECnet was dropped in 5.0 release. The documentation link on Sourceforge says it is abandoned there as well. Leave the UAPI alone to keep userspace programs compiling. This means that there is still an empty neighbour table for AF_DECNET. The table of /proc/sys/net entries was updated to match current directories and reformatted to be alphabetical. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: David Ahern <dsahern@kernel.org> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/dev.c4
-rw-r--r--net/core/neighbour.c3
2 files changed, 1 insertions, 6 deletions
diff --git a/net/core/dev.c b/net/core/dev.c
index ba99adcd7087..a9c8660a2570 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -9010,9 +9010,7 @@ void netdev_run_todo(void)
BUG_ON(!list_empty(&dev->ptype_specific));
WARN_ON(rcu_access_pointer(dev->ip_ptr));
WARN_ON(rcu_access_pointer(dev->ip6_ptr));
-#if IS_ENABLED(CONFIG_DECNET)
- WARN_ON(dev->dn_ptr);
-#endif
+
if (dev->priv_destructor)
dev->priv_destructor(dev);
if (dev->needs_free_netdev)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 2b96e9a7fc59..778be5866d0a 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -1661,9 +1661,6 @@ static struct neigh_table *neigh_find_table(int family)
case AF_INET6:
tbl = neigh_tables[NEIGH_ND_TABLE];
break;
- case AF_DECnet:
- tbl = neigh_tables[NEIGH_DN_TABLE];
- break;
}
return tbl;