diff options
author | Hanoh Haim <hhaim@cisco.com> | 2016-02-04 10:30:24 +0200 |
---|---|---|
committer | Hanoh Haim <hhaim@cisco.com> | 2016-02-04 10:30:24 +0200 |
commit | d95c37b1d2b3c9d7c2e1942b4b8ee18f22464f72 (patch) | |
tree | f369f3372be21e58910990912224d184b069007b | |
parent | 2bb3178d1c121a23f8a62a17c2c8e719ccb4928f (diff) |
fix simulation trim instruction
-rw-r--r-- | scripts/automation/trex_control_plane/client/trex_stateless_sim.py | 2 | ||||
-rwxr-xr-x | src/pal/linux/mbuf.cpp | 3 |
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; } |