libc_extra/android_linux/linux/ethtool/
ethtool_coalesce.rs1#[repr(C)]
6#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
7pub struct ethtool_coalesce
8{
9 pub cmd: u32,
10 pub rx_coalesce_usecs: u32,
11 pub rx_max_coalesced_frames: u32,
12 pub rx_coalesce_usecs_irq: u32,
13 pub rx_max_coalesced_frames_irq: u32,
14 pub tx_coalesce_usecs: u32,
15 pub tx_max_coalesced_frames: u32,
16 pub tx_coalesce_usecs_irq: u32,
17 pub tx_max_coalesced_frames_irq: u32,
18 pub stats_block_coalesce_usecs: u32,
19 pub use_adaptive_rx_coalesce: u32,
20 pub use_adaptive_tx_coalesce: u32,
21 pub pkt_rate_low: u32,
22 pub rx_coalesce_usecs_low: u32,
23 pub rx_max_coalesced_frames_low: u32,
24 pub tx_coalesce_usecs_low: u32,
25 pub tx_max_coalesced_frames_low: u32,
26 pub pkt_rate_high: u32,
27 pub rx_coalesce_usecs_high: u32,
28 pub rx_max_coalesced_frames_high: u32,
29 pub tx_coalesce_usecs_high: u32,
30 pub tx_max_coalesced_frames_high: u32,
31 pub rate_sample_interval: u32,
32}
33
34impl Default for ethtool_coalesce
35{
36 fn default() -> Self
37 {
38 unsafe { zeroed() }
39 }
40}