X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_input.h;h=0e1e98f883d80e3f94dceaaa024b6d6f0417a75e;hb=refs%2Fchanges%2F22%2F26022%2F2;hp=93da1277e676e4dde0ed77ab5a731ec1f3798463;hpb=b6a47953973f7c94239c394b649100e91bdb2152;p=vpp.git diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index 93da1277e67..0e1e98f883d 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -102,6 +103,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") \ @@ -111,6 +113,7 @@ l2input_bd_config (u32 bd_index) _(LEARN, "l2-learn") \ _(L2_EMULATION, "l2-emulation") \ _(GBP_LEARN, "gbp-learn-l2") \ + _(GBP_LPM_ANON_CLASSIFY, "l2-gbp-lpm-anon-classify") \ _(GBP_NULL_CLASSIFY, "gbp-null-classify") \ _(GBP_SRC_CLASSIFY, "gbp-src-classify") \ _(GBP_LPM_CLASSIFY, "l2-gbp-lpm-classify") \ @@ -190,6 +193,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 */