From d171d48edc1672564db8bb920586b8ea220df14c Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Mon, 5 Dec 2016 14:16:38 +0100 Subject: l2fib: add mac aging support Change-Id: Ib617ae0f76320d596cc6c4b384da76c91d701a24 Signed-off-by: Damjan Marion --- vpp/vpp-api/api.c | 2 ++ vpp/vpp-api/vpe.api | 4 ++++ 2 files changed, 6 insertions(+) (limited to 'vpp/vpp-api') diff --git a/vpp/vpp-api/api.c b/vpp/vpp-api/api.c index f1cd93a7f98..b7753092fc4 100644 --- a/vpp/vpp-api/api.c +++ b/vpp/vpp-api/api.c @@ -974,6 +974,7 @@ vl_api_bridge_domain_add_del_t_handler (vl_api_bridge_domain_add_del_t * mp) if (disable_flags) bd_set_flags (vm, bd_index, disable_flags, 0 /* disable */ ); + bd_set_mac_age (vm, mp->mac_age, mp->mac_age); } else rv = bd_delete_bd_index (bdm, bd_id); @@ -1011,6 +1012,7 @@ send_bridge_domain_details (unix_shared_memory_queue_t * q, mp->learn = bd_feature_learn (bd_config); mp->arp_term = bd_feature_arp_term (bd_config); mp->bvi_sw_if_index = ntohl (bd_config->bvi_sw_if_index); + mp->mac_age = bd_config->mac_age; mp->n_sw_ifs = ntohl (n_sw_ifs); mp->context = context; diff --git a/vpp/vpp-api/vpe.api b/vpp/vpp-api/vpe.api index 5116cbf0c9d..1c33f70bd94 100644 --- a/vpp/vpp-api/vpe.api +++ b/vpp/vpp-api/vpe.api @@ -2890,6 +2890,7 @@ define ip6_nd_event @param forward - enable/disable forwarding on all interfaces in the bd @param learn - enable/disable learning on all interfaces in the bd @param arp_term - enable/disable arp termination in the bd + @param mac_age - mac aging time in min, 0 for disabled @param is_add - add or delete flag */ define bridge_domain_add_del @@ -2902,6 +2903,7 @@ define bridge_domain_add_del u8 forward; u8 learn; u8 arp_term; + u8 mac_age; u8 is_add; }; @@ -2934,6 +2936,7 @@ define bridge_domain_dump @param forward - forwarding state on all interfaces in the bd @param learn - learning state on all interfaces in the bd @param arp_term - arp termination state on all interfaces in the bd + @param mac_age - mac aging time in min, 0 for disabled @param n_sw_ifs - number of sw_if_index's in the domain */ define bridge_domain_details @@ -2945,6 +2948,7 @@ define bridge_domain_details u8 forward; u8 learn; u8 arp_term; + u8 mac_age; u32 bvi_sw_if_index; u32 n_sw_ifs; }; -- cgit 1.2.3-korg