fix simulation trim instruction
authorHanoh Haim <[email protected]>
Thu, 4 Feb 2016 08:30:24 +0000 (10:30 +0200)
committerHanoh Haim <[email protected]>
Thu, 4 Feb 2016 08:30:24 +0000 (10:30 +0200)
scripts/automation/trex_control_plane/client/trex_stateless_sim.py
src/pal/linux/mbuf.cpp

index d8f6ed9..bfc3a93 100644 (file)
@@ -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)
index 7e9f477..d6fdf46 100755 (executable)
@@ -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;
 }