summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <[email protected]>2015-07-07 15:39:41 +0800
committerroot <[email protected]>2015-07-07 15:39:41 +0800
commita3c39accd56e17304f9bc8dced7b6aa09ef7f2cf (patch)
tree6293275556452461da49fd0004f31b93b97a4535
parent4e8d8f0a3ab39efa8764ac3c738f1936dedbfe4c (diff)
去掉调试使用的丢包条件编译20150707
-rw-r--r--worker/runtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/worker/runtime.c b/worker/runtime.c
index 8ff4b71..f5022d7 100644
--- a/worker/runtime.c
+++ b/worker/runtime.c
@@ -344,8 +344,7 @@ app_lcore_worker(
}
-#if 1
-//#if APP_WORKER_DROP_ALL_PACKETS
+#if APP_WORKER_DROP_ALL_PACKETS
for (j = 0; j < bsz_rd; j ++) {
struct rte_mbuf *pkt = lp->mbuf_in.array[j];
rte_pktmbuf_free(pkt);