Subject: Re: xen2 and VLANs (again)
To: None <port-xen@netbsd.org>
From: Chris Brookes <cbrookes@gmail.com>
List: port-xen
Date: 12/11/2007 22:47:16
On 11/12/2007, Manuel Bouyer <bouyer@antioche.eu.org> wrote:

> Yes, it's the way to go

Sure enough it works  as planned. I'm very happy with the setup.

> From a quick look at current, it looks like the MTU is hardwired in
> the vr(4) driver. But if you have a patch from openbsd, it shouldn't
> be hard to get it working.


I appeared to just need

sc->vr_ec.ec_capabilities = ETHERCAP_VLAN_MTU;
tmp = ifp->if_mtu + ETHER_HDR_LEN + ETHER_CRC_LEN;
tmp += ETHER_VLAN_ENCAP_LEN;
ifp->if_mtu = tmp;

And it seems to work well. I hesitate to submit a patch because I have
very little confidence in what I've done, particularly since I've only
had it running for 10 minutes