From owner-freebsd-net@freebsd.org Fri Mar 17 09:06:52 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 9769DD1073F for ; Fri, 17 Mar 2017 09:06:52 +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 37DD6190E for ; Fri, 17 Mar 2017 09:06:51 +0000 (UTC) (envelope-from freebsd@omnilan.de) Received: from mh0.gentlemail.de (mh0.gentlemail.de [78.138.80.135]) by mx0.gentlemail.de (8.14.5/8.14.5) with ESMTP id v2H96mJ3023292 for ; Fri, 17 Mar 2017 10:06:48 +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 EE2804E2; Fri, 17 Mar 2017 10:06:47 +0100 (CET) Message-ID: <58CBA727.3040108@omnilan.de> Date: Fri, 17 Mar 2017 10:06:47 +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: Are ./valte-ctl and ./bridge friends or competitors? Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Greylist: ACL 119 matched, not delayed by milter-greylist-4.2.7 (mx0.gentlemail.de [78.138.80.130]); Fri, 17 Mar 2017 10:06:48 +0100 (CET) X-Milter: Spamilter (Reciever: mx0.gentlemail.de; Sender-ip: 78.138.80.135; 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 09:06:52 -0000 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 But vmnet0 reports "Status: no carrier". Quoting 4 netmap: The following command attaches an interface and the host stack to a switch: vale-ctl -h vale2:em0 Other netmap clients attached to the same switch can now communicate with the network card or the host. Is vmnet0 not a "netmap client"? How does ./bridge fit here? I guess it's only capable of shurtcuting netmep ports, so not aedequate for my secnario, where I use igb0 for host and netmap (./vale-ctl -h)? Has anyone ever used vale(4) as bridge for connecting bhyve guests? Thanks, -harry