From 635ec3bdd073101dd513083be4f1edfb64e29098 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Fri, 13 Jul 2018 20:12:45 -0400 Subject: VPP-1341: fix loopback interface graph arcs Remove broken special case from l2_input.c:set_int_l2_mode(), which turns out to confuse the graph dispatch engine. The loopback TX function needs to push packets to either ethernet-input or to l2-input, based on bridge / BVI configuration. Rather than overloading a single graph arc - and making vain attempts to reconfigure it - create both arcs and use the correct one. Rewrote the loopback tx function as an idosyncratic multi-arch quad/single loop fn. Change-Id: I15b56ce641d90a11e7b3c7d23859f40e168dd7b2 Signed-off-by: Dave Barach --- src/vnet/unix/tapcli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vnet/unix/tapcli.c') diff --git a/src/vnet/unix/tapcli.c b/src/vnet/unix/tapcli.c index 4a5628e34fa..00f093eb067 100644 --- a/src/vnet/unix/tapcli.c +++ b/src/vnet/unix/tapcli.c @@ -275,7 +275,7 @@ tapcli_rx_iface (vlib_main_t * vm, vnet_main_t *vnm; vnet_sw_interface_t *si; u8 admin_down; - u32 next = node->cached_next_index; + u32 next = VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT; u32 n_left_to_next, next_index; u32 *to_next; -- cgit 1.2.3-korg