#include <vnet/l2/l2_input.h>
#include <vnet/l2/feat_bitmap.h>
#include <vnet/l2/l2_bvi.h>
-#include <vnet/replication.h>
#include <vnet/l2/l2_fib.h>
#include <vppinfra/error.h>
while (n_left_from > 0 && n_left_to_next > 0)
{
- u32 next0, sw_if_index0, bi0, ci0;
u16 n_clones, n_cloned, clone0;
l2_bridge_domain_t *bd_config;
+ u32 sw_if_index0, bi0, ci0;
l2_flood_member_t *member;
vlib_buffer_t *b0, *c0;
+ u16 next0;
u8 in_shg;
i32 mi;
bi0 = from[0];
from += 1;
n_left_from -= 1;
- next0 = L2FLOOD_NEXT_DROP;
+ next0 = L2FLOOD_NEXT_L2_OUTPUT;
b0 = vlib_get_buffer (vm, bi0);
vec_reset_length (msm->clones[thread_index]);
/*
- * the header offset needs to be large enoguh to incorporate
+ * the header offset needs to be large enough to incorporate
* all the L3 headers that could be touched when doing BVI
* processing. So take the current l2 length plus 2 * IPv6
* headers (for tunnel encap)
/* Do normal L2 forwarding */
vnet_buffer (c0)->sw_if_index[VLIB_TX] = member->sw_if_index;
- next0 = L2FLOOD_NEXT_L2_OUTPUT;
vlib_validate_buffer_enqueue_x1 (vm, node, next_index,
to_next, n_left_to_next,
msm->vnet_main,
c0, member->sw_if_index, &msm->l3_next, &next0);
- if (PREDICT_FALSE (rc))
+ if (PREDICT_FALSE (rc != TO_BVI_ERR_OK))
{
if (rc == TO_BVI_ERR_BAD_MAC)
{
{
c0->error = node->errors[L2FLOOD_ERROR_BVI_ETHERTYPE];
}
+ next0 = L2FLOOD_NEXT_DROP;
}
}
else
{
/* Do normal L2 forwarding */
vnet_buffer (c0)->sw_if_index[VLIB_TX] = member->sw_if_index;
- next0 = L2FLOOD_NEXT_L2_OUTPUT;
}
vlib_validate_buffer_enqueue_x1 (vm, node, next_index,