From 692e8bf36103763f8093c7e0d3bf7b44066178fa Mon Sep 17 00:00:00 2001 From: rpaulo Date: Sat, 11 Apr 2015 06:20:46 +0000 Subject: [PATCH] netmap: improve the netmap attach message on FreeBSD. MFC after: 1 week --- sys/dev/netmap/netmap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/netmap/netmap.c b/sys/dev/netmap/netmap.c index 5401df384914..11229ccf6b87 100644 --- a/sys/dev/netmap/netmap.c +++ b/sys/dev/netmap/netmap.c @@ -2710,11 +2710,17 @@ netmap_attach(struct netmap_adapter *arg) } #endif /* linux */ +#ifdef __FreeBSD__ + if_printf(ifp, "netmap queues/slots: TX %d/%d, RX %d/%d\n", + hwna->up.num_tx_rings, hwna->up.num_tx_desc, + hwna->up.num_rx_rings, hwna->up.num_rx_desc); +#else D("success for %s tx %d/%d rx %d/%d queues/slots", hwna->up.name, hwna->up.num_tx_rings, hwna->up.num_tx_desc, hwna->up.num_rx_rings, hwna->up.num_rx_desc ); +#endif return 0; fail: