From: Neale Ranns Date: Wed, 24 Oct 2018 09:31:51 +0000 (-0700) Subject: L2-input/output: use feature enum type in flag update function X-Git-Tag: v19.04-rc0~549 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=a1179589bea89b44f7b41001b5e5595a8793b1df L2-input/output: use feature enum type in flag update function Change-Id: I1f58f441c65fbca101bee2e864bfa6ae2306b475 Signed-off-by: Neale Ranns --- diff --git a/src/vnet/l2/l2_input.c b/src/vnet/l2/l2_input.c index fbd3b940fae..85daba5a8ea 100644 --- a/src/vnet/l2/l2_input.c +++ b/src/vnet/l2/l2_input.c @@ -518,7 +518,8 @@ l2input_intf_config (u32 sw_if_index) /** Enable (or disable) the feature in the bitmap for the given interface. */ u32 -l2input_intf_bitmap_enable (u32 sw_if_index, u32 feature_bitmap, u32 enable) +l2input_intf_bitmap_enable (u32 sw_if_index, + l2input_feat_masks_t feature_bitmap, u32 enable) { l2_input_config_t *config = l2input_intf_config (sw_if_index); diff --git a/src/vnet/l2/l2_input.h b/src/vnet/l2/l2_input.h index e7c413f59c4..f55e70371e0 100644 --- a/src/vnet/l2/l2_input.h +++ b/src/vnet/l2/l2_input.h @@ -135,6 +135,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<