Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/channel/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ impl Nla for EthtoolChannelAttr {
| Self::TxCount(d)
| Self::OtherCount(d)
| Self::CombinedCount(d) => emit_u32(buffer, *d).unwrap(),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/coalesce/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ impl Nla for EthtoolCoalesceAttr {
fn emit_value(&self, buffer: &mut [u8]) {
match self {
Self::Header(ref nlas) => nlas.as_slice().emit(buffer),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
Self::RxUsecs(d)
| Self::RxMaxFrames(d)
| Self::RxUsecsIrq(d)
Expand Down
2 changes: 1 addition & 1 deletion src/eeprom/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl Nla for EthtoolModuleEEPROMAttr {
buffer[0] = *d
}
Self::Offset(d) | Self::Length(d) => emit_u32(buffer, *d).unwrap(),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/feature/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ impl Nla for EthtoolFeatureAttr {
| Self::NoChange(feature_bits) => {
feature_bits_emit(feature_bits.as_slice(), buffer)
}
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/fec/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl Nla for EthtoolFecAttr {
fn emit_value(&self, buffer: &mut [u8]) {
match self {
Self::Header(ref nlas) => nlas.as_slice().emit(buffer),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
_ => todo!("Does not support changing ethtool fec yet"),
}
}
Expand Down Expand Up @@ -236,7 +236,7 @@ impl Nla for EthtoolFecStat {
Self::Corrected(v)
| Self::Uncorrected(v)
| Self::CorrectBits(v) => emit_u64(buffer, *v).unwrap(),
Self::Other(attr) => attr.emit(buffer),
Self::Other(attr) => attr.emit_value(buffer),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/link_mode/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Nla for EthtoolLinkModeAttr {
fn emit_value(&self, buffer: &mut [u8]) {
match self {
Self::Header(ref nlas) => nlas.as_slice().emit(buffer),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
_ => todo!("Does not support changing ethtool link mode yet"),
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/pause/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl Nla for EthtoolPauseAttr {
buffer[0] = *value as u8
}
Self::Stats(ref nlas) => nlas.as_slice().emit(buffer),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ring/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ impl Nla for EthtoolRingAttr {
| Self::Tx(d) => emit_u32(buffer, *d).unwrap(),
Self::TcpDataSplit(d) => buffer[0] = *d,
Self::TxPush(d) => buffer[0] = *d as u8,
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/tsinfo/attr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl Nla for EthtoolTsInfoAttr {
fn emit_value(&self, buffer: &mut [u8]) {
match self {
Self::Header(ref nlas) => nlas.as_slice().emit(buffer),
Self::Other(ref attr) => attr.emit(buffer),
Self::Other(ref attr) => attr.emit_value(buffer),
_ => todo!("Does not support changing ethtool ts info yet"),
}
}
Expand Down
Loading