Skip to contentSkip to conversation

bridge: new attribute and flags to represent vlan info lists and ranges

PATCH Superseded [email protected] 2 participants 7 messages Dec 31, 2014 – Jan 1, 2015

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/2 bridge: new attribute and flags to represent vlan info lists and ranges

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
 include/uapi/linux/if_bridge.h |    4 ++++
 net/bridge/br_netlink.c        |    1 +
 2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +4 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
  *     [IFLA_BRIDGE_FLAGS]
  *     [IFLA_BRIDGE_MODE]
  *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
  * }
  */
 enum {
 	IFLA_BRIDGE_FLAGS,
 	IFLA_BRIDGE_MODE,
 	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
 	__IFLA_BRIDGE_MAX,
 };
 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)
@@ -125,6 +127,8 @@ enum {
 #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
 #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
 #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */
 
 struct bridge_vlan_info {
 	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
 	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
 	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
 				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
 };
 
 static int br_afspec(struct net_bridge *br,
Signature · 1 line
1.7.10.4
#1 lore raw

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
 include/uapi/linux/if_bridge.h |    4 ++++
 net/bridge/br_netlink.c        |    1 +
 2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
  *     [IFLA_BRIDGE_FLAGS]
  *     [IFLA_BRIDGE_MODE]
  *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
  * }
  */
 enum {
 	IFLA_BRIDGE_FLAGS,
 	IFLA_BRIDGE_MODE,
 	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
 	__IFLA_BRIDGE_MAX,
 };
 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 132

Quoted 6 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
 #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
 #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
 #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */
 

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

I would add them in the next patch where you start to use them.

Quoted 21 lines
include/uapi/linux/if_bridge.h +0 -0
 struct bridge_vlan_info {
 	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
 	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
 	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
 				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
 };
 
 static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
- Jeremiah Mahler
author
#2 lore raw
Quoted 46 lines · Jeremiah Mahler

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
  include/uapi/linux/if_bridge.h |    4 ++++
  net/bridge/br_netlink.c        |    1 +
  2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
   *     [IFLA_BRIDGE_FLAGS]
   *     [IFLA_BRIDGE_MODE]
   *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
   * }
   */
  enum {
  	IFLA_BRIDGE_FLAGS,
  	IFLA_BRIDGE_MODE,
  	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
  	__IFLA_BRIDGE_MAX,
  };
  #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 132

Quoted 6 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
  #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
  #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
  #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */
 

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

Quoted 1 line

I would add them in the next patch where you start to use them.

I thought it was ok to declare it first and use them in the next patch. Only the other way around would be bad.
I have submitted in a similar way before. If needed i will resubmit.

Quoted 21 lines
Quoted 21 lines
include/uapi/linux/if_bridge.h +0 -0
  struct bridge_vlan_info {
  	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
  	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
  	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
  				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
  };
 
  static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

Roopa,

Quoted 46 lines · roopa
Quoted 45 lines · Jeremiah Mahler

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
 include/uapi/linux/if_bridge.h |    4 ++++
 net/bridge/br_netlink.c        |    1 +
 2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
  *     [IFLA_BRIDGE_FLAGS]
  *     [IFLA_BRIDGE_MODE]
  *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
  * }
  */
 enum {
 	IFLA_BRIDGE_FLAGS,
 	IFLA_BRIDGE_MODE,
 	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
 	__IFLA_BRIDGE_MAX,
 };
 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 131

Quoted 5 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
 #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
 #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
 #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

Quoted 6 lines
Quoted 1 line

I would add them in the next patch where you start to use them.

I thought it was ok to declare it first and use them in the next patch. Only the other way around would be bad.
I have submitted in a similar way before. If needed i will resubmit.

Hmm. I cannot see how the other way would be bad but maybe I am missing something. Hopefully someone else has some insight.

Quoted 23 lines
Quoted 22 lines
Quoted 22 lines
include/uapi/linux/if_bridge.h +0 -0
 struct bridge_vlan_info {
 	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
 	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
 	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
 				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
 };
 static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
- Jeremiah Mahler
author
#4 lore raw
Quoted 49 lines · Jeremiah Mahler

Roopa,

Quoted 46 lines · roopa
Quoted 45 lines · Jeremiah Mahler

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
  include/uapi/linux/if_bridge.h |    4 ++++
  net/bridge/br_netlink.c        |    1 +
  2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
   *     [IFLA_BRIDGE_FLAGS]
   *     [IFLA_BRIDGE_MODE]
   *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
   * }
   */
  enum {
  	IFLA_BRIDGE_FLAGS,
  	IFLA_BRIDGE_MODE,
  	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
  	__IFLA_BRIDGE_MAX,
  };
  #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 131

Quoted 5 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
  #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
  #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
  #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

I would add them in the next patch where you start to use them.

I thought it was ok to declare it first and use them in the next patch. Only the other way around would be bad.
I have submitted in a similar way before. If needed i will resubmit.

Hmm. I cannot see how the other way would be bad but maybe I am missing something.

sorry, i did not mean what you were saying would be bad. I was just trying to say that, use first and declare later would be bad (ie if my patches 1 and 2 were swapped). Otherwise i don't see a problem.

I know that you are saying i should combine the patches 1 and 2 into a single patch. That is not a problem. If i need to respin again due to other reasons i will consider merging them as well if that is a concern.

thanks.

Quoted 23 lines

Hopefully someone else has some insight.

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
include/uapi/linux/if_bridge.h +0 -0
  struct bridge_vlan_info {
  	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
  	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
  	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
  				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
  };
  static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw

Roopa,

Quoted 56 lines · roopa
Quoted 55 lines · Jeremiah Mahler

Roopa,

Quoted 52 lines · roopa
Quoted 45 lines · Jeremiah Mahler

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
 include/uapi/linux/if_bridge.h |    4 ++++
 net/bridge/br_netlink.c        |    1 +
 2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
  *     [IFLA_BRIDGE_FLAGS]
  *     [IFLA_BRIDGE_MODE]
  *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
  * }
  */
 enum {
 	IFLA_BRIDGE_FLAGS,
 	IFLA_BRIDGE_MODE,
 	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
 	__IFLA_BRIDGE_MAX,
 };
 #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 131

Quoted 5 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
 #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
 #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
 #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

Quoted 1 line

I would add them in the next patch where you start to use them.

I thought it was ok to declare it first and use them in the next patch. Only the other way around would be bad.
I have submitted in a similar way before. If needed i will resubmit.

Quoted 6 lines
Quoted 2 lines

Hmm. I cannot see how the other way would be bad but maybe I am missing something.

sorry, i did not mean what you were saying would be bad. I was just trying to say that, use first and declare later would be bad (ie if my patches 1 and 2 were swapped). Otherwise i don't see a problem.

Now I understand. Yes, swapping the patches would be bad.

Quoted 4 lines

I know that you are saying i should combine the patches 1 and 2 into a single patch. That is not a problem. If i need to respin again due to other reasons i will consider merging them as well if that is a concern.

Er, well not quite. I don't think both patches should be combined in to one. I would only move those two #defines that I pointed out in the first patch in to the second patch.

I hope that makes a little more sense :)

Quoted 26 lines

thanks.

Quoted 23 lines

Hopefully someone else has some insight.

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
include/uapi/linux/if_bridge.h +0 -0
 struct bridge_vlan_info {
 	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
 	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
 	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
 				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
 };
 static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
- Jeremiah Mahler
author
#6 lore raw
Quoted 71 lines · Jeremiah Mahler

Roopa,

Quoted 56 lines · roopa
Quoted 55 lines · Jeremiah Mahler

Roopa,

Quoted 52 lines · roopa
Quoted 45 lines · Jeremiah Mahler

Roopa,

Quoted 34 lines · On Wed, Dec 31, 2014 at 08:48:52AM -0800, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds (as suggested by scott feldman),
- new netlink attribute IFLA_BRIDGE_VLAN_INFO_LIST to represent vlan list
- And bridge_vlan_info flags BRIDGE_VLAN_INFO_RANGE_START and BRIDGE_VLAN_INFO_RANGE_END to indicate start and end of vlan range

---
  include/uapi/linux/if_bridge.h |    4 ++++
  net/bridge/br_netlink.c        |    1 +
  2 files changed, 5 insertions(+)
include/uapi/linux/if_bridge.h +2 -0
index b03ee8f..fa468aa 100644
@@ -112,12 +112,14 @@ struct __fdb_entry {
   *     [IFLA_BRIDGE_FLAGS]
   *     [IFLA_BRIDGE_MODE]
   *     [IFLA_BRIDGE_VLAN_INFO]
+ *     [IFLA_BRIDGE_VLAN_INFO_LIST]
   * }
   */
  enum {
  	IFLA_BRIDGE_FLAGS,
  	IFLA_BRIDGE_MODE,
  	IFLA_BRIDGE_VLAN_INFO,
+	IFLA_BRIDGE_VLAN_INFO_LIST,
  	__IFLA_BRIDGE_MAX,
  };
  #define IFLA_BRIDGE_MAX (__IFLA_BRIDGE_MAX - 1)

include/uapi/linux/if_bridge.h enum { · line 131

Quoted 5 lines
include/uapi/linux/if_bridge.h +2 -0
@@ -125,6 +127,8 @@ enum {
  #define BRIDGE_VLAN_INFO_MASTER	(1<<0)	/* Operate on Bridge device as well */
  #define BRIDGE_VLAN_INFO_PVID	(1<<1)	/* VLAN is PVID, ingress untagged */
  #define BRIDGE_VLAN_INFO_UNTAGGED	(1<<2)	/* VLAN egresses untagged */
+#define BRIDGE_VLAN_INFO_RANGE_START	(1<<3) /* VLAN is start of vlan range */
+#define BRIDGE_VLAN_INFO_RANGE_END	(1<<4) /* VLAN is end of vlan range */

You add these here but you don't use them until the next patch. If they were wrong a bisect would point to the next patch.

Quoted 1 line

I would add them in the next patch where you start to use them.

I thought it was ok to declare it first and use them in the next patch. Only the other way around would be bad.
I have submitted in a similar way before. If needed i will resubmit.

Quoted 6 lines
Quoted 2 lines

Hmm. I cannot see how the other way would be bad but maybe I am missing something.

sorry, i did not mean what you were saying would be bad. I was just trying to say that, use first and declare later would be bad (ie if my patches 1 and 2 were swapped). Otherwise i don't see a problem.

Now I understand. Yes, swapping the patches would be bad.

Quoted 4 lines

I know that you are saying i should combine the patches 1 and 2 into a single patch. That is not a problem. If i need to respin again due to other reasons i will consider merging them as well if that is a concern.

Quoted 5 lines

Er, well not quite. I don't think both patches should be combined in to one. I would only move those two #defines that I pointed out in the first patch in to the second patch.

I hope that makes a little more sense :)

okay :).

thanks,
Roopa

Quoted 25 lines
Quoted 25 lines

thanks.

Quoted 22 lines

Hopefully someone else has some insight.

Quoted 20 lines
Quoted 20 lines
Quoted 20 lines
include/uapi/linux/if_bridge.h +0 -0
  struct bridge_vlan_info {
  	__u16 flags;
net/bridge/br_netlink.c +1 -0
index 9f5eb55..492ef6a 100644
@@ -223,6 +223,7 @@ static const struct nla_policy ifla_br_policy[IFLA_MAX+1] = {
  	[IFLA_BRIDGE_MODE]	= { .type = NLA_U16 },
  	[IFLA_BRIDGE_VLAN_INFO]	= { .type = NLA_BINARY,
  				    .len = sizeof(struct bridge_vlan_info), },
+	[IFLA_BRIDGE_VLAN_INFO_LIST] = { .type = NLA_NESTED, },
  };
  static int br_afspec(struct net_bridge *br,
Signature · 6 lines
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html