Skip to contentSkip to conversation

bridge: new mode flag to indicate mode 'undefined'

PATCH In review [email protected] 3 participants 3 messages Dec 8, 2014 – Dec 9, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v5 1/3 bridge: new mode flag to indicate mode 'undefined'

From: Roopa Prabhu <[email protected]>

This patch adds mode BRIDGE_MODE_UNDEF for cases where mode is not needed.

---
 include/uapi/linux/if_bridge.h |    1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/if_bridge.h +1 -0
index 296a556..05f0869 100644
@@ -106,6 +106,7 @@ struct __fdb_entry {
 #define BRIDGE_MODE_VEB		0	/* Default loopback mode */
 #define BRIDGE_MODE_VEPA	1	/* 802.1Qbg defined VEPA mode */
 #define BRIDGE_MODE_SWDEV	2	/* Full switch device offload */
+#define BRIDGE_MODE_UNDEF	0xFFFF  /* mode undefined */
 
 /* Bridge management nested attributes
  * [IFLA_AF_SPEC] = {
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 25 lines · On Mon, Dec 8, 2014 at 2:04 PM, <[email protected]> wrote:

From: Roopa Prabhu <[email protected]>

This patch adds mode BRIDGE_MODE_UNDEF for cases where mode is not needed.

---
 include/uapi/linux/if_bridge.h |    1 +
 1 file changed, 1 insertion(+)
include/uapi/linux/if_bridge.h +1 -1
index 296a556..05f0869 100644
@@ -106,6 +106,7 @@ struct __fdb_entry {
 #define BRIDGE_MODE_VEB                0       /* Default loopback mode */
 #define BRIDGE_MODE_VEPA       1       /* 802.1Qbg defined VEPA mode */
 #define BRIDGE_MODE_SWDEV      2       /* Full switch device offload */
+#define BRIDGE_MODE_UNDEF      0xFFFF  /* mode undefined */
 
 /* Bridge management nested attributes
  * [IFLA_AF_SPEC] = {
--

1.7.10.4

#2 lore raw
In reply to [email protected]
Quoted 5 lines · Mon, Dec 08, 2014 at 11:04:19PM CET, [email protected] wrote:

From: Roopa Prabhu <[email protected]>

This patch adds mode BRIDGE_MODE_UNDEF for cases where mode is not needed.

Quoted 20 lines

---
include/uapi/linux/if_bridge.h | 1 +

1 file changed, 1 insertion(+)
include/uapi/linux/if_bridge.h +1 -0
index 296a556..05f0869 100644
@@ -106,6 +106,7 @@ struct __fdb_entry {
 #define BRIDGE_MODE_VEB		0	/* Default loopback mode */
 #define BRIDGE_MODE_VEPA	1	/* 802.1Qbg defined VEPA mode */
 #define BRIDGE_MODE_SWDEV	2	/* Full switch device offload */
+#define BRIDGE_MODE_UNDEF	0xFFFF  /* mode undefined */
 
 /* Bridge management nested attributes
 * [IFLA_AF_SPEC] = {
Signature · 1 line
1.7.10.4