summaryrefslogtreecommitdiffstats
path: root/src/pal/linux
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-02-04 10:30:24 +0200
committerHanoh Haim <hhaim@cisco.com>2016-02-04 10:30:24 +0200
commitd95c37b1d2b3c9d7c2e1942b4b8ee18f22464f72 (patch)
treef369f3372be21e58910990912224d184b069007b /src/pal/linux
parent2bb3178d1c121a23f8a62a17c2c8e719ccb4928f (diff)
fix simulation trim instruction
Diffstat (limited to 'src/pal/linux')
-rwxr-xr-xsrc/pal/linux/mbuf.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pal/linux/mbuf.cpp b/src/pal/linux/mbuf.cpp
index 7e9f4775..d6fdf461 100755
--- a/src/pal/linux/mbuf.cpp
+++ b/src/pal/linux/mbuf.cpp
@@ -343,7 +343,8 @@ void rte_pktmbuf_attach(struct rte_mbuf *mi, struct rte_mbuf *md)
mi->data_off = md->data_off;
mi->next = NULL;
- mi->pkt_len = mi->data_len;
+ mi->data_len = md->data_len;
+ mi->pkt_len = mi->data_len;
mi->nb_segs = 1;
}