]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
neighbour: Remove NEIGH_DN_TABLE.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 14 Oct 2024 23:52:16 +0000 (16:52 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Oct 2024 00:46:30 +0000 (17:46 -0700)
Since commit 1202cdd66531 ("Remove DECnet support from kernel"),
NEIGH_DN_TABLE is no longer used.

MPLS has implicit dependency on it in nla_put_via(), but nla_get_via()
does not support DECnet.

Let's remove NEIGH_DN_TABLE.

Now, neigh_tables[] has only 2 elements and no extra iteration
for DECnet in many places.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20241014235216.10785-1-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/neighbour.h
net/mpls/af_mpls.c

index a44f262a73841517c4eea96f594e8a2d66658a8f..3887ed9e5026d21a0fee19ae19d08c6ea8a009de 100644 (file)
@@ -239,7 +239,6 @@ struct neigh_table {
 enum {
        NEIGH_ARP_TABLE = 0,
        NEIGH_ND_TABLE = 1,
-       NEIGH_DN_TABLE = 2,
        NEIGH_NR_TABLES,
        NEIGH_LINK_TABLE = NEIGH_NR_TABLES /* Pseudo table for neigh_xmit */
 };
index df62638b6498434d5fd8e657f19685f6b08b8074..a0573847bc555ddf3ff0b38c181ff1e368c3010b 100644 (file)
@@ -1664,7 +1664,7 @@ static int nla_put_via(struct sk_buff *skb,
                       u8 table, const void *addr, int alen)
 {
        static const int table_to_family[NEIGH_NR_TABLES + 1] = {
-               AF_INET, AF_INET6, AF_DECnet, AF_PACKET,
+               AF_INET, AF_INET6, AF_PACKET,
        };
        struct nlattr *nla;
        struct rtvia *via;