From: David S. Miller Date: Thu, 12 Mar 2020 22:32:33 +0000 (-0700) Subject: Merge branch 'ethtool-netlink-interface-part-3' X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=82a9822b26770b3965790f6a2340f0341a9bc102;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'ethtool-netlink-interface-part-3' Michal Kubecek says: ==================== ethtool netlink interface, part 3 Implementation of more netlink request types: - netdev features (ethtool -k/-K, patches 3-6) - private flags (--show-priv-flags / --set-priv-flags, patches 7-9) - ring sizes (ethtool -g/-G, patches 10-12) - channel counts (ethtool -l/-L, patches 13-15) Patch 1 is a style cleanup suggested in part 2 review and patch 2 updates the mapping between netdev features and legacy ioctl requests (which are still used by ethtool for backward compatibility). Changes in v2: - fix netdev reference leaks in error path of ethnl_set_rings() and ethnl_set_channels() (found by Jakub Kicinski) - use __set_bit() rather than set_bit() (suggested by David Miller) - in replies to RINGS_GET and CHANNELS_GET requests, omit ring and channel types not supported by driver/device (suggested by Jakub Kicinski) - more descriptive message size calculations in rings_reply_size() and channels_reply_size() (suggested by Jakub Kicinski) - coding style cleanup (suggested by Jakub Kicinski) ==================== Signed-off-by: David S. Miller --- 82a9822b26770b3965790f6a2340f0341a9bc102