Date: Fri, 17 Jun 2016 16:25:51 GMT From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305300 - soc2016/vincenzo/head/sys/dev/netmap Message-ID: <201606171625.u5HGPpYb026718@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vincenzo Date: Fri Jun 17 16:25:50 2016 New Revision: 305300 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305300 Log: freebsd: ptnet_rx_eof: add optional debug print in the work loop Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Modified: soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c ============================================================================== --- soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jun 17 16:24:56 2016 (r305299) +++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Fri Jun 17 16:25:50 2016 (r305300) @@ -1183,6 +1183,9 @@ goto next; } + DBG(device_printf(sc->dev, "%s: h %u t %u rcv frame len %u\n", + __func__, head, ring->tail, nmbuf_len)); + /* We use m_getcl() to allocate an mbuf with standard * cluster size (MCLBYTES). In the future we could use m_getjcl() * to choose different sizes. */ @@ -1204,7 +1207,6 @@ PTNET_Q_UNLOCK(pq); (*ifp->if_input)(ifp, m); PTNET_Q_LOCK(pq); - device_printf(sc->dev, "%s: if_input(%p)\n", __func__, m); next: head = nm_next(head, lim); budget--;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606171625.u5HGPpYb026718>