From owner-freebsd-stable@freebsd.org Thu Oct 22 18:24:56 2015 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 B6F9EA1C8F2 for ; Thu, 22 Oct 2015 18:24:56 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) 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 958AF1211 for ; Thu, 22 Oct 2015 18:24:56 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 927CDA1C8F1; Thu, 22 Oct 2015 18:24:56 +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 92124A1C8F0 for ; Thu, 22 Oct 2015 18:24:56 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 17DB51210 for ; Thu, 22 Oct 2015 18:24:56 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: by lfaz124 with SMTP id z124so58178751lfa.1 for ; Thu, 22 Oct 2015 11:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=n+YD3hhyAq3JdysqVnVkrOwV1tZKuHnrWF0hEqM6NA0=; b=r+pCt0uYWEW3VZ3lCgPscb/CCP/EC10IPjIUS3dZo2vS8MU7uS3pBagwpJ9fccJ5Yc 9e9bZZdb7L3U4Ov0mHMAq8CGVnvm6jSHzK8DMlnBPKJImwR6QbAV+1ZkcSHVBAPGdr23 L8WpTwPay4+owJo5X4ytQyh7sYK4rrh9edPaXKTNsXjAFRiceFpf7nYgd2vluY5bDAh2 bVBgpjTXxmwE7zeJxNzETmnS75hXJUKyWD8ZoptAEd+B+kV4k6F5U8vdeQHXj0Krdus1 nhyZzy/AfUXSx7dmFTZYQqFxBbi+nvbVL1i5S9UDlQWIpAgduUdurLkDbpIytPXMTImw OHWQ== MIME-Version: 1.0 X-Received: by 10.25.152.70 with SMTP id a67mr139188lfe.100.1445538293653; Thu, 22 Oct 2015 11:24:53 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.177.4 with HTTP; Thu, 22 Oct 2015 11:24:53 -0700 (PDT) In-Reply-To: References: <20151018185639.GF42243@zxy.spb.ru> <20151018210049.GT6469@zxy.spb.ru> <20151022163519.GF6469@zxy.spb.ru> Date: Thu, 22 Oct 2015 11:24:53 -0700 X-Google-Sender-Auth: ZiG3dKtlA173aAxK-xT8gqrHW04 Message-ID: Subject: Re: 82576 + NETMAP + VLAN From: Luigi Rizzo To: Adrian Chadd Cc: Slawa Olhovchenkov , "stable@freebsd.org" Content-Type: text/plain; charset=UTF-8 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: Thu, 22 Oct 2015 18:24:56 -0000 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. cheers luigi -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------