summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@atca1.(none)>2015-05-30 15:41:02 +0800
committerroot <root@atca1.(none)>2015-05-30 15:41:02 +0800
commit568e4926f0409b8682730349985249c044307fa0 (patch)
tree148e795ae2098ef0e1372de5b08445204c49a044
parentc1b230e7837235ea3213da15e97567b086e7aecf (diff)
去掉丢所有包的条件编译。20150601
-rw-r--r--driver/runtime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/driver/runtime.c b/driver/runtime.c
index 314828a..06e617e 100644
--- a/driver/runtime.c
+++ b/driver/runtime.c
@@ -223,8 +223,7 @@ app_lcore_io_rx(
nstat_port_count_rx(nstat_common_handle, lp->rx.mbuf_in.array, n_mbufs, port);
nstat_io_count_rx(nstat_common_handle, lp->rx.mbuf_in.array, n_mbufs, lcore_id);
-//#if APP_IO_RX_DROP_ALL_PACKETS
-#if 1
+#if APP_IO_RX_DROP_ALL_PACKETS
for (j = 0; j < n_mbufs; j ++) {
struct rte_mbuf *pkt = lp->rx.mbuf_in.array[j];
rte_pktmbuf_free(pkt);