Missing doc block

This commit is contained in:
Herbert Wolverson 2024-05-20 08:42:03 -05:00
parent 417b545dc7
commit cc6d9d2d2d
2 changed files with 5 additions and 1 deletions

View File

@ -50,6 +50,10 @@ pub fn load_config() -> Result<Config, LibreQoSConfigError> {
Ok(lock.as_ref().unwrap().clone())
}
/// Helper function that disables the XDP bridge in the LIVE, CACHED
/// configuration --- it does NOT save the changes to disk. This is
/// intended for use when the XDP bridge is disabled by pre-flight
/// because of a Linux bridge.
pub fn disable_xdp_bridge() -> Result<(), LibreQoSConfigError> {
let mut config = load_config()?;
let mut lock = CONFIG.lock().unwrap();

View File

@ -117,7 +117,7 @@ fn check_bridge_status(config: &Config, interfaces: &[IpLinkInterface]) -> Resul
if bridge.use_xdp_bridge {
for bridge_if in interfaces
.iter()
.filter(|bridge_if| bridge_if.link_type == "ether")
.filter(|bridge_if| bridge_if.link_type == "ether" && bridge_if.operstate == "UP")
{
// We found a bridge. Check member interfaces to check that it does NOT include any XDP
// bridge members.