From 8419755d4c9a2b15b0f7ec12c24927aae5def405 Mon Sep 17 00:00:00 2001 From: Jakub Grajciar Date: Thu, 16 Nov 2017 14:02:49 +0100 Subject: libmemif: unmask head/tail pointers fix, additional ring info in memif_queue_details_t Change-Id: I1dbf91c2a1575d5a82af70bfccdd990310323a8c Signed-off-by: Jakub Grajciar --- extras/libmemif/examples/icmp_responder-epoll/main.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'extras/libmemif/examples/icmp_responder-epoll') diff --git a/extras/libmemif/examples/icmp_responder-epoll/main.c b/extras/libmemif/examples/icmp_responder-epoll/main.c index 80a7f7e79fc..634e180996f 100644 --- a/extras/libmemif/examples/icmp_responder-epoll/main.c +++ b/extras/libmemif/examples/icmp_responder-epoll/main.c @@ -185,6 +185,10 @@ print_memif_details () { printf ("\t\tqueue id: %u\n", md.rx_queues[e].qid); printf ("\t\tring size: %u\n", md.rx_queues[e].ring_size); + printf ("\t\tring rx mode: %s\n", + md.rx_queues[e].flags ? "polling" : "interrupt"); + printf ("\t\tring head: %u\n", md.rx_queues[e].head); + printf ("\t\tring tail: %u\n", md.rx_queues[e].tail); printf ("\t\tbuffer size: %u\n", md.rx_queues[e].buffer_size); } printf ("\ttx queues:\n"); @@ -192,6 +196,10 @@ print_memif_details () { printf ("\t\tqueue id: %u\n", md.tx_queues[e].qid); printf ("\t\tring size: %u\n", md.tx_queues[e].ring_size); + printf ("\t\tring rx mode: %s\n", + md.tx_queues[e].flags ? "polling" : "interrupt"); + printf ("\t\tring head: %u\n", md.tx_queues[e].head); + printf ("\t\tring tail: %u\n", md.tx_queues[e].tail); printf ("\t\tbuffer size: %u\n", md.tx_queues[e].buffer_size); } printf ("\tlink: "); @@ -1213,7 +1221,7 @@ user_input_handler () } else { - DBG ("unknown command: %s", ui); + INFO ("unknown command: %s", ui); goto done; } -- cgit 1.2.3-korg