Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Mar 2017 10:06:47 +0100
From:      Harry Schmalzbauer <freebsd@omnilan.de>
To:        "freebsd-net@freebsd.org" <freebsd-net@FreeBSD.org>
Subject:   Are ./valte-ctl and ./bridge friends or competitors?
Message-ID:  <58CBA727.3040108@omnilan.de>

next in thread | raw e-mail | index | archive | help
 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58CBA727.3040108>