From owner-freebsd-net@FreeBSD.ORG Wed Oct 30 01:43:23 2013 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 1381C552; Wed, 30 Oct 2013 01:43:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-qc0-x230.google.com (mail-qc0-x230.google.com [IPv6:2607:f8b0:400d:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A4D73290E; Wed, 30 Oct 2013 01:43:22 +0000 (UTC) Received: by mail-qc0-f176.google.com with SMTP id s19so440471qcw.21 for ; Tue, 29 Oct 2013 18:43:21 -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=D0YUnNrTReQQQDH3znp0Xh5/TZKggRchWybc/mEmT8Y=; b=zNb9G375f3L6FybkPfedwnwZliOQsx0NqkUwu/HqUOzcGjLgDTopLVmnn7cjWJLpic Th21QNzAag3rcve/U3HZgSCnV6PvuCG2rj6Vr5cVELlTUTeJ4eGDTAcFHd8Oh7+zz41S fp6Zg86n5MiqrqCCiZnVBDdsq/cs/L+Se3Ebh5jOyJPQxFiKv/Q1YgNRV1cvc2c0G/Re vItz6M+AYGOuJRvNJyLiYO17fP+I1/EPtxQqUCh036AMh7N5Ffmf3cZbWkngVck98eI7 kmI5XUNykJB6BkrES6zSlbxsXHe4Ikn/C0vC16iPL0lsrq+IP/k9i0zYEr/xwPZXfWNM qeOA== MIME-Version: 1.0 X-Received: by 10.224.37.198 with SMTP id y6mr4756827qad.104.1383097401726; Tue, 29 Oct 2013 18:43:21 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.207.66 with HTTP; Tue, 29 Oct 2013 18:43:21 -0700 (PDT) In-Reply-To: <5270462B.8050305@freebsd.org> References: <40948D79-E890-4360-A3F2-BEC34A389C7E@lakerest.net> <526FFED9.1070704@freebsd.org> <52701D8B.8050907@freebsd.org> <527022AC.4030502@FreeBSD.org> <527027CE.5040806@freebsd.org> <5270309E.5090403@FreeBSD.org> <5270462B.8050305@freebsd.org> Date: Tue, 29 Oct 2013 18:43:21 -0700 X-Google-Sender-Auth: H-5o5ybupz8gIqhONyo4Y6qTIv4 Message-ID: Subject: Re: MQ Patch. From: Adrian Chadd To: Andre Oppermann Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-net@freebsd.org" , Luigi Rizzo , Navdeep Parhar , Randall Stewart X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Oct 2013 01:43:23 -0000 Hi, We can't assume the hardware has deep queues _and_ we can't just hand packets to the DMA engine. Why? Because once you've pushed it into the transmit ring, you can't guarantee / impose any ordering on things. You can't guarantee that you can abort a frame that has been queued because it now breaks the queue rules. That's why we don't want to just have a light wrapper around hardware transmit queues. We give up way too much useful control. I've seen this both when doing wifi (where I absolutely have to have per-node, per-TID queues, far before it hits the hardware) and doing WAN style optimisation, where I want to ensure I only queue a handful of milliseconds of frames to the hardware so I can ensure I can hit QoS requirements (eg there being a large amount of bulk data, then I want to inject some voice traffic that should go out sooner..) Thanks, -adrian