From owner-freebsd-net@FreeBSD.ORG Mon Mar 24 17:19:47 2014 Return-Path: Delivered-To: freebsd-net@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 ESMTPS id D4819F55 for ; Mon, 24 Mar 2014 17:19:47 +0000 (UTC) Received: from smtp1.bushwire.net (f5.bushwire.net [199.48.133.46]) by mx1.freebsd.org (Postfix) with SMTP id 83EA2ECA for ; Mon, 24 Mar 2014 17:19:46 +0000 (UTC) Received: (qmail 31375 invoked by uid 1001); 24 Mar 2014 17:19:42 -0000 Delivered-To: qmda-intercept-freebsd-net@freebsd.org DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=s384; d=romeo.emu.st; b=hCvzz7J6G903AkMw0PdVqn0yKAd23+mysYMjDk/GvgBfIXUhflH1voQCPgk/Z7pp; Comments: DomainKeys? See http://en.wikipedia.org/wiki/DomainKeys DomainKey-Trace-MD: h=13; b=22; l=C18R71D32M65F38T27S68R65?69M17C39C27I81; Comments: QMDA 0.3 Received: (qmail 31368 invoked by uid 1001); 24 Mar 2014 17:19:41 -0000 Date: 24 Mar 2014 17:19:41 +0000 Message-ID: <20140324171941.31367.qmail@f5-external.bushwire.net> From: "Mark Delany" To: freebsd-net@freebsd.org Subject: Re: How to make netmap NS_FORWARD work with NR_REG_ONE_NIC? References: <20140324154522.30664.qmail@f5-external.bushwire.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 17:19:47 -0000 > > While good for performance, it unfortunately appears that NS_FORWARD > > does not work in this mode - presumably because NR_REG_ONE_NIC doesn't > > include the host ring. > > > > correct, this is not a supported mode at the moment. > If you want to implement it you should do it into netmap_poll() > and create another constant NS_REG_ONE_NIC_SW for the new mode. Thanks for the clarification. Unfortunately I don't think my skills are up to hacking features into the netmap module. Is my best user-space alternative much as I described? > > Do I have to register an independent handler with NR_REG_SW_NIC and > > have the h/w ring handlers synchronize with it? If so, I also presume > > the NR_REG_SW_NIC handler has to manage transfers in both directions, > > yes? Or is there a better way in user space? Mark.