Re: [Patch net-next] neigh: remove dynamic neigh table registration support
From: Cong Wang <hidden>
Date: 2014-10-31 20:39:24
From: Cong Wang <hidden>
Date: 2014-10-31 20:39:24
On Fri, Oct 31, 2014 at 1:34 PM, Cong Wang [off-list ref] wrote:
+ switch (family) {
+ case AF_INET:
+ tbl = neigh_tables[NEIGH_ARP_TABLE];
+ break;
+#if IS_ENABLED(CONFIG_IPV6)
+ case AF_INET6:
+ tbl = neigh_tables[NEIGH_ND_TABLE];
+ break;
+#endif
+#if IS_ENABLED(CONFIG_DECNET)
+ case AF_DECnet:
+ tbl = neigh_tables[NEIGH_DN_TABLE];
+ break;
+#endifThese #ifdef's are not necessary, I will update it after getting other feedbacks.