From owner-freebsd-stable@freebsd.org Tue Feb 2 20:44:53 2016 Return-Path: Delivered-To: freebsd-stable@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 4EC93A98BC9 for ; Tue, 2 Feb 2016 20:44:53 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 3A960B17 for ; Tue, 2 Feb 2016 20:44:53 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: by mailman.ysv.freebsd.org (Postfix) id 3A2F9A98BC8; Tue, 2 Feb 2016 20:44:53 +0000 (UTC) Delivered-To: stable@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 39C7AA98BC7 for ; Tue, 2 Feb 2016 20:44:53 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) (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 EDBC0B16 for ; Tue, 2 Feb 2016 20:44:52 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from slw by zxy.spb.ru with local (Exim 4.86 (FreeBSD)) (envelope-from ) id 1aQhod-0000cc-6E; Tue, 02 Feb 2016 23:44:47 +0300 Date: Tue, 2 Feb 2016 23:44:47 +0300 From: Slawa Olhovchenkov To: Luigi Rizzo Cc: Adrian Chadd , "stable@freebsd.org" Subject: Re: 82576 + NETMAP + VLAN Message-ID: <20160202204446.GQ88527@zxy.spb.ru> References: <20151018185639.GF42243@zxy.spb.ru> <20151018210049.GT6469@zxy.spb.ru> <20151022163519.GF6469@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Feb 2016 20:44:53 -0000 On Thu, Oct 22, 2015 at 11:24:53AM -0700, Luigi Rizzo wrote: > On Thu, Oct 22, 2015 at 11:12 AM, Adrian Chadd wrote: > > On 22 October 2015 at 09:35, Slawa Olhovchenkov wrote: > >> On Sun, Oct 18, 2015 at 07:45:52PM -0700, Adrian Chadd wrote: > >> > >>> Heh, file a bug with luigi; it should be defined better inside netmap itself. > >> > >> I am CC: luigi. > >> > >> Next question: do kevent RX/TX sync? > >> In my setup I am need to manual NIOCTXSYNC/NIOCRXSYNC. > > > > Hi, > > > > Nope. kqueue() doesn't do the implicit sync like poll() does; it's > > just the notification path. > > actually not. When the file descriptor is registered there > is an implicit sync, and there is another one when an event > is posted for the file descriptor. > > unless there are bugs, of course. I found strange behaivor: 1. open netmap and register in main thread 2. kevent register in different thread 3. result: got event by kevent but no ring sinc (all head,tail,cur still 0). Is this normal? Or is this bug? open and registering netmap in same thread as kevent resolve this.