[systemd-bugs] [Bug 76077] systemd-networkd: VLAN on bond fails due to incorrect order of enslavement

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Jun 4 07:21:48 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=76077

--- Comment #5 from Tom Gundersen <teg at jklm.no> ---
Finally got around to looking into this properly. It appears Malte's analysis
in comment #4 is spot on.

The situation is that VLAN's cannot be created on devices that has the feature
NETIF_F_VLAN_CHALLENGED (some feature...) set. Annoyingly that includes empty
bonds (but I don't know why[0]), and I have so far not figured out an elegant
way for us to get notified about when this flag changes.

I think we should do one of two things (preferably both):

1) hook up the feature flag with rtnetlink so we get notified about changes
2) figure out if empty bonds can be made to work with vlans (then the order
will no longer matter).

We could attempt to work around this in networkd by trying to add the VLAN
every time the number of slaves of a bond changes, but that feels too hacky (I
have already applied such hacks only to revert them four times in the past few
months), so I'd really prefer if we could fix this in the kernel.

[0]:
<http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/net/bonding/bond_main.c#n1005>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140604/e3e901ab/attachment.html>


More information about the systemd-bugs mailing list