From 4b3bcd46c0d8c268a5cc1450340dd6ffcf29ab20 Mon Sep 17 00:00:00 2001 From: Xu Jiaxuan Date: Fri, 10 Nov 2017 13:58:25 +0800 Subject: [PATCH] Fix bug: process input packets error if packet fragment modified: lib/ff_dpdk_if.c --- lib/ff_dpdk_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ff_dpdk_if.c b/lib/ff_dpdk_if.c index d60ea3fe9..880a6ff80 100644 --- a/lib/ff_dpdk_if.c +++ b/lib/ff_dpdk_if.c @@ -859,8 +859,8 @@ ff_veth_input(const struct ff_dpdk_if_context *ctx, struct rte_mbuf *pkt) struct rte_mbuf *pn = pkt->next; void *prev = hdr; while(pn != NULL) { - data = rte_pktmbuf_mtod(pkt, void*); - len = rte_pktmbuf_data_len(pkt); + data = rte_pktmbuf_mtod(pn, void*); + len = rte_pktmbuf_data_len(pn); void *mb = ff_mbuf_get(prev, data, len); if (mb == NULL) {