From owner-freebsd-net@FreeBSD.ORG Sat Jan 3 12:19:54 2015 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EB328C21; Sat, 3 Jan 2015 12:19:53 +0000 (UTC) Received: from forward-corp1m.cmail.yandex.net (forward-corp1m.cmail.yandex.net [5.255.216.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 651D71BBF; Sat, 3 Jan 2015 12:19:52 +0000 (UTC) Received: from smtpcorp1m.mail.yandex.net (smtpcorp1m.mail.yandex.net [77.88.61.150]) by forward-corp1m.cmail.yandex.net (Yandex) with ESMTP id DDB29603B4; Sat, 3 Jan 2015 15:19:47 +0300 (MSK) Received: from smtpcorp1m.mail.yandex.net (localhost [127.0.0.1]) by smtpcorp1m.mail.yandex.net (Yandex) with ESMTP id 9ACFD2CA0302; Sat, 3 Jan 2015 15:19:47 +0300 (MSK) Received: from unknown (unknown [2a02:6b8:0:401:222:4dff:fe50:cd2f]) by smtpcorp1m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2ebkHvFuso-JllO1SxE; Sat, 3 Jan 2015 15:19:47 +0300 (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1420287587; bh=/mCKT7rNx+JrAPor6s1Jgk7r0EX400dcpyr0k1U8jR0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=hcyDFzfn+sEo3qW8eGLr2glDcgOJ3fJw+F5MCRiMvq817u17lgAB/rcHms+P6PS4o vxbRYwi3ZSpVv613m3+bLerHGGaOHP7ff4kDJyab93gH34HHCXyNSTb9M/4O03REd+ dwQwvnHZuN5Cla0P5XYVMDnkJXHlH81MN0HqCV48= Authentication-Results: smtpcorp1m.mail.yandex.net; dkim=pass header.i=@yandex-team.ru Message-ID: <54A7DE26.6020501@yandex-team.ru> Date: Sat, 03 Jan 2015 15:18:46 +0300 From: "Alexander V. Chernikov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Luigi Rizzo Subject: Re: cxgbe and netmap References: <54A6BFFE.5080103@yandex-team.ru> <20150102165334.GB68836@onelab2.iet.unipi.it> In-Reply-To: <20150102165334.GB68836@onelab2.iet.unipi.it> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , Navdeep Parhar X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jan 2015 12:19:54 -0000 On 02.01.2015 19:53, Luigi Rizzo wrote: > On Fri, Jan 02, 2015 at 06:57:50PM +0300, Alexander V. Chernikov wrote: >> Hello list! >> >> FreeBSD has netmap support for chelsio T5 cards, which is amazing. >> The great thing about implementation is that you can play with >> traffic-generating applications without affecting "main" OS interface, >> which has always been a problem for Intel cards. >> However, this approach (having additional netmap-only ifp) turns to be a >> bit problematic for netmap-based networking elements participating in >> routing. >> >> In Intel case you can configure all your interfaces, run routing daemon, >> run netmap application and punt all to-host traffic to kernel via host >> pipes. > for clarity, please call this "host netmap PORT", not pipe, as the > latter can be confused with dummynet pipes. Ok, understood. > >> It looks like I can't do this using current implementation: mac >> addresses are different for main/netmap interfaces so I can't run >> routing daemon on main interface (or sub-interfaces). >> I also can't run routing daemon on top of ncxgbe* interface since it >> appears to ignore non-netmap-derived traffic.. > Maybe navdeep did not implement the host side for ncxgbe ? > This should be a relatively trivial thing to do. > > Otherwise, for the time being, you could try the following hack: > > - create a tap interface, say tap*, and give it the same MAC as ncxgbe*. > You will use only the host port for tap* > > - open both tap* and ncxgbe* in netmap mode, make sure to set the same > flags, mode (promisc etc.), mtu on both; > > - run the routing daemon on top of tap* > > - use the tap*'s host netmap port to send up traffic coming from ncxgbe* > directed to the host (and vice versa, inject netmap packets coming > from tap*'s host netmap port into ncxgbe*'s netmap rings. Oh. vlans on top of tap inteface :) Ok, thanks for the suggestion, I'll try to do this. > > cheers > luigi > >> Is it possible to make ncxgbe* interfaces behave more like ordinary ones? >> >> _______________________________________________ >> freebsd-net@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-net >> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"