From 62b346d1ac8f4943916d21b8b3b55fcf9ab37a73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roni=20H=C3=A4cki?= Date: Wed, 29 Mar 2017 14:20:57 +0200 Subject: [PATCH] lwip: remove measuring code from datapath MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roni Häcki --- lib/lwip/src/netif/bfeth.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/lwip/src/netif/bfeth.c b/lib/lwip/src/netif/bfeth.c index a0f841e..a16dba1 100644 --- a/lib/lwip/src/netif/bfeth.c +++ b/lib/lwip/src/netif/bfeth.c @@ -268,7 +268,7 @@ bfeth_input(struct netif *netif, uint64_t pbuf_id, uint64_t paddr, uint64_t len, //which was processed in this function. Therefore we have to register a new //free buffer for receiving packets. We can reuse the odl buffer's index //and the corresponding data structures (i.e. array entries) - uint64_t ts = rdtsc(); + //uint64_t ts = rdtsc(); errval_t err = mem_barrelfish_replace_pbuf(replaced_pbuf); if (err != SYS_ERR_OK) { printf("Can't replace received pbuf in RX ring\n"); @@ -276,7 +276,7 @@ bfeth_input(struct netif *netif, uint64_t pbuf_id, uint64_t paddr, uint64_t len, USER_PANIC("Can't replace received pbuf in RX ring\n"); } - netbench_record_event_simple(nb, RE_PBUF_REPLACE, ts); + //netbench_record_event_simple(nb, RE_PBUF_REPLACE, ts); } static void bfeth_input_handler(void *data, uint64_t pbuf_id, uint64_t paddr, -- 1.7.2.5