Page MenuHomeFreeBSD

LinuxKPI: ethtool.h add more definitions
ClosedPublic

Authored by bz on Oct 30 2022, 5:29 PM.
Tags
None
Referenced Files
F86804990: D37214.diff
Tue, Jun 25, 8:22 PM
F86782102: D37214.diff
Tue, Jun 25, 12:29 PM
Unknown Object (File)
Sun, Jun 9, 5:48 AM
Unknown Object (File)
May 14 2024, 8:09 AM
Unknown Object (File)
Mar 19 2024, 2:26 PM
Unknown Object (File)
Dec 23 2023, 1:27 AM
Unknown Object (File)
Dec 12 2023, 7:44 AM
Unknown Object (File)
Nov 7 2023, 1:18 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.