fix assert failure 78/17478/2
authorDave Barach <dbarach@cisco.com>
Mon, 11 Feb 2019 23:44:18 +0000 (18:44 -0500)
committerDamjan Marion <dmarion@me.com>
Tue, 12 Feb 2019 14:55:11 +0000 (14:55 +0000)
Change-Id: I9a2e8ea2bf334dd8dabf3d25abbcc91087a43882
Signed-off-by: Dave Barach <dbarach@cisco.com>
src/plugins/dpdk/device/node.c

index eed2736..bd23319 100644 (file)
@@ -441,6 +441,12 @@ dpdk_device_input (vlib_main_t * vm, dpdk_main_t * dm, dpdk_device_t * xd,
   if (PREDICT_FALSE (dm->pcap[VLIB_RX].pcap_enable))
     {
       u32 bi0;
   if (PREDICT_FALSE (dm->pcap[VLIB_RX].pcap_enable))
     {
       u32 bi0;
+
+      if (single_next)
+       vlib_get_buffer_indices_with_offset (vm, (void **) ptd->mbufs,
+                                            ptd->buffers, n_rx_packets,
+                                            sizeof (struct rte_mbuf));
+
       n_left = n_rx_packets;
       buffers = ptd->buffers;
       while (n_left)
       n_left = n_rx_packets;
       buffers = ptd->buffers;
       while (n_left)