summaryrefslogtreecommitdiffstats
path: root/src/pre_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pre_test.cpp')
-rw-r--r--src/pre_test.cpp2
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);