mirror of
https://github.com/LibreQoE/LibreQoS.git
synced 2025-02-25 18:55:32 -06:00
Missing doc block
This commit is contained in:
parent
417b545dc7
commit
cc6d9d2d2d
@ -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();
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user