From owner-freebsd-net@FreeBSD.ORG Sun Sep 23 22:47:15 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 695A616A421 for ; Sun, 23 Sep 2007 22:47:15 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 17A8813C46E for ; Sun, 23 Sep 2007 22:47:15 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so1836726waf for ; Sun, 23 Sep 2007 15:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+dZ9SXbne9IFaDmTF24WejRwA1UKRjI9SeSN72hsHjg=; b=paNy7MIOcWIw1hjjbwu6aNaOSFrRlB13h3urFrDG0JF8mq/Uo3L1MaEGBBFOTrBUDrxYMb9xtCBYM2QXu7PbfLmq6cMcAJIs2Kcwc7HaxqwcpkP3U63QOTla+d7MBDuQwhRWufwGseqgOPKxLU9ojpHYSKbIIIPcx/TPGd3KNRU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d0IazMX2pIvuWuP1DjgA+MpgpP4kIgNDIwDtvqQVSnvDOG9LKac64MTChs604vJFCjL7Err1ZWajZKQ2Ygs+011lVC8/72EX5luCHfpatR7NLh1ezLi272GRS+Egc6qv+v+5gwVcsgwV0XyswBeh46uN6zi6Ej3Ty3cISW0IL2M= Received: by 10.115.55.1 with SMTP id h1mr5616231wak.1190587633970; Sun, 23 Sep 2007 15:47:13 -0700 (PDT) Received: by 10.114.13.15 with HTTP; Sun, 23 Sep 2007 15:47:13 -0700 (PDT) Message-ID: Date: Sun, 23 Sep 2007 15:47:13 -0700 From: "Kip Macy" To: "Darren Reed" In-Reply-To: <46F614F2.4050402@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2a41acea0709221656n4aa62776y488c7f2da262c9f6@mail.gmail.com> <46F614F2.4050402@freebsd.org> Cc: "freebsd-net@freebsd.org" , FreeBSD Current , Jack Vogel Subject: Re: TX Multiqueue? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Sep 2007 22:47:15 -0000 On 9/23/07, Darren Reed wrote: > Kip Macy wrote: > > My ethng branch supports multiple rx and tx queues. > > > > -Kip > > > > What are your plans for how we use/manage/interact with the mutiple > rx/tx queues? The rx hardware queue is determined by the hardware. Different hardware allows for different policies. I just use the stock rss_hash of a crc32 of the 4-tuple in cxgb. I've added a field to the pkthdr which cxgb uses the least significant bits of to determine which outbound queue to use. Its up to the upper layers to determine how to set those bits. One of the changes that is required to take advantaged of this is moving the queues into the driver. I've added a new if_start function to ifnet to take advantage of this. I also have a normal if_start function for backward compatibility. -Kip