From af05bc018a465a993e795d7c81c2eb12d5b77e44 Mon Sep 17 00:00:00 2001 From: Eyal Bari Date: Wed, 9 May 2018 09:37:54 +0300 Subject: dpdk:fix mbuf index typo's Change-Id: I387b22427b3f322969bcf32fcfc189123c8ed6ae Signed-off-by: Eyal Bari --- src/plugins/dpdk/device/node.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/plugins/dpdk/device') diff --git a/src/plugins/dpdk/device/node.c b/src/plugins/dpdk/device/node.c index 9b59830af33..7bb1fb3c9c1 100644 --- a/src/plugins/dpdk/device/node.c +++ b/src/plugins/dpdk/device/node.c @@ -255,7 +255,7 @@ dpdk_mbufs_to_buffer_indices (vlib_main_t * vm, struct rte_mbuf **mb, bi[2] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[2])); bi[3] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[3])); bi[4] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[4])); - bi[5] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[4])); + bi[5] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[5])); bi[6] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[6])); bi[7] = vlib_get_buffer_index (vm, vlib_buffer_from_rte_mbuf (mb[7])); #endif @@ -333,19 +333,19 @@ dpdk_process_rx_burst (vlib_main_t * vm, dpdk_per_thread_data_t * ptd, vnet_buffer (b[0])->l2_hdr_offset = off; b[0]->current_data = off; - off = mb[0]->data_off; + off = mb[1]->data_off; next[1] = off + STRUCT_OFFSET_OF (ethernet_header_t, type); off -= RTE_PKTMBUF_HEADROOM; vnet_buffer (b[1])->l2_hdr_offset = off; b[1]->current_data = off; - off = mb[0]->data_off; + off = mb[2]->data_off; next[2] = off + STRUCT_OFFSET_OF (ethernet_header_t, type); off -= RTE_PKTMBUF_HEADROOM; vnet_buffer (b[2])->l2_hdr_offset = off; b[2]->current_data = off; - off = mb[0]->data_off; + off = mb[3]->data_off; next[3] = off + STRUCT_OFFSET_OF (ethernet_header_t, type); off -= RTE_PKTMBUF_HEADROOM; vnet_buffer (b[3])->l2_hdr_offset = off; -- cgit 1.2.3-korg