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.
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 ethtoolioctl(2)
s. Go ahead and add netlink ethtool support, starting with channel information (ETHTOOL_A_CHANNELS_GET
) ala the oldETHTOOL_GCHANNELS
ioctl.More information is available here