From owner-freebsd-current@FreeBSD.ORG Mon Aug 5 20:23:05 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 4C0C8301; Mon, 5 Aug 2013 20:23:05 +0000 (UTC) (envelope-from rizzo.unipi@gmail.com) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 313AF2630; Mon, 5 Aug 2013 20:23:04 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id fq13so2423046lab.39 for ; Mon, 05 Aug 2013 13:23:02 -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 :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HYYcpMGp/JYLBrFL02NsZk+b146MTXEg1cQPplrFqPI=; b=tooPMRzea4HMOktJekdye0HM9KRKrxFRIN968Dtk5xkvdnjAZHxnp+GmjU7ZBYGyPr BLWzD/hcFZdnPXgHFUSTDK39MOfu6ULZwerI6aJQt41WEhM/Sw1LWJx0Bck74Z1+CM3y nhQ3A4j6BYI8VQg2UA0Cc+XIgV6E2/3gR6EAdWBtKijVvPByvNUngj7r2RsoynI7DBZ6 ERfDBvjvoLMkDBMFdGODG1UaUQnltSkNUsfwbtjvk+8JnTLfg2vRvkpvlufAyIy5Njh0 SgQULvXK1/8olwd1NDxSAUd0GT27FOfFTrn9WnI0KVk1go2vrCYBYkb/OU68gjanH4oU pBjg== MIME-Version: 1.0 X-Received: by 10.112.5.199 with SMTP id u7mr9634813lbu.67.1375734182140; Mon, 05 Aug 2013 13:23:02 -0700 (PDT) Sender: rizzo.unipi@gmail.com Received: by 10.114.200.165 with HTTP; Mon, 5 Aug 2013 13:23:02 -0700 (PDT) In-Reply-To: References: <20130805082307.GA35162@onelab2.iet.unipi.it> <2034715395.855.1375714772487.JavaMail.root@daemoninthecloset.org> <51FFDD1E.1000206@FreeBSD.org> Date: Mon, 5 Aug 2013 22:23:02 +0200 X-Google-Sender-Auth: R1Vl7ShBkSaL0gyIsijJhuAdlC0 Message-ID: Subject: Re: [net] protecting interfaces from races between control and data ? From: Luigi Rizzo To: Jack Vogel Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: Adrian Chadd , FreeBSD current mailing list , Bryan Venteicher , Navdeep Parhar , net@freebsd.org, Giuseppe Lettieri X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 20:23:05 -0000 On Mon, Aug 5, 2013 at 8:46 PM, Jack Vogel wrote: > What do you think about this change? > > looks good to me. but there is no need to rush, especially it will be nice if all interested parties agree on an approach and possibly even naming. I do not have any specific test case but the problem came up when an interface is in netmap mode and dispatches to the in-kernel VALE switch, and userland tries to move the interface back to regular mode. cheers luigi