From 9afc778ab7484911e411c8e42e35e0ca22ddd4bd Mon Sep 17 00:00:00 2001 From: Joongi Kim Date: Sat, 27 Feb 2016 18:22:54 +0900 Subject: [PATCH] refs #27: Minor code clean up. --- src/lib/test_utils.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/test_utils.cc b/src/lib/test_utils.cc index 114fb22..5536ad2 100644 --- a/src/lib/test_utils.cc +++ b/src/lib/test_utils.cc @@ -1,6 +1,7 @@ #include #include #include +#include #include #include #include @@ -32,7 +33,8 @@ PacketBatch *nba::testing::create_batch assert(pkt_idx < num_pkts); assert(nullptr != batch->packets[pkt_idx]); batch->packets[pkt_idx]->nb_segs = 1; - batch->packets[pkt_idx]->buf_addr = (void *) ((uintptr_t) batch->packets[pkt_idx] + sizeof(struct rte_mbuf)); + batch->packets[pkt_idx]->buf_addr = (void *) ((uintptr_t) batch->packets[pkt_idx] + + sizeof(struct rte_mbuf)); batch->packets[pkt_idx]->data_off = RTE_PKTMBUF_HEADROOM; batch->packets[pkt_idx]->port = 0; batch->packets[pkt_idx]->pkt_len = pkt_size;