Page MenuHomeFreeBSD

LinuxKPI: ethtool.h add more definitions
ClosedPublic

Authored by bz on Oct 30 2022, 5:29 PM.
Tags
None
Referenced Files
F102741887: D37214.id112412.diff
Sat, Nov 16, 2:26 PM
F102708070: D37214.id112412.diff
Sat, Nov 16, 4:05 AM
Unknown Object (File)
Mon, Oct 28, 8:49 AM
Unknown Object (File)
Sun, Oct 20, 2:33 AM
Unknown Object (File)
Sat, Oct 19, 6:14 PM
Unknown Object (File)
Fri, Oct 18, 6:11 AM
Unknown Object (File)
Oct 4 2024, 11:28 PM
Unknown Object (File)
Oct 1 2024, 1:29 PM
Subscribers

Details

Summary

While we do not currently use this add the definitions to avoid other
longer-term maintenance problems with drivers.

MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48429
Build 45315: arc lint + arc unit

Event Timeline

bz requested review of this revision.Oct 30 2022, 5:29 PM

If no one reviews I'll commit this the next days.

sys/compat/linuxkpi/common/include/linux/ethtool.h
48

these are char[] arrays in Linux so I worry this may introduce some misbehaviour in the future (even if they're not being used in a way that would cause that, today)

bz marked an inline comment as done.Nov 18 2022, 9:03 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/ethtool.h
48

Based on a simple user space program, they all seem to be of size [32]; I'll adjust the file and post an update in a minute

bz marked an inline comment as done.

Make struct members fixed length char[] based on imput from @emaste and
a simple user space program using the original header file and LinuxKPI.

Also migrate ETH_GSTRING_LEN into here from if_ether.h.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 28 2022, 5:30 PM
This revision was automatically updated to reflect the committed changes.