All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] [PATCH] bridge: only provide proxy ARP when CONFIG_INET is enabled
@ 2015-01-13 14:10 ` Arnd Bergmann
  0 siblings, 0 replies; 14+ messages in thread
From: Arnd Bergmann @ 2015-01-13 14:10 UTC (permalink / raw)
  To: netdev; +Cc: Kyeyoon Park, bridge, davem

When IPV4 support is disabled, we cannot call arp_send from
the bridge code, which would result in a kernel link error:

net/built-in.o: In function `br_handle_frame_finish':
:(.text+0x59914): undefined reference to `arp_send'
:(.text+0x59a50): undefined reference to `arp_tbl'

This makes the newly added proxy ARP support in the bridge
code depend on the CONFIG_INET symbol and lets the compiler
optimize the code out to avoid the link error.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 958501163ddd ("bridge: Add support for IEEE 802.11 Proxy ARP")
Cc: Kyeyoon Park <kyeyoonp@codeaurora.org>

diff --git a/net/bridge/br_input.c b/net/bridge/br_input.c
index 1f1de715197c..e2aa7be3a847 100644
--- a/net/bridge/br_input.c
+++ b/net/bridge/br_input.c
@@ -154,7 +154,8 @@ int br_handle_frame_finish(struct sk_buff *skb)
 	dst = NULL;
 
 	if (is_broadcast_ether_addr(dest)) {
-		if (p->flags & BR_PROXYARP &&
+		if (IS_ENABLED(CONFIG_INET) &&
+		    p->flags & BR_PROXYARP &&
 		    skb->protocol == htons(ETH_P_ARP))
 			br_do_proxy_arp(skb, br, vid);
 


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-01-14 20:08 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 14:10 [Bridge] [PATCH] bridge: only provide proxy ARP when CONFIG_INET is enabled Arnd Bergmann
2015-01-13 14:10 ` Arnd Bergmann
2015-01-13 19:25 ` [Bridge] " Cong Wang
2015-01-13 19:25   ` Cong Wang
2015-01-13 20:57   ` [Bridge] " David Miller
2015-01-13 20:57     ` David Miller
2015-01-13 21:14     ` [Bridge] " David Ahern
2015-01-13 21:14       ` David Ahern
2015-01-13 21:33       ` [Bridge] " Arnd Bergmann
2015-01-13 21:33         ` Arnd Bergmann
2015-01-14  2:56         ` [Bridge] " David Ahern
2015-01-14  2:56           ` David Ahern
2015-01-14 20:08 ` [Bridge] " David Miller
2015-01-14 20:08   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.