diff options
author | Mohsin Kazmi <sykazmi@cisco.com> | 2019-04-05 17:40:20 +0200 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2019-04-24 14:26:48 +0000 |
commit | 5e6f7348cf456cffc85dae8bc6857589061122ba (patch) | |
tree | 0b76823cfbf0de6e5ddf5e887313baa5945ab5a1 /src/vnet/l2/l2_input.h | |
parent | 4375fa312e91ffeef0d34ab0594bda4a8c9189ea (diff) |
l2: Add support for arp unicast forwarding
Change-Id: I79fc55f36a9b83957f84619bdf8cef08acc8ec24
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
Diffstat (limited to 'src/vnet/l2/l2_input.h')
-rw-r--r-- | src/vnet/l2/l2_input.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index 93da1277e67..ce9a7d5f0cd 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -102,6 +102,7 @@ l2input_bd_config (u32 bd_index) _(DROP, "feature-bitmap-drop") \ _(XCONNECT, "l2-output") \ _(FLOOD, "l2-flood") \ + _(ARP_UFWD, "l2-uu-fwd") \ _(ARP_TERM, "arp-term-l2bd") \ _(UU_FLOOD, "l2-flood") \ _(GBP_FWD, "gbp-fwd") \ @@ -190,6 +191,13 @@ bd_feature_arp_term (l2_bridge_domain_t * bd_config) L2INPUT_FEAT_ARP_TERM); } +static_always_inline u8 +bd_feature_arp_ufwd (l2_bridge_domain_t * bd_config) +{ + return ((bd_config->feature_bitmap & L2INPUT_FEAT_ARP_UFWD) == + L2INPUT_FEAT_ARP_UFWD); +} + /** Masks for eliminating features that do not apply to a packet */ /** Get a pointer to the config for the given interface */ |