1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-29 16:44:03 +00:00

print 'netmap stack ring full' only in verbose mode.

This commit is contained in:
Luigi Rizzo 2012-05-03 21:16:53 +00:00
parent f7f504c320
commit 5b24837478
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234986

View File

@ -1067,7 +1067,8 @@ netmap_start(struct ifnet *ifp, struct mbuf *m)
kring->nr_hwcur + kring->nr_hwavail, len);
na->nm_lock(ifp, NETMAP_CORE_LOCK, 0);
if (kring->nr_hwavail >= lim) {
D("stack ring %s full\n", ifp->if_xname);
if (netmap_verbose)
D("stack ring %s full\n", ifp->if_xname);
goto done; /* no space */
}
if (len > NETMAP_BUF_SIZE) {