neighbour: Remove NEIGH_DN_TABLE.
Subsystems (2)
PATCH 1/1 neighbour: Remove NEIGH_DN_TABLE.
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.
--- include/net/neighbour.h | 1 - net/mpls/af_mpls.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/net/neighbour.h +0 -1
@@ -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 */ };
net/mpls/af_mpls.c +1 -1
@@ -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;
Signature · 1 line
2.39.5 (Apple Git-154)
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 14 Oct 2024 16:52:16 -0700 you wrote:
Since commit
1202cdd66531("Remove DECnet support from kernel"),NEIGH_DN_TABLEis no longer used.MPLS has implicit dependency on it in
nla_put_via(), butnla_get_via()does not support DECnet.Let's remove
NEIGH_DN_TABLE.[...]
Here is the summary with links:
- [v1,net-next] neighbour: Remove NEIGH_DN_TABLE.
https://git.kernel.org/netdev/net-next/c/95b3120a485f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html