svn commit: r281406 - head/sys/dev/netmap
Rui Paulo
rpaulo at FreeBSD.org
Sat Apr 11 06:20:47 UTC 2015
Author: rpaulo
Date: Sat Apr 11 06:20:46 2015
New Revision: 281406
URL: https://svnweb.freebsd.org/changeset/base/281406
Log:
netmap: improve the netmap attach message on FreeBSD.
MFC after: 1 week
Modified:
head/sys/dev/netmap/netmap.c
Modified: head/sys/dev/netmap/netmap.c
==============================================================================
--- head/sys/dev/netmap/netmap.c Sat Apr 11 05:38:07 2015 (r281405)
+++ head/sys/dev/netmap/netmap.c Sat Apr 11 06:20:46 2015 (r281406)
@@ -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:
More information about the svn-src-head
mailing list