linux/net/ethtool
Michal Kubecek 88db6d1e4f ethtool: add ethnl_parse_bitset() helper
Unlike other SET type commands, modifying netdev features is required to
provide a reply telling userspace what was actually changed, compared to
what was requested. For that purpose, the "modified" flag provided by
ethnl_update_bitset() is not sufficient, we need full information which
bits were requested to change.

Therefore provide ethnl_parse_bitset() returning effective value and mask
bitmaps equivalent to the contents of a bitset nested attribute.

v2: use non-atomic __set_bit() (suggested by David Miller)

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-03-12 15:32:32 -07:00
..
bitset.c ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
bitset.h ethtool: add ethnl_parse_bitset() helper 2020-03-12 15:32:32 -07:00
common.c ethtool: Add support for low latency RS FEC 2020-02-18 19:17:31 -08:00
common.h ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
debug.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
features.c ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
ioctl.c ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
linkinfo.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
linkmodes.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00
linkstate.c ethtool: provide link state with LINKSTATE_GET request 2019-12-27 16:40:02 -08:00
Makefile ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
netlink.c ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
netlink.h ethtool: provide netdev features with FEATURES_GET request 2020-03-12 15:32:32 -07:00
strset.c ethtool: provide WoL settings with WOL_GET request 2020-01-27 11:31:36 +01:00
wol.c ethtool: rename ethnl_parse_header() to ethnl_parse_header_dev_get() 2020-03-12 15:32:32 -07:00