Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Jun 2017 10:41:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 219703] System freeze when creating bridge over vlan over lagg over ixgbe
Message-ID:  <bug-219703-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219703

            Bug ID: 219703
           Summary: System freeze when creating bridge over vlan over lagg
                    over ixgbe
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: topical@gmx.net

I have an Intel 82599ES card, using standard ixgbe driver (no special
parameters). The two ports are combined into a lagg. For virtual machines, a
vlan is created on the lagg. This vlan is connected to a bridge. behyve
machines shall be connected to this bridge. In my case, there are 3 vlans a=
nd
bridges, but the problem occurs already on creating the 1st vlan/bridge.

The network setup is:

cloned_interfaces=3D"lagg0"
ifconfig_ix0=3D"up mtu 9000 -lro"
ifconfig_ix1=3D"up mtu 9000 -lro"
ifconfig_lagg0=3D"laggproto lacp laggport ix0 laggport ix1 10.0.10.17/24"
defaultrouter=3D"10.0.10.1"

vm-bhyve creates bridges according to following config:

switch_list=3D"br4 br7 br8"
vlan_br4=3D"4"
ports_br4=3D"lagg0"
vlan_br7=3D"7"
ports_br7=3D"lagg0"
vlan_br8=3D"8"
ports_br8=3D"lagg0"

As soon as vm-bhyve create the first bridge and vlan, the system freezes ha=
rd.
Sadly, installing a debug kernel doesn't help; the magic sysrequest key
combination is ignored.

I extracted the network commands executed by vm-bhyve startup script:

ifconfig bridge create
ifconfig bridge0 description something up
ifconfig vlan create
<-- system freezes here -->
ifconfig vlan0 vlandev lagg0 vlan 4 description something up
ifconfig bridge0 addm vlan0

Inserting "sleep 1" after "ifconfig vlan create" seems to fix it. Even minor
delays (e.g. a simple echo to the EFI console after each command) seem to f=
ix
it. Without the delay, changes are about 90% that the system freezes.

This problem seems to occur only with the ixgbe driver. In previous tests w=
ith
a NetXtreme II BCM57810 card and the bxe driver everything worked fine, tho=
ugh
the bxe driver seems to lack hardware vlan support which was the reason to
replace it with the Intel card.

It looks like a nasty race condition and I'm not really happy with patching
vm-bhyve, hoping that the (blindly inserted) workaround does the trick.=20

The server is a DL380 Gen9. The network cards is an off the shelf Intel 825=
99ES
(i.e. not a HP branded one).

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-219703-8>