Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BD ARP entry use common API types
[vpp.git]
/
src
/
vnet
/
l2
/
l2_input.c
diff --git
a/src/vnet/l2/l2_input.c
b/src/vnet/l2/l2_input.c
index
c4f6d6f
..
85daba5
100644
(file)
--- a/
src/vnet/l2/l2_input.c
+++ b/
src/vnet/l2/l2_input.c
@@
-82,7
+82,7
@@
format_l2_input_features (u8 * s, va_list * args)
int i;
for (i = L2INPUT_N_FEAT; i >= 0; i--)
if (feature_bitmap & (1 << i))
int i;
for (i = L2INPUT_N_FEAT; i >= 0; i--)
if (feature_bitmap & (1 << i))
- s = format (s, "%1
0
s (%s)\n", display_names[i], l2input_feat_names[i]);
+ s = format (s, "%1
7
s (%s)\n", display_names[i], l2input_feat_names[i]);
return s;
}
return s;
}
@@
-518,7
+518,8
@@
l2input_intf_config (u32 sw_if_index)
/** Enable (or disable) the feature in the bitmap for the given interface. */
u32
/** 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);
{
l2_input_config_t *config = l2input_intf_config (sw_if_index);
@@
-649,7
+650,7
@@
set_int_l2_mode (vlib_main_t * vm, vnet_main_t * vnet_main, /* */
/* Clear L2 output config */
out_config = l2output_intf_config (sw_if_index);
/* Clear L2 output config */
out_config = l2output_intf_config (sw_if_index);
- memset (out_config, 0, sizeof (l2_output_config_t));
+
clib_
memset (out_config, 0, sizeof (l2_output_config_t));
/* Make sure any L2-output packet to this interface now in L3 mode is
* dropped. This may happen if L2 FIB MAC entry is stale */
/* Make sure any L2-output packet to this interface now in L3 mode is
* dropped. This may happen if L2 FIB MAC entry is stale */