summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/automation/trex_control_plane/client/trex_stateless_sim.py2
-rwxr-xr-xsrc/pal/linux/mbuf.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_sim.py b/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
index d8f6ed92..bfc3a932 100644
--- a/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
+++ b/scripts/automation/trex_control_plane/client/trex_stateless_sim.py
@@ -260,7 +260,7 @@ class STLSim(object):
cmd = ['valgrind', '--leak-check=full', '--error-exitcode=1'] + cmd
elif self.mode == 'gdb':
- cmd = ['gdb', '--args'] + cmd
+ cmd = ['/bin/gdb', '--args'] + cmd
print "executing command: '{0}'".format(" ".join(cmd))
rc = subprocess.call(cmd)
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;
}