Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Jun 2016 12:49:22 GMT
From:      vincenzo@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r305590 - soc2016/vincenzo/head/sys/dev/netmap
Message-ID:  <201606271249.u5RCnMLF081858@socsvn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vincenzo
Date: Mon Jun 27 12:49:22 2016
New Revision: 305590
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=305590

Log:
   freebsd: ptnet_rx_eof: fix check for CSB update

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:49:12 2016	(r305589)
+++ soc2016/vincenzo/head/sys/dev/netmap/if_ptnet.c	Mon Jun 27 12:49:22 2016	(r305590)
@@ -1387,7 +1387,7 @@
 		PTNET_Q_LOCK(pq);
 	}
 
-	if (budget != PTNET_RX_BUDGET) {
+	if (head != ring->head) {
 		/* Some packets have been pushed to the network stack.
 		 * We need to update the CSB to tell the host about the new
 		 * ring->cur and ring->head (RX buffer refill). */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606271249.u5RCnMLF081858>