From owner-freebsd-net@FreeBSD.ORG Sun Jun 12 06:48:47 2011 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 60CBC106564A; Sun, 12 Jun 2011 06:48:47 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 22BF58FC16; Sun, 12 Jun 2011 06:48:46 +0000 (UTC) Received: by pzk5 with SMTP id 5so2606352pzk.17 for ; Sat, 11 Jun 2011 23:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=GwFqc/34PkgCbb96j5VF2kBem3VrdTepkpJlVvM3a+o=; b=cAgA6fn58ZkShBR4HHx2TYK3PE+ag/XCP0EdQ4bsz5+A23kuZqHPSsKKGL1acMpa6s lnSRWIjhl1KXuJOxtsOis+D8NTryWT0wWCSTe2drcKHlpIFt55NX/B1FhhEMycoSIzn9 HDFgzBi9w7xJkrOLn+qdsohHIn0gVo8bprJ+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; b=f+fS1jfQ7pYgaT9zpyEz/7AjIRcZC/MZ6uSqpWoz6jduStb3ibRAXaiEVJ464G+HSW 6cjhqljrGqRmlonnxkl9tXlEP4Al38P7gz9zWktCJVuZ2RctvFyoxFj6K5vAOFbMHnma 7s3lHDlrx6SEKhaeo8fEVf2wLg5+rFlZ5bxOc= Received: by 10.142.231.7 with SMTP id d7mr609005wfh.216.1307859740278; Sat, 11 Jun 2011 23:22:20 -0700 (PDT) Received: from itx (c-107-3-142-221.hsd1.ca.comcast.net [107.3.142.221]) by mx.google.com with ESMTPS id l10sm4638001wfk.9.2011.06.11.23.22.17 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 11 Jun 2011 23:22:18 -0700 (PDT) Date: Sat, 11 Jun 2011 23:22:11 -0700 From: Navdeep Parhar To: "K. Macy" Message-ID: <20110612062211.GA31301@itx> Mail-Followup-To: "K. Macy" , freebsd-net@freebsd.org References: <20110611181352.GA67777@onelab2.iet.unipi.it> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-net@freebsd.org Subject: Re: FreeBSD I/OAT (QuickData now?) driver 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, 12 Jun 2011 06:48:47 -0000 On Sat, Jun 11, 2011 at 08:07:18PM +0200, K. Macy wrote: > > I'd really encourage people to look at the code (e.g. the pkt-gen.c > > program, which is part of the archive) so you can see how easy it > > is to use. > > Provided one has a dedicated interface. Not necessarily. The T4 ASIC has more than 1K rx queues and ~64K tx queues, which can be created (and destroyed) on the fly and combined under a "virtual interface." You could have scores of such virtual interfaces, each of which would represent an ifnet to the kernel. If there's interest, cxgbe(4) can grow support for virtual interfaces and netmap tx/rx queues that come and go as required. Untrusted rx queues are allowed too - privileged code associates memory regions with an rx queue, untrusted code is allowed direct access to the hardware ring but can only specify offsets within the allowed memory region. Regards, Navdeep