BRIDGE_VLAN_FILTERING depends on bridge _and_ vlan

I'm half-pleased with this. It demonstrates how we can have complex
conditional kernel config, but the way we detect if vlan exists is
tacky.
This commit is contained in:
Daniel Barlow 2023-08-31 18:24:09 +01:00
parent 333327be75
commit f1dfb1f976

View file

@ -41,7 +41,11 @@ in
};
config.kernel.config = {
BRIDGE = "y";
BRIDGE_VLAN_FILTERING = "y";
BRIDGE_IGMP_SNOOPING = "y";
} // lib.optionalAttrs (config.system.service ? vlan) {
# depends on bridge _and_ vlan. I would like there to be
# a better way to test for the existence of vlan config:
# maybe the module should set an `enabled` attribute?
BRIDGE_VLAN_FILTERING = "y";
};
}