diff options
author | Eyal Bari <ebari@cisco.com> | 2017-04-20 14:45:17 +0300 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-05-03 13:48:11 +0000 |
commit | afc47aa36f44d3f865c6e1e48f41eded366a85ac (patch) | |
tree | 8d9b9ef47ea524f965174d6b81260d1f418bb5d8 /src/vnet/l2/l2_input.h | |
parent | e72be39cd0f498178fd62dfc0a0b0daa2b633f62 (diff) |
L2FIB:flush interface learned macs on down
Change-Id: I80a723f55fcf2ecc3209a35e8297c88b45b1abfb
Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_input.h')
-rw-r--r-- | src/vnet/l2/l2_input.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index a2ade8d8e1e..cb67cb9d20e 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -89,6 +89,17 @@ l2input_bd_config_from_index (l2input_main_t * l2im, u32 bd_index) return bd_is_valid (bd_config) ? bd_config : NULL; } +static_always_inline l2_bridge_domain_t * +l2input_bd_config (u32 bd_index) +{ + l2input_main_t *mp = &l2input_main; + l2_bridge_domain_t *bd_config; + + vec_validate (mp->bd_configs, bd_index); + bd_config = vec_elt_at_index (mp->bd_configs, bd_index); + return bd_config; +} + /* L2 input indication packet is from BVI, using -2 */ #define L2INPUT_BVI ((u32) (~0-1)) |