Date: Sat, 18 Apr 2015 21:22:27 +0000 (UTC) From: Rui Paulo <rpaulo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r281706 - stable/10/sys/dev/netmap Message-ID: <201504182122.t3ILMRNK080489@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rpaulo Date: Sat Apr 18 21:22:26 2015 New Revision: 281706 URL: https://svnweb.freebsd.org/changeset/base/281706 Log: MFC r281406: netmap: improve the netmap attach message on FreeBSD. Modified: stable/10/sys/dev/netmap/netmap.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/netmap/netmap.c ============================================================================== --- stable/10/sys/dev/netmap/netmap.c Sat Apr 18 21:00:36 2015 (r281705) +++ stable/10/sys/dev/netmap/netmap.c Sat Apr 18 21:22:26 2015 (r281706) @@ -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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504182122.t3ILMRNK080489>