From owner-freebsd-net@freebsd.org Fri Mar 17 10:50:37 2017 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 688F9D0B39C for ; Fri, 17 Mar 2017 10:50:37 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mx0.gentlemail.de (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0739B1E59 for ; Fri, 17 Mar 2017 10:50:36 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [IPv6:2a00:e10:2800::a135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v2HAoZVo024689 for ; Fri, 17 Mar 2017 11:50:35 +0100 (CET) (envelope-from freebsd@omnilan.de) Received: from titan.inop.mo1.omnilan.net (titan.inop.mo1.omnilan.net [IPv6:2001:a60:f0bb:1::3:1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mh0.gentlemail.de (Postfix) with ESMTPSA id F02EC55F; Fri, 17 Mar 2017 11:50:34 +0100 (CET) Message-ID: <58CBBF7A.8050604@omnilan.de> Date: Fri, 17 Mar 2017 11:50:34 +0100 From: Harry Schmalzbauer Organization: OmniLAN User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; de-DE; rv:1.9.2.8) Gecko/20100906 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: "freebsd-net@freebsd.org" Subject: Re: Are ./valte-ctl and ./bridge friends or competitors? References: <58CBA727.3040108@omnilan.de> In-Reply-To: <58CBA727.3040108@omnilan.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [IPv6:2a00:e10:2800::a130]); Fri, 17 Mar 2017 11:50:35 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: ; Sender-helo: mh0.gentlemail.de; ) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2017 10:50:37 -0000 Bezüglich Harry Schmalzbauer's Nachricht vom 17.03.2017 10:06 (localtime): > Hello, > > I'm still having problems understanding netmap(4) and would highly > appreciate brief help. > > I'm running stable/11. I'd like to replace if_bridge(4) with netmap(4), > because virtio-net chops jumbu frames > (https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215737) and > if_bridge(4) requires members to have the same mtu. > > I'm creating vmnet0 (tap(4)) and vale0 with an physical (keeping host > stack usage) port: > ifconfig create vmnet0 > ./vale-ctl -h vale0:igb0 > ./vale-ctl -a vale0:vmnet0 > which results in > bdg_ctl [149] bridge:0 port:0 vale0:vlegn > bdg_ctl [149] bridge:0 port:1 vale0:vlegn^ > bdg_ctl [149] bridge:0 port:2 vale0:vmnet0 The above is wrong regarding bhyve(8) usage. For the records, and please correct me somone if I'm wrong: byhve(8) has some kind of native netmap(4) implementation, so one mustn't use if_tap(4) (vmnet), but simply a vale name (e.g. 'bhyve … -s 5,virtio-net,vale0:guest1 …' instead of '… -s 5,e1000,vmnet0 …') The physical interface connected to the vale switch must be put into promisc mode! No idea about the need to disable any offloading functions, since I don't know how it's implemented… Thanks, -harry P.S.: Still don't understand the basic difference between ./bridge and ./vale-ctl