All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes
@ 2015-08-04 17:06 ` Nikolay Aleksandrov
  0 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: Nikolay Aleksandrov, bridge, kyeyoonp, jouni, davem

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

Hi,
When IFLA_BRPORT_PROXYARP and PROXYARP_WIFI were introduced they weren't
accounted for in the get_slave_size() callback and didn't get a policy
entry, so fix it now. Sending as two separate patches because the first
one goes further back than the second and thus we get 2 different Fixes
tags.

Cheers,
 Nik

Nikolay Aleksandrov (2):
  bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size
    and policy
  bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute
    size and policy

 net/bridge/br_netlink.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.4.3

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

* [Bridge] [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes
@ 2015-08-04 17:06 ` Nikolay Aleksandrov
  0 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: Nikolay Aleksandrov, bridge, kyeyoonp, jouni, davem

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

Hi,
When IFLA_BRPORT_PROXYARP and PROXYARP_WIFI were introduced they weren't
accounted for in the get_slave_size() callback and didn't get a policy
entry, so fix it now. Sending as two separate patches because the first
one goes further back than the second and thus we get 2 different Fixes
tags.

Cheers,
 Nik

Nikolay Aleksandrov (2):
  bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size
    and policy
  bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute
    size and policy

 net/bridge/br_netlink.c | 4 ++++
 1 file changed, 4 insertions(+)

-- 
2.4.3


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

* [PATCH net 1/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy
  2015-08-04 17:06 ` [Bridge] " Nikolay Aleksandrov
@ 2015-08-04 17:06   ` Nikolay Aleksandrov
  -1 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: davem, bridge, stephen, kyeyoonp, jouni, Nikolay Aleksandrov

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

The attribute size wasn't accounted for in the get_slave_size() callback
(br_port_get_slave_size) when it was introduced, so fix it now. Also add
a policy entry for it in br_port_policy.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: 958501163ddd ("bridge: Add support for IEEE 802.11 Proxy ARP")
---
 net/bridge/br_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 3da5525eb8a2..5390536d500c 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -112,6 +112,7 @@ static inline size_t br_port_info_size(void)
 		+ nla_total_size(1)	/* IFLA_BRPORT_FAST_LEAVE */
 		+ nla_total_size(1)	/* IFLA_BRPORT_LEARNING */
 		+ nla_total_size(1)	/* IFLA_BRPORT_UNICAST_FLOOD */
+		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP */
 		+ 0;
 }
 
@@ -506,6 +507,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
 	[IFLA_BRPORT_FAST_LEAVE]= { .type = NLA_U8 },
 	[IFLA_BRPORT_LEARNING]	= { .type = NLA_U8 },
 	[IFLA_BRPORT_UNICAST_FLOOD] = { .type = NLA_U8 },
+	[IFLA_BRPORT_PROXYARP]	= { .type = NLA_U8 },
 };
 
 /* Change the state of the port and notify spanning tree */
-- 
2.4.3

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

* [Bridge] [PATCH net 1/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy
@ 2015-08-04 17:06   ` Nikolay Aleksandrov
  0 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: Nikolay Aleksandrov, bridge, kyeyoonp, jouni, davem

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

The attribute size wasn't accounted for in the get_slave_size() callback
(br_port_get_slave_size) when it was introduced, so fix it now. Also add
a policy entry for it in br_port_policy.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: 958501163ddd ("bridge: Add support for IEEE 802.11 Proxy ARP")
---
 net/bridge/br_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 3da5525eb8a2..5390536d500c 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -112,6 +112,7 @@ static inline size_t br_port_info_size(void)
 		+ nla_total_size(1)	/* IFLA_BRPORT_FAST_LEAVE */
 		+ nla_total_size(1)	/* IFLA_BRPORT_LEARNING */
 		+ nla_total_size(1)	/* IFLA_BRPORT_UNICAST_FLOOD */
+		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP */
 		+ 0;
 }
 
@@ -506,6 +507,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
 	[IFLA_BRPORT_FAST_LEAVE]= { .type = NLA_U8 },
 	[IFLA_BRPORT_LEARNING]	= { .type = NLA_U8 },
 	[IFLA_BRPORT_UNICAST_FLOOD] = { .type = NLA_U8 },
+	[IFLA_BRPORT_PROXYARP]	= { .type = NLA_U8 },
 };
 
 /* Change the state of the port and notify spanning tree */
-- 
2.4.3


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

* [PATCH net 2/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute size and policy
  2015-08-04 17:06 ` [Bridge] " Nikolay Aleksandrov
@ 2015-08-04 17:06   ` Nikolay Aleksandrov
  -1 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: davem, bridge, stephen, kyeyoonp, jouni, Nikolay Aleksandrov

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

The attribute size wasn't accounted for in the get_slave_size() callback
(br_port_get_slave_size) when it was introduced, so fix it now. Also add
a policy entry for it in br_port_policy.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: 842a9ae08a25 ("bridge: Extend Proxy ARP design to allow optional rules for Wi-Fi")
---
 net/bridge/br_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 5390536d500c..4d74a0639c4c 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -113,6 +113,7 @@ static inline size_t br_port_info_size(void)
 		+ nla_total_size(1)	/* IFLA_BRPORT_LEARNING */
 		+ nla_total_size(1)	/* IFLA_BRPORT_UNICAST_FLOOD */
 		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP */
+		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP_WIFI */
 		+ 0;
 }
 
@@ -508,6 +509,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
 	[IFLA_BRPORT_LEARNING]	= { .type = NLA_U8 },
 	[IFLA_BRPORT_UNICAST_FLOOD] = { .type = NLA_U8 },
 	[IFLA_BRPORT_PROXYARP]	= { .type = NLA_U8 },
+	[IFLA_BRPORT_PROXYARP_WIFI] = { .type = NLA_U8 },
 };
 
 /* Change the state of the port and notify spanning tree */
-- 
2.4.3

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

* [Bridge] [PATCH net 2/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute size and policy
@ 2015-08-04 17:06   ` Nikolay Aleksandrov
  0 siblings, 0 replies; 12+ messages in thread
From: Nikolay Aleksandrov @ 2015-08-04 17:06 UTC (permalink / raw)
  To: netdev; +Cc: Nikolay Aleksandrov, bridge, kyeyoonp, jouni, davem

From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>

The attribute size wasn't accounted for in the get_slave_size() callback
(br_port_get_slave_size) when it was introduced, so fix it now. Also add
a policy entry for it in br_port_policy.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fixes: 842a9ae08a25 ("bridge: Extend Proxy ARP design to allow optional rules for Wi-Fi")
---
 net/bridge/br_netlink.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/bridge/br_netlink.c b/net/bridge/br_netlink.c
index 5390536d500c..4d74a0639c4c 100644
--- a/net/bridge/br_netlink.c
+++ b/net/bridge/br_netlink.c
@@ -113,6 +113,7 @@ static inline size_t br_port_info_size(void)
 		+ nla_total_size(1)	/* IFLA_BRPORT_LEARNING */
 		+ nla_total_size(1)	/* IFLA_BRPORT_UNICAST_FLOOD */
 		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP */
+		+ nla_total_size(1)	/* IFLA_BRPORT_PROXYARP_WIFI */
 		+ 0;
 }
 
@@ -508,6 +509,7 @@ static const struct nla_policy br_port_policy[IFLA_BRPORT_MAX + 1] = {
 	[IFLA_BRPORT_LEARNING]	= { .type = NLA_U8 },
 	[IFLA_BRPORT_UNICAST_FLOOD] = { .type = NLA_U8 },
 	[IFLA_BRPORT_PROXYARP]	= { .type = NLA_U8 },
+	[IFLA_BRPORT_PROXYARP_WIFI] = { .type = NLA_U8 },
 };
 
 /* Change the state of the port and notify spanning tree */
-- 
2.4.3


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

* Re: [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes
  2015-08-04 17:06 ` [Bridge] " Nikolay Aleksandrov
@ 2015-08-04 23:54   ` Stephen Hemminger
  -1 siblings, 0 replies; 12+ messages in thread
From: Stephen Hemminger @ 2015-08-04 23:54 UTC (permalink / raw)
  To: Nikolay Aleksandrov
  Cc: Nikolay Aleksandrov, netdev, bridge, kyeyoonp, jouni, davem

On Tue,  4 Aug 2015 19:06:31 +0200
Nikolay Aleksandrov <razor@blackwall.org> wrote:

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> Hi,
> When IFLA_BRPORT_PROXYARP and PROXYARP_WIFI were introduced they weren't
> accounted for in the get_slave_size() callback and didn't get a policy
> entry, so fix it now. Sending as two separate patches because the first
> one goes further back than the second and thus we get 2 different Fixes
> tags.
> 
> Cheers,
>  Nik
> 
> Nikolay Aleksandrov (2):
>   bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size
>     and policy
>   bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute
>     size and policy
> 
>  net/bridge/br_netlink.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

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

* Re: [Bridge] [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes
@ 2015-08-04 23:54   ` Stephen Hemminger
  0 siblings, 0 replies; 12+ messages in thread
From: Stephen Hemminger @ 2015-08-04 23:54 UTC (permalink / raw)
  To: Nikolay Aleksandrov
  Cc: Nikolay Aleksandrov, netdev, bridge, kyeyoonp, jouni, davem

On Tue,  4 Aug 2015 19:06:31 +0200
Nikolay Aleksandrov <razor@blackwall.org> wrote:

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> Hi,
> When IFLA_BRPORT_PROXYARP and PROXYARP_WIFI were introduced they weren't
> accounted for in the get_slave_size() callback and didn't get a policy
> entry, so fix it now. Sending as two separate patches because the first
> one goes further back than the second and thus we get 2 different Fixes
> tags.
> 
> Cheers,
>  Nik
> 
> Nikolay Aleksandrov (2):
>   bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size
>     and policy
>   bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute
>     size and policy
> 
>  net/bridge/br_netlink.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 

Acked-by: Stephen Hemminger <stephen@networkplumber.org>

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

* Re: [PATCH net 1/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy
  2015-08-04 17:06   ` [Bridge] " Nikolay Aleksandrov
@ 2015-08-07  6:55     ` David Miller
  -1 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2015-08-07  6:55 UTC (permalink / raw)
  To: razor; +Cc: netdev, bridge, stephen, kyeyoonp, jouni, nikolay

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: Tue,  4 Aug 2015 19:06:32 +0200

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> The attribute size wasn't accounted for in the get_slave_size() callback
> (br_port_get_slave_size) when it was introduced, so fix it now. Also add
> a policy entry for it in br_port_policy.
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: 958501163ddd ("bridge: Add support for IEEE 802.11 Proxy ARP")

Applied.

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

* Re: [Bridge] [PATCH net 1/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy
@ 2015-08-07  6:55     ` David Miller
  0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2015-08-07  6:55 UTC (permalink / raw)
  To: razor; +Cc: nikolay, netdev, bridge, kyeyoonp, jouni

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: Tue,  4 Aug 2015 19:06:32 +0200

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> The attribute size wasn't accounted for in the get_slave_size() callback
> (br_port_get_slave_size) when it was introduced, so fix it now. Also add
> a policy entry for it in br_port_policy.
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: 958501163ddd ("bridge: Add support for IEEE 802.11 Proxy ARP")

Applied.

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

* Re: [PATCH net 2/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute size and policy
  2015-08-04 17:06   ` [Bridge] " Nikolay Aleksandrov
@ 2015-08-07  6:55     ` David Miller
  -1 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2015-08-07  6:55 UTC (permalink / raw)
  To: razor; +Cc: netdev, bridge, stephen, kyeyoonp, jouni, nikolay

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: Tue,  4 Aug 2015 19:06:33 +0200

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> The attribute size wasn't accounted for in the get_slave_size() callback
> (br_port_get_slave_size) when it was introduced, so fix it now. Also add
> a policy entry for it in br_port_policy.
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: 842a9ae08a25 ("bridge: Extend Proxy ARP design to allow optional rules for Wi-Fi")

Applied.

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

* Re: [Bridge] [PATCH net 2/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI attribute size and policy
@ 2015-08-07  6:55     ` David Miller
  0 siblings, 0 replies; 12+ messages in thread
From: David Miller @ 2015-08-07  6:55 UTC (permalink / raw)
  To: razor; +Cc: nikolay, netdev, bridge, kyeyoonp, jouni

From: Nikolay Aleksandrov <razor@blackwall.org>
Date: Tue,  4 Aug 2015 19:06:33 +0200

> From: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> 
> The attribute size wasn't accounted for in the get_slave_size() callback
> (br_port_get_slave_size) when it was introduced, so fix it now. Also add
> a policy entry for it in br_port_policy.
> 
> Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
> Fixes: 842a9ae08a25 ("bridge: Extend Proxy ARP design to allow optional rules for Wi-Fi")

Applied.

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

end of thread, other threads:[~2015-08-07  6:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-04 17:06 [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes Nikolay Aleksandrov
2015-08-04 17:06 ` [Bridge] " Nikolay Aleksandrov
2015-08-04 17:06 ` [PATCH net 1/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP attribute size and policy Nikolay Aleksandrov
2015-08-04 17:06   ` [Bridge] " Nikolay Aleksandrov
2015-08-07  6:55   ` David Miller
2015-08-07  6:55     ` [Bridge] " David Miller
2015-08-04 17:06 ` [PATCH net 2/2] bridge: netlink: account for the IFLA_BRPORT_PROXYARP_WIFI " Nikolay Aleksandrov
2015-08-04 17:06   ` [Bridge] " Nikolay Aleksandrov
2015-08-07  6:55   ` David Miller
2015-08-07  6:55     ` [Bridge] " David Miller
2015-08-04 23:54 ` [PATCH net 0/2] bridge: netlink: add missing policy entries and sizes Stephen Hemminger
2015-08-04 23:54   ` [Bridge] " Stephen Hemminger

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.