netmap: improve the netmap attach message on FreeBSD.

MFC after:	1 week
This commit is contained in:
Rui Paulo 2015-04-11 06:20:46 +00:00
parent ee95847eed
commit d82f9014fa
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281406

View File

@ -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: