From owner-freebsd-current@FreeBSD.ORG Fri Aug 9 00:18: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 042A5523; Fri, 9 Aug 2013 00:18:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [IPv6:2a00:1450:400c:c05::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 3B0922D8E; Fri, 9 Aug 2013 00:18:04 +0000 (UTC) Received: by mail-wi0-f176.google.com with SMTP id f14so1156256wiw.9 for ; Thu, 08 Aug 2013 17:18: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:message-id:subject :from:to:cc:content-type; bh=ryT471CEcueqAct/PHx4mW01uzOKrrCQHiEFTpaBDS4=; b=HDjHBg6Q/yR76LCIZibAKP+dua5gRdpz229xpPRlYsXNPhX4rzeOumvgg8KEaN/Kb3 7xlNxCFbcejThOrflmubwj6DTfFcr/faEfWuojzZRH5oGE3Iu8gS2I7TrwIxMpv5MwbY Z6FpDY4K0IhgHE8Cd447Gvx4GWcKhZaiNPYCPD4zT9zz4UhqGAUwRgFPh4iljjgKaej7 JFaDJDprSl9Z4URfJ5L3F8Tl0dmpS88qbOm/HWnqs4q4OhDrmEoJb/lWPdqrqs6GSaog nBu5dtF1revVZCWW5aRT3OdXfdHa0KS9JrC8Qg9vVONSssK943I2GWhH5ysgwNRx3hL6 CoMg== MIME-Version: 1.0 X-Received: by 10.180.20.116 with SMTP id m20mr725711wie.46.1376007482502; Thu, 08 Aug 2013 17:18:02 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.217.116.136 with HTTP; Thu, 8 Aug 2013 17:18:02 -0700 (PDT) In-Reply-To: <3BFB5B13-78C5-47E0-81B8-29A03A0136DF@yahoo.com> References: <20130805082307.GA35162@onelab2.iet.unipi.it> <2034715395.855.1375714772487.JavaMail.root@daemoninthecloset.org> <51FFDD1E.1000206@FreeBSD.org> <3BFB5B13-78C5-47E0-81B8-29A03A0136DF@yahoo.com> Date: Thu, 8 Aug 2013 17:18:02 -0700 X-Google-Sender-Auth: qiNC1bW8Lrz-_F72T2yYp9CMzzQ Message-ID: Subject: Re: [net] protecting interfaces from races between control and data ? From: Adrian Chadd To: Scott Long Content-Type: text/plain; charset=ISO-8859-1 Cc: current@freebsd.org, Bryan Venteicher , Navdeep Parhar , net@freebsd.org, Giuseppe Lettieri , Luigi Rizzo , Warner Losh 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: Fri, 09 Aug 2013 00:18:05 -0000 .. and it's not just about "saturate the port" with traffic. It's also about "what happens if I shut down the MAC whilst I'm in the process of programming in new RX/TX descriptors?" The ath(4) driver had a spectacular behaviour where if you mess things up the wrong way it will quite happily DMA crap all over the memory of your running system, leading to quite hilarious bugs. -adrian