Date: Mon, 27 Jun 2016 12:49:12 GMT From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305589 - soc2016/vincenzo/head/sys/dev/netmap Message-ID: <201606271249.u5RCnC5J081673@socsvn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vincenzo Date: Mon Jun 27 12:49:12 2016 New Revision: 305589 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305589 Log: freebsd: ptnet_transmit: recheck ring->tail only when necessary 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 Mon Jun 27 12:48:55 2016 (r305588) +++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c Mon Jun 27 12:49:12 2016 (r305589) @@ -1231,12 +1231,12 @@ * freed up some, by reading hwcur and hwtail from * the CSB. */ ptnet_sync_tail(ptring, kring); - } - if (head == ring->tail) { - /* Still no slots available, let's stop and wait - * for interrupts. */ - break; + if (head == ring->tail) { + /* Still no slots available, let's stop and + * wait for interrupts. */ + break; + } } m = drbr_peek(ifp, pq->bufring);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606271249.u5RCnC5J081673>