diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-11-16 11:03:51 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-11-16 11:03:51 +0200 |
commit | 122f336ffde6d3fc74acc6861322328d778d3232 (patch) | |
tree | 2fa5d0889c66608296a1b0431f2289584b77c977 /src/pre_test.cpp | |
parent | 52b8755b842c4adbb8bf923798cc1fc4fd498ae4 (diff) |
Fix trex-267 - allocation of ARP packets from wrong memory socket
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/pre_test.cpp')
-rw-r--r-- | src/pre_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pre_test.cpp b/src/pre_test.cpp index 130d076d..76fa9a26 100644 --- a/src/pre_test.cpp +++ b/src/pre_test.cpp @@ -257,7 +257,7 @@ void CPretest::send_arp_req(uint16_t port_id, bool is_grat) { int num_sent; int verbose = CGlobalInfo::m_options.preview.getVMode(); - m[0] = CGlobalInfo::pktmbuf_alloc_small(0); + m[0] = CGlobalInfo::pktmbuf_alloc_small_by_port(port_id); if ( unlikely(m[0] == 0) ) { fprintf(stderr, "ERROR: Could not allocate mbuf for sending ARP to port:%d\n", port_id); exit(1); |