krata 0.0.21

Client library and common services for the krata isolation engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::env;

use anyhow::Result;
use krata::ethtool::EthtoolHandle;

fn main() -> Result<()> {
    let args = env::args().collect::<Vec<String>>();
    let interface = args.get(1).unwrap();
    let mut handle = EthtoolHandle::new()?;
    handle.set_gso(interface, false)?;
    handle.set_tso(interface, false)?;
    Ok(())
}