* [PATCH net-next] bridge: make proxy arp configurable
@ 2014-10-31 3:09 Stephen Hemminger
2014-10-31 16:21 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2014-10-31 3:09 UTC (permalink / raw)
To: Kyeyoon Park, David Miller; +Cc: netdev
This solves kernel build without INET enabled, and allows user
to control building this feature.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
net/bridge/Kconfig | 16 ++++++++++++++++
net/bridge/br_input.c | 4 ++++
net/bridge/br_sysfs_if.c | 4 ++++
3 files changed, 24 insertions(+)
--- a/net/bridge/Kconfig 2014-10-30 18:51:19.242364880 -0700
+++ b/net/bridge/Kconfig 2014-10-30 18:51:21.326379955 -0700
@@ -60,3 +60,19 @@ config BRIDGE_VLAN_FILTERING
Say N to exclude this support and reduce the binary size.
If unsure, say Y.
+
+config BRIDGE_ARP_PROXY
+ bool "ARP proxying"
+ depends on BRIDGE
+ depends on INET
+ default y
+ ---help---
+ If you say Y here, then the Ethernet bridge to keep track of
+ the hardware address to IP address mapping.
+
+ It is most useful when used as a wireless AP.
+
+ Say N to exclude this support and reduce the binary size.
+
+ If unsure, say Y.
+
--- a/net/bridge/br_input.c 2014-10-30 18:51:19.242364880 -0700
+++ b/net/bridge/br_input.c 2014-10-30 19:00:11.050205767 -0700
@@ -59,6 +59,7 @@ static int br_pass_frame_up(struct sk_bu
netif_receive_skb);
}
+#ifdef CONFIG_BRIDGE_PROXY_ARP
static void br_do_proxy_arp(struct sk_buff *skb, struct net_bridge *br,
u16 vid)
{
@@ -112,6 +113,7 @@ static void br_do_proxy_arp(struct sk_bu
neigh_release(n);
}
}
+#endif
/* note: already called with rcu_read_lock */
int br_handle_frame_finish(struct sk_buff *skb)
@@ -154,9 +156,11 @@ int br_handle_frame_finish(struct sk_buf
dst = NULL;
if (is_broadcast_ether_addr(dest)) {
+#ifdef CONFIG_BRIDGE_PROXY_ARP
if (p->flags & BR_PROXYARP &&
skb->protocol == htons(ETH_P_ARP))
br_do_proxy_arp(skb, br, vid);
+#endif
skb2 = skb;
unicast = false;
--- a/net/bridge/br_sysfs_if.c 2014-10-27 20:24:06.376733888 -0700
+++ b/net/bridge/br_sysfs_if.c 2014-10-30 18:58:58.209680384 -0700
@@ -170,7 +170,9 @@ BRPORT_ATTR_FLAG(bpdu_guard, BR_BPDU_GUA
BRPORT_ATTR_FLAG(root_block, BR_ROOT_BLOCK);
BRPORT_ATTR_FLAG(learning, BR_LEARNING);
BRPORT_ATTR_FLAG(unicast_flood, BR_FLOOD);
+#ifdef CONFIG_BRIDGE_PROXY_ARP
BRPORT_ATTR_FLAG(proxyarp, BR_PROXYARP);
+#endif
#ifdef CONFIG_BRIDGE_IGMP_SNOOPING
static ssize_t show_multicast_router(struct net_bridge_port *p, char *buf)
@@ -214,7 +216,9 @@ static const struct brport_attribute *br
&brport_attr_multicast_router,
&brport_attr_multicast_fast_leave,
#endif
+#ifdef CONFIG_BRIDGE_PROXY_ARP
&brport_attr_proxyarp,
+#endif
NULL
};
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bridge: make proxy arp configurable
2014-10-31 3:09 [PATCH net-next] bridge: make proxy arp configurable Stephen Hemminger
@ 2014-10-31 16:21 ` David Miller
2014-11-19 23:11 ` kyeyoonp
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2014-10-31 16:21 UTC (permalink / raw)
To: shemming; +Cc: kyeyoonp, netdev
From: Stephen Hemminger <shemming@brocade.com>
Date: Thu, 30 Oct 2014 20:09:42 -0700
> @@ -60,3 +60,19 @@ config BRIDGE_VLAN_FILTERING
> Say N to exclude this support and reduce the binary size.
>
> If unsure, say Y.
> +
> +config BRIDGE_ARP_PROXY
> + bool "ARP proxying"
> + depends on BRIDGE
> + depends on INET
> + default y
> + ---help---
> + If you say Y here, then the Ethernet bridge to keep track of
> + the hardware address to IP address mapping.
> +
> + It is most useful when used as a wireless AP.
> +
> + Say N to exclude this support and reduce the binary size.
> +
> + If unsure, say Y.
> +
Please do not ever add empty lines at the end of files, GIT warns
about this when I try to apply your patch.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bridge: make proxy arp configurable
2014-10-31 16:21 ` David Miller
@ 2014-11-19 23:11 ` kyeyoonp
2014-11-21 19:49 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: kyeyoonp @ 2014-11-19 23:11 UTC (permalink / raw)
To: David Miller; +Cc: shemming, kyeyoonp, netdev
> From: Stephen Hemminger <shemming@brocade.com>
> Date: Thu, 30 Oct 2014 20:09:42 -0700
>
>> @@ -60,3 +60,19 @@ config BRIDGE_VLAN_FILTERING
>> Say N to exclude this support and reduce the binary size.
>>
>> If unsure, say Y.
>> +
>> +config BRIDGE_ARP_PROXY
>> + bool "ARP proxying"
>> + depends on BRIDGE
>> + depends on INET
>> + default y
>> + ---help---
>> + If you say Y here, then the Ethernet bridge to keep track of
>> + the hardware address to IP address mapping.
>> +
>> + It is most useful when used as a wireless AP.
>> +
>> + Say N to exclude this support and reduce the binary size.
>> +
>> + If unsure, say Y.
>> +
>
> Please do not ever add empty lines at the end of files, GIT warns
> about this when I try to apply your patch.
Hi Dave, I notice that this patch was never applied to "net-next". I
have one more patch contribution to make to the bridge code regarding
Proxy ARP IPv4. I would very much like this patch by Stephen to be
applied as well. I have no problem resubmitting this patch (with the
empty line removed). Do you want me to do that as part of the set?
Thanks!
- Kyeyoon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] bridge: make proxy arp configurable
2014-11-19 23:11 ` kyeyoonp
@ 2014-11-21 19:49 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2014-11-21 19:49 UTC (permalink / raw)
To: kyeyoonp; +Cc: shemming, netdev
From: kyeyoonp@codeaurora.org
Date: Wed, 19 Nov 2014 23:11:52 -0000
>> Please do not ever add empty lines at the end of files, GIT warns
>> about this when I try to apply your patch.
>
> Hi Dave, I notice that this patch was never applied to "net-next".
I didn't apply it because it needs changes.
Please always look into patchwork to see what the state of a patch is,
if you had looked, you would have seen that I marked the patch as
"changed requested", which clearly states what the situation is.
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-21 19:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-31 3:09 [PATCH net-next] bridge: make proxy arp configurable Stephen Hemminger
2014-10-31 16:21 ` David Miller
2014-11-19 23:11 ` kyeyoonp
2014-11-21 19:49 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).