Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3447295imm; Tue, 17 Jul 2018 05:08:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcWWMIKkby5nOY5jPc3pE45+N2elkmFz4UTJ/BJ61BetIzvzNxPIYCbX4xiJ6eLUqKM2CgP X-Received: by 2002:a63:db05:: with SMTP id e5-v6mr1356118pgg.152.1531829299042; Tue, 17 Jul 2018 05:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531829299; cv=none; d=google.com; s=arc-20160816; b=nVKTyt1QJoCCo5rE2CzMwwM8IFs8imYPEugL1lkWmVbIByPcRvNaWviUOT0IaycW3S Kv7fgFgcJUXvJvowpuAnkreFOgnvYjhmeewtoeznOlS7Bl7hE6ZtWHFPYMk6J5Sj8bHR wb4zkfoIFQt+gClWB/iO/9dYQQCxEV+YX3UaEdqAnIbukQ/13tYD5uwlWbAHtT5EYre7 3u7F9Pj3PVJTo4HnumBwwCUYY55Rw8tZ5X2TlVuco5GQRKRs7Y4WyNe1kee+FTh5Szcv +WuFWRMjsE7g+6MaXTXQxG4l2H/fQR3oBA3U5ie6+QXH+YpVWT4h62eJHvQJQZzUqAD5 INCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=6YebdD8ufTOBK0brpmZuvW6baIrKMhnst/gnC6nsUYM=; b=B3YVgjdEgSoOxDehtoohktgi2Y1nLoRVfNsDUXyz3r9+OQiufOfe/bjRCPzlY5RWSR ZEb7hbBmO9owaPrPPiAJlp0ayBK5IDqcdb7yhj0OTAy1tevjj7wkU2W4dqilIb+pXva7 KVJ840kDidfY5H554v5FustV4FYBbrfAL9+RmU/lMiGUfenA7XuEZmKcnWZSAgbrfMWR lX4VNMD6aLCUneVH1FQ8jnwO2E7ACjsb4eQfPpCV/hHFh/13zgQMsVkmY+9LO/OTalXi q+5hv37qNIm7+fPcUAUk9pROg6SmLS1BZqmz+jhV97p7w40KTn7MnzEaQSX4tjJoPdlm /6hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NXw0KqdT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n88-v6si764087pfi.360.2018.07.17.05.08.03; Tue, 17 Jul 2018 05:08:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NXw0KqdT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731786AbeGQMjd (ORCPT + 99 others); Tue, 17 Jul 2018 08:39:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:60678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731540AbeGQMjM (ORCPT ); Tue, 17 Jul 2018 08:39:12 -0400 Received: from kenny.it.cumulusnetworks.com. (fw.cumulusnetworks.com [216.129.126.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B41B82147A; Tue, 17 Jul 2018 12:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1531829212; bh=jYoNkLJ7QR4t/7uIahoReNyfAidBVd/c3Ctl8P9Uzww=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NXw0KqdTchkDhkUDuzmERZ0dKcaYp6GSAFBXmYltHKQ/WHwRQZhhy7JBSdyNFBrU/ PmUw/ZzVktJuIxbAlxijatWjQgIrHt52CrYSj63Cb8FKoT8V98ksY90RH6cnlT4FGY 2+l0T/sbpbC9aro+YNJG5nM+WGTiLLUouPEpA09A= From: dsahern@kernel.org To: netdev@vger.kernel.org Cc: nikita.leshchenko@oracle.com, roopa@cumulusnetworks.com, stephen@networkplumber.org, idosch@mellanox.com, jiri@mellanox.com, saeedm@mellanox.com, alex.aring@gmail.com, linux-wpan@vger.kernel.org, netfilter-devel@vger.kernel.org, linux-kernel@vger.kernel.org, David Ahern Subject: [PATCH RFC/RFT net-next 17/17] net/neighbor: Remove neigh_tables and NEIGH enum Date: Tue, 17 Jul 2018 05:06:51 -0700 Message-Id: <20180717120651.15748-18-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180717120651.15748-1-dsahern@kernel.org> References: <20180717120651.15748-1-dsahern@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: David Ahern No longer used. Signed-off-by: David Ahern --- include/net/neighbour.h | 8 -------- net/core/neighbour.c | 2 -- 2 files changed, 10 deletions(-) diff --git a/include/net/neighbour.h b/include/net/neighbour.h index e968db1b7742..72002a24e72e 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -222,14 +222,6 @@ struct neigh_table { struct pneigh_entry **phash_buckets; }; -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 */ -}; - struct neigh_table *neigh_find_table(struct net *net, u8 family); static inline int neigh_parms_family(struct neigh_parms *p) diff --git a/net/core/neighbour.c b/net/core/neighbour.c index 1bb7fa14cb62..7c3d4cb811d3 100644 --- a/net/core/neighbour.c +++ b/net/core/neighbour.c @@ -1559,8 +1559,6 @@ static void neigh_parms_destroy(struct neigh_parms *parms) static struct lock_class_key neigh_table_proxy_queue_class; -static struct neigh_table *neigh_tables[NEIGH_NR_TABLES] __read_mostly; - void neigh_table_init(struct net *net, struct neigh_table *tbl) { unsigned long now = jiffies; -- 2.11.0