alistair23-linux/net/ethtool
Maxim Mikityanskiy 2847bfed88 ethtool: Account for hw_features in netlink interface
ethtool-netlink ignores dev->hw_features and may confuse the drivers by
asking them to enable features not in the hw_features bitmask. For
example:

1. ethtool -k eth0
   tls-hw-tx-offload: off [fixed]
2. ethtool -K eth0 tls-hw-tx-offload on
   tls-hw-tx-offload: on
3. ethtool -k eth0
   tls-hw-tx-offload: on [fixed]

Fitler out dev->hw_features from req_wanted to fix it and to resemble
the legacy ethtool behavior.

Fixes: 0980bfcd69 ("ethtool: set netdev features with FEATURES_SET request")
Signed-off-by: Maxim Mikityanskiy <maximmi@mellanox.com>
Reviewed-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-08-18 16:00:24 -07:00
..
bitset.c
bitset.h
cabletest.c net: ethtool: Remove PHYLIB direct dependency 2020-07-07 15:41:05 -07:00
channels.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2020-05-22 18:30:34 -07:00
coalesce.c ethtool: add COALESCE_NTF notification 2020-03-29 22:32:36 -07:00
common.c ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
common.h ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
debug.c
eee.c ethtool: add EEE_NTF notification 2020-03-29 22:32:36 -07:00
features.c ethtool: Account for hw_features in netlink interface 2020-08-18 16:00:24 -07:00
ioctl.c net: phy: Uninline PHY ethtool statistics operations 2020-07-08 12:39:05 -07:00
linkinfo.c ethtool: linkinfo: remove an unnecessary NULL check 2020-06-05 13:10:02 -07:00
linkmodes.c ethtool: ethnl_set_linkmodes: remove redundant null check 2020-08-03 15:11:49 -07:00
linkstate.c ethtool: Add link extended state 2020-06-29 17:45:02 -07:00
Makefile ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
netlink.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2020-07-11 00:46:00 -07:00
netlink.h ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
pause.c ethtool: add PAUSE_NTF notification 2020-03-29 22:32:36 -07:00
privflags.c ethtool: fix reference leak in ethnl_set_privflags() 2020-03-29 22:32:36 -07:00
rings.c
strset.c ethtool: add tunnel info interface 2020-07-10 13:54:00 -07:00
tsinfo.c ethtool: provide timestamping information with TSINFO_GET request 2020-03-29 22:32:37 -07:00
tunnels.c udp_tunnel: add the ability to hard-code IANA VXLAN 2020-08-03 10:13:54 -07:00
wol.c