fix packets redirect ineffective on af-packet interface 30/15030/2 stable/1804
authorchenxiang <[email protected]>
Fri, 28 Sep 2018 07:55:55 +0000 (15:55 +0800)
committerDamjan Marion <[email protected]>
Mon, 1 Oct 2018 09:55:13 +0000 (09:55 +0000)
Change-Id: Ibdc03c4c79632a61c5f36b8e907ec2bd7ebb0dc7
Signed-off-by: chenxiang <[email protected]>
src/vnet/devices/af_packet/node.c

index d74e56f..c5ec919 100644 (file)
@@ -300,9 +300,8 @@ af_packet_device_input_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
              first_b0->error =
                node->errors[AF_PACKET_INPUT_ERROR_PARTIAL_PKT];
            }
-         else
+         else if (apif->per_interface_next_index == ~0)
            {
-             next0 = VNET_DEVICE_INPUT_NEXT_ETHERNET_INPUT;
              /* redirect if feature path enabled */
              vnet_feature_start_device_input_x1 (apif->sw_if_index, &next0,
                                                  first_b0);