socsvn commit: r305589 - soc2016/vincenzo/head/sys/dev/netmap
vincenzo at FreeBSD.org
vincenzo at FreeBSD.org
Mon Jun 27 12:49:13 UTC 2016
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);
More information about the svn-soc-all
mailing list