X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvnet%2Fl2%2Fl2_input.h;h=93da1277e676e4dde0ed77ab5a731ec1f3798463;hp=e6b3bc7f9cde546f4e2f3c98dfbcd5e37fa2e3d9;hb=b6a4795;hpb=001fd406df771f1cf73ca0dea440c8bde309e077 diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index e6b3bc7f9cd..93da1277e67 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -35,6 +35,12 @@ typedef struct u32 output_sw_if_index; /* for xconnect */ }; + /* config for which input features are configured on this interface */ + u32 feature_bitmap; + + /* split horizon group */ + u8 shg; + /* Interface mode. If both are 0, this interface is in L3 mode */ u8 xconnect; u8 bridge; @@ -42,17 +48,6 @@ typedef struct /* this is the bvi interface for the bridge-domain */ u8 bvi; - /* config for which input features are configured on this interface */ - u32 feature_bitmap; - - /* some of these flags are also in the feature bitmap */ - u8 learn_enable; - u8 fwd_enable; - u8 flood_enable; - - /* split horizon group */ - u8 shg; - } l2_input_config_t; @@ -109,13 +104,22 @@ l2input_bd_config (u32 bd_index) _(FLOOD, "l2-flood") \ _(ARP_TERM, "arp-term-l2bd") \ _(UU_FLOOD, "l2-flood") \ + _(GBP_FWD, "gbp-fwd") \ + _(UU_FWD, "l2-uu-fwd") \ _(FWD, "l2-fwd") \ _(RW, "l2-rw") \ _(LEARN, "l2-learn") \ + _(L2_EMULATION, "l2-emulation") \ + _(GBP_LEARN, "gbp-learn-l2") \ + _(GBP_NULL_CLASSIFY, "gbp-null-classify") \ + _(GBP_SRC_CLASSIFY, "gbp-src-classify") \ + _(GBP_LPM_CLASSIFY, "l2-gbp-lpm-classify") \ _(VTR, "l2-input-vtr") \ + _(L2_IP_QOS_RECORD, "l2-ip-qos-record") \ _(VPATH, "vpath-input-l2") \ _(ACL, "l2-input-acl") \ _(POLICER_CLAS, "l2-policer-classify") \ + _(INPUT_FEAT_ARC, "l2-input-feat-arc") \ _(INPUT_CLASSIFY, "l2-input-classify") \ _(SPAN, "span-l2-input") @@ -133,6 +137,7 @@ STATIC_ASSERT (L2INPUT_N_FEAT <= 32, "too many l2 input features"); /* Feature bit masks */ typedef enum { + L2INPUT_FEAT_NONE = 0, #define _(sym,str) L2INPUT_FEAT_##sym = (1<