summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_bd.h
diff options
context:
space:
mode:
authorJerome Tollet <jtollet@cisco.com>2017-09-05 12:13:22 +0100
committerJohn Lo <loj@cisco.com>2017-09-07 07:48:53 +0000
commit483041413842e04f6958ae8cae4135dc2262d43b (patch)
tree608e8d306ff9b714b2f5432520f6148c9dab8455 /src/vnet/l2/l2_bd.h
parentd05c155e346f73b1aa77e74c7a012ef9711dd1fa (diff)
Support for bridge domain free text tag
Change-Id: I9a75fdafd0c1d87b6f071fda5b77ff5f6b79deb7 Signed-off-by: Jerome Tollet <jtollet@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_bd.h')
-rw-r--r--src/vnet/l2/l2_bd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_bd.h b/src/vnet/l2/l2_bd.h
index 0e070651859..e60f1ab3f09 100644
--- a/src/vnet/l2/l2_bd.h
+++ b/src/vnet/l2/l2_bd.h
@@ -88,6 +88,9 @@ typedef struct
/* sequence number for bridge domain based flush of MACs */
u8 seq_num;
+ /* Bridge domain tag (C string NULL terminated) */
+ u8 *bd_tag;
+
} l2_bridge_domain_t;
/* Limit Bridge Domain ID to 24 bits to match 24-bit VNI range */
@@ -102,6 +105,7 @@ typedef struct
u8 learn;
u8 arp_term;
u8 mac_age;
+ u8 *bd_tag;
u8 is_add;
} l2_bridge_domain_add_del_args_t;
@@ -130,6 +134,7 @@ u32 bd_remove_member (l2_bridge_domain_t * bd_config, u32 sw_if_index);
u32 bd_set_flags (vlib_main_t * vm, u32 bd_index, u32 flags, u32 enable);
void bd_set_mac_age (vlib_main_t * vm, u32 bd_index, u8 age);
+void bd_set_bd_tag (vlib_main_t * vm, u32 bd_index, u8 * bd_tag);
int bd_add_del (l2_bridge_domain_add_del_args_t * args);
/**