summaryrefslogtreecommitdiffstats
path: root/src/plugins/dpdk/device
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-05-09 09:37:54 +0300
committerEyal Bari <ebari@cisco.com>2018-05-09 09:37:54 +0300
commitaf05bc018a465a993e795d7c81c2eb12d5b77e44 (patch)
tree713c5614391e510777e1ade4da9f4340a0751052 /src/plugins/dpdk/device
parentebdf190a9c4a514329de7e5e9b9178c3af055122 (diff)
dpdk:fix mbuf index typo's
Change-Id: I387b22427b3f322969bcf32fcfc189123c8ed6ae Signed-off-by: Eyal Bari <ebari@cisco.com>
Diffstat (limited to 'src/plugins/dpdk/device')
-rw-r--r--src/plugins/dpdk/device/node.c8
1 files changed, 4 insertions, 4 deletions
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;