Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
L2-input/output: use feature enum type in flag update function
[vpp.git]
/
src
/
vnet
/
l2
/
l2_output.c
diff --git
a/src/vnet/l2/l2_output.c
b/src/vnet/l2/l2_output.c
index
ca95c61
..
31e3f06
100644
(file)
--- a/
src/vnet/l2/l2_output.c
+++ b/
src/vnet/l2/l2_output.c
@@
-60,7
+60,7
@@
format_l2_output_features (u8 * s, va_list * args)
int i;
for (i = L2OUTPUT_N_FEAT - 1; i >= 0; i--)
if (feature_bitmap & (1 << i))
int i;
for (i = L2OUTPUT_N_FEAT - 1; i >= 0; i--)
if (feature_bitmap & (1 << i))
- s = format (s, "%1
0
s (%s)\n", display_names[i], l2output_feat_names[i]);
+ s = format (s, "%1
7
s (%s)\n", display_names[i], l2output_feat_names[i]);
return s;
}
return s;
}
@@
-612,7
+612,8
@@
l2output_intf_config (u32 sw_if_index)
/** Enable (or disable) the feature in the bitmap for the given interface. */
void
/** Enable (or disable) the feature in the bitmap for the given interface. */
void
-l2output_intf_bitmap_enable (u32 sw_if_index, u32 feature_bitmap, u32 enable)
+l2output_intf_bitmap_enable (u32 sw_if_index,
+ l2output_feat_masks_t feature_bitmap, u32 enable)
{
l2output_main_t *mp = &l2output_main;
l2_output_config_t *config;
{
l2output_main_t *mp = &l2output_main;
l2_output_config_t *config;