diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index c1b669b4082..244ef445ca8 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -124,22 +124,26 @@ typedef enum #define _(sym,str) L2INPUT_FEAT_##sym##_BIT, foreach_l2input_feat #undef _ - L2INPUT_N_FEAT, - L2INPUT_VALID_MASK = -#define _(sym,str) L2INPUT_FEAT_##sym##_BIT | - foreach_l2input_feat -#undef _ - 0, + L2INPUT_N_FEAT } l2input_feat_t; +STATIC_ASSERT (L2INPUT_N_FEAT <= 32, "too many l2 input features"); + /* Feature bit masks */ typedef enum { #define _(sym,str) L2INPUT_FEAT_##sym = (1<