diff options
author | Michal Kubecek <mkubecek@suse.cz> | 2020-03-12 21:07:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 23:32:32 +0100 |
commit | 0524399d4612f5af38b8383680dde4df4bc4eea2 (patch) | |
tree | 51a18d7838cbc3afc02649894b5a18f7f99bfe5d /net/ethtool/ioctl.c | |
parent | ethtool: update mapping of features to legacy ioctl requests (diff) | |
download | linux-0524399d4612f5af38b8383680dde4df4bc4eea2.tar.xz linux-0524399d4612f5af38b8383680dde4df4bc4eea2.zip |
ethtool: provide netdev features with FEATURES_GET request
Implement FEATURES_GET request to get network device features. These are
traditionally available via ETHTOOL_GFEATURES ioctl request.
v2:
- style cleanup suggested by Jakub Kicinski
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ethtool/ioctl.c')
-rw-r--r-- | net/ethtool/ioctl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ethtool/ioctl.c b/net/ethtool/ioctl.c index ae97c82c7052..45d1bf1764b7 100644 --- a/net/ethtool/ioctl.c +++ b/net/ethtool/ioctl.c @@ -56,8 +56,6 @@ EXPORT_SYMBOL(ethtool_op_get_ts_info); /* Handlers for each ethtool command */ -#define ETHTOOL_DEV_FEATURE_WORDS ((NETDEV_FEATURE_COUNT + 31) / 32) - static int ethtool_get_features(struct net_device *dev, void __user *useraddr) { struct ethtool_gfeatures cmd = { |