aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorchenxiang <chenxndsc@163.com>2018-09-28 15:55:55 +0800
committerDamjan Marion <dmarion@me.com>2018-10-01 09:55:13 +0000
commit3a0d8536debcef587282359cc88276a1285c0f6a (patch)
tree9d37fe1c26e7ce782df699cb5f5ffec43e149fbb /src/vnet
parentca7a68e0fba9de14e18801c535d87da7fa0e4fa3 (diff)
fix packets redirect ineffective on af-packet interfacestable/1804
Change-Id: Ibdc03c4c79632a61c5f36b8e907ec2bd7ebb0dc7 Signed-off-by: chenxiang <chenxndsc@163.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/devices/af_packet/node.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vnet/devices/af_packet/node.c b/src/vnet/devices/af_packet/node.c
index d74e56fd0e9..c5ec919fefe 100644
--- a/src/vnet/devices/af_packet/node.c
+++ b/src/vnet/devices/af_packet/node.c
@@ -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);