aboutsummaryrefslogtreecommitdiffstats
path: root/vnet/vnet/l2/l2_bd.h
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2016-12-05 14:16:38 +0100
committerDave Barach <openvpp@barachs.net>2016-12-07 17:42:07 +0000
commitd171d48edc1672564db8bb920586b8ea220df14c (patch)
treed9b202cf3f8087ca1d2ec3c604f35fe42e5ba102 /vnet/vnet/l2/l2_bd.h
parent38bcb56e99774c209e5f61604a4c22839c097e04 (diff)
l2fib: add mac aging support
Change-Id: Ib617ae0f76320d596cc6c4b384da76c91d701a24 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'vnet/vnet/l2/l2_bd.h')
-rw-r--r--vnet/vnet/l2/l2_bd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vnet/vnet/l2/l2_bd.h b/vnet/vnet/l2/l2_bd.h
index b9ee8236c14..4bb9bc9b24c 100644
--- a/vnet/vnet/l2/l2_bd.h
+++ b/vnet/vnet/l2/l2_bd.h
@@ -83,6 +83,9 @@ typedef struct
uword *mac_by_ip4;
uword *mac_by_ip6;
+ /* mac aging */
+ u8 mac_age;
+
} l2_bridge_domain_t;
/* Return 1 if bridge domain has been initialized */
@@ -109,6 +112,7 @@ u32 bd_remove_member (l2_bridge_domain_t * bd_config, u32 sw_if_index);
#define L2_ARP_TERM (1<<4)
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);
/**
* \brief Get or create a bridge domain.