From owner-svn-soc-all@freebsd.org Mon Jun 27 12:49:23 2016 Return-Path: Delivered-To: svn-soc-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6E866B72B9E for ; Mon, 27 Jun 2016 12:49:23 +0000 (UTC) (envelope-from vincenzo@FreeBSD.org) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6230C226C for ; Mon, 27 Jun 2016 12:49:23 +0000 (UTC) (envelope-from vincenzo@FreeBSD.org) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.15.2/8.15.2) with ESMTP id u5RCnNN8081924 for ; Mon, 27 Jun 2016 12:49:23 GMT (envelope-from vincenzo@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.15.2/8.15.2/Submit) id u5RCnMLF081858 for svn-soc-all@FreeBSD.org; Mon, 27 Jun 2016 12:49:22 GMT (envelope-from vincenzo@FreeBSD.org) Date: Mon, 27 Jun 2016 12:49:22 GMT Message-Id: <201606271249.u5RCnMLF081858@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to vincenzo@FreeBSD.org using -f From: vincenzo@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r305590 - soc2016/vincenzo/head/sys/dev/netmap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jun 2016 12:49:23 -0000 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). */