diff options
author | Eyal Bari <ebari@cisco.com> | 2017-04-04 04:46:32 +0300 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-04-04 19:00:37 +0000 |
commit | fead670ae0a8323d8cd14e2cfad1fb8c25a48a99 (patch) | |
tree | 7e541e98aeee7dee5c7dbd36550ea54896c8a1f6 /src/vnet/l2/l2_bd.c | |
parent | a8ed6bd9ded4cbfff01f49571272e59def9f4010 (diff) |
BD/API:add bridge_domain_set_mac_age api
Change-Id: Ic2d33b31ba88f6d9602a22439865637d98cf4a33
Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_bd.c')
-rw-r--r-- | src/vnet/l2/l2_bd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/l2/l2_bd.c b/src/vnet/l2/l2_bd.c index 0375998c990..a222fec9b81 100644 --- a/src/vnet/l2/l2_bd.c +++ b/src/vnet/l2/l2_bd.c @@ -284,8 +284,7 @@ bd_set_mac_age (vlib_main_t * vm, u32 bd_index, u8 age) /* check if there is at least one bd with mac aging enabled */ vec_foreach (bd_config, l2input_main.bd_configs) - if (bd_config->bd_id != ~0 && bd_config->mac_age != 0) - enable = 1; + enable |= bd_config->bd_id != ~0 && bd_config->mac_age != 0; vlib_process_signal_event (vm, l2fib_mac_age_scanner_process_node.index, enable ? L2_MAC_AGE_PROCESS_EVENT_START : |