summaryrefslogtreecommitdiffstats
path: root/vnet/vnet/ethernet
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-05-31 16:25:13 -0400
committerJohn Lo <loj@cisco.com>2016-05-31 20:28:40 +0000
commit17f17cb44f16c0a743661a276ef96a696ee325e9 (patch)
treefee7673eb067a9f4c37e398cc13a49318c85ccc1 /vnet/vnet/ethernet
parent1d3b2abc2cf9058b908175c330792105f935d54f (diff)
VPP97: Flooding of pkts with multiple buffers in BD with BVI crashes VPP
The loopback interface should use vnet_interface_output_no_flatten so follow-on buffers of a jumbo packet do not get put on the output frame and be sent back to ethernet-input or l2-input node. The replication_recycle_callback() function should not assume follow-on buffers of a jumbo packet are on the buffer free list. Change-Id: Ide646a6d9b43e82782c0581ea3022a9e70f82582 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'vnet/vnet/ethernet')
-rw-r--r--vnet/vnet/ethernet/interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/ethernet/interface.c b/vnet/vnet/ethernet/interface.c
index fd640308c95..cc0afb7f40b 100644
--- a/vnet/vnet/ethernet/interface.c
+++ b/vnet/vnet/ethernet/interface.c
@@ -343,6 +343,7 @@ VNET_DEVICE_CLASS (ethernet_simulated_device_class) = {
.format_device_name = format_simulated_ethernet_name,
.tx_function = simulated_ethernet_interface_tx,
.admin_up_down_function = simulated_ethernet_admin_up_down,
+ .no_flatten_output_chains = 1,
};
int vnet_create_loopback_interface (u32 * sw_if_indexp, u8 *mac_address)