Page MenuHomeFreeBSD

LinuxKPI: ethtool.h add more definitions
ClosedPublic

Authored by bz on Oct 30 2022, 5:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 26 2024, 6:37 AM
Unknown Object (File)
Nov 20 2024, 11:04 PM
Unknown Object (File)
Nov 16 2024, 6:36 PM
Unknown Object (File)
Nov 16 2024, 4:40 PM
Unknown Object (File)
Nov 16 2024, 2:26 PM
Unknown Object (File)
Nov 16 2024, 4:05 AM
Unknown Object (File)
Oct 28 2024, 8:49 AM
Unknown Object (File)
Oct 20 2024, 2:33 AM
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 Not Applicable
Unit
Tests Not Applicable

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.