summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDave Barach <dbarach@cisco.com>2019-02-11 18:44:18 -0500
committerDamjan Marion <dmarion@me.com>2019-02-12 14:55:11 +0000
commit22ad815d654294d77ccbb2b7286a73b544bf3f52 (patch)
tree0190a9d5b8a2b624f27352b962688404e7fa41ca /src/plugins
parent72b3bce0b6850f136748ba78bfa01b0192a0756d (diff)
fix assert failure
Change-Id: I9a2e8ea2bf334dd8dabf3d25abbcc91087a43882 Signed-off-by: Dave Barach <dbarach@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/node.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c
index eed2736ea61..bd23319d5af 100644
--- a/src/plugins/dpdk/device/node.c
+++ b/src/plugins/dpdk/device/node.c
@@ -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 (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)