aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorTim Gardner <tim.gardner@canonical.com>2013-08-29 08:38:47 -0400
committerDavid S. Miller <davem@davemloft.net>2013-09-03 21:41:43 -0400
commit3e25c65ed085b361cc91a8f02e028f1158c9f255 (patch)
treeb935c32cae8c5801490092d0e4e7cc199a4be820 /net/core
parent4f49129be6fa9b41d1b406ed911da07ce15a7ea5 (diff)
net: neighbour: Remove CONFIG_ARPD
This config option is superfluous in that it only guards a call to neigh_app_ns(). Enabling CONFIG_ARPD by default has no change in behavior. There will now be call to __neigh_notify() for each ARP resolution, which has no impact unless there is a user space daemon waiting to receive the notification, i.e., the case for which CONFIG_ARPD was designed anyways. Suggested-by: Eric W. Biederman <ebiederm@xmission.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> Cc: James Morris <jmorris@namei.org> Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org> Cc: Patrick McHardy <kaber@trash.net> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Gao feng <gaofeng@cn.fujitsu.com> Cc: Joe Perches <joe@perches.com> Cc: Veaceslav Falico <vfalico@redhat.com> Signed-off-by: Tim Gardner <tim.gardner@canonical.com> Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/neighbour.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 60533db8b72d..6072610a8672 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -2759,13 +2759,11 @@ errout:
2759 rtnl_set_sk_err(net, RTNLGRP_NEIGH, err); 2759 rtnl_set_sk_err(net, RTNLGRP_NEIGH, err);
2760} 2760}
2761 2761
2762#ifdef CONFIG_ARPD
2763void neigh_app_ns(struct neighbour *n) 2762void neigh_app_ns(struct neighbour *n)
2764{ 2763{
2765 __neigh_notify(n, RTM_GETNEIGH, NLM_F_REQUEST); 2764 __neigh_notify(n, RTM_GETNEIGH, NLM_F_REQUEST);
2766} 2765}
2767EXPORT_SYMBOL(neigh_app_ns); 2766EXPORT_SYMBOL(neigh_app_ns);
2768#endif /* CONFIG_ARPD */
2769 2767
2770#ifdef CONFIG_SYSCTL 2768#ifdef CONFIG_SYSCTL
2771static int zero; 2769static int zero;