dankamongmen / libnetstack

Small library around rtnetlink to track networking stack elements
https://nick-black.com/dankwiki/index.php/Libnetstack
Apache License 2.0
10 stars 0 forks source link

Get channel information using ethtool-over-netlink #53

Open dankamongmen opened 1 year ago

dankamongmen commented 1 year ago

In recent kernels with the CONFIG_ETHTOOL_NETLINK kernel option enabled, one can retrieve (and even set) information using netlink that once required the grotesque ethtool ioctl(2)s. Go ahead and add netlink ethtool support, starting with channel information (ETHTOOL_A_CHANNELS_GET) ala the old ETHTOOL_GCHANNELS ioctl.

More information is available here