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
..
2020-06-14 01:57:21 +09:00
2020-08-15 08:34:36 -07:00
2020-06-28 21:37:23 -07:00
2020-08-03 15:48:32 -07:00
2020-08-07 11:33:22 -07:00
2020-07-25 17:49:04 -07:00
2020-06-26 10:37:11 +02:00
2020-08-07 11:33:22 -07:00
2020-08-03 23:32:23 +02:00
2020-08-04 14:27:25 -07:00
2020-08-14 11:59:08 +02:00
2020-07-24 15:41:54 -07:00
2020-08-15 11:12:58 +02:00
2020-08-03 11:05:26 +02:00
2020-08-18 15:56:56 -07:00
2020-06-23 20:27:09 -07:00
2020-08-05 20:13:21 -07:00
2020-08-03 16:03:18 -07:00
2020-04-28 14:39:46 -07:00
2020-07-23 15:14:58 -07:00
2020-05-23 16:56:17 -07:00
2020-08-18 16:00:24 -07:00
2020-07-31 16:46:26 -07:00
2020-07-24 15:41:54 -07:00
2020-08-13 20:03:11 -07:00
2020-08-18 15:58:53 -07:00
2020-08-05 20:13:21 -07:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-07-30 16:45:31 -07:00
2020-06-20 17:22:22 -07:00
2020-06-14 01:57:21 +09:00
2020-07-24 15:41:54 -07:00
2020-08-07 11:33:22 -07:00
2020-08-07 11:33:22 -07:00
2020-07-27 11:40:47 -07:00
2020-08-16 21:11:37 -07:00
2020-07-23 11:49:41 -07:00
2020-08-16 16:05:36 -07:00
2020-07-13 17:20:40 -07:00
2020-08-06 18:10:55 -07:00
2020-07-24 15:41:54 -07:00
2020-08-11 10:34:30 -07:00
2020-06-14 01:57:21 +09:00
2020-08-13 15:53:30 -07:00
2020-08-13 15:37:30 -07:00
2020-07-24 15:41:54 -07:00
2020-05-23 16:36:05 -07:00
2020-08-17 15:00:41 -07:00
2020-08-02 01:02:12 -07:00
2020-07-24 15:41:54 -07:00
2020-08-02 01:02:12 -07:00
2020-08-05 20:13:21 -07:00
2020-08-07 11:33:22 -07:00
2020-07-27 10:30:01 -07:00
2020-08-15 08:26:55 -07:00
2020-07-13 17:20:40 -07:00
2020-08-18 15:58:53 -07:00
2020-08-11 10:20:34 -07:00
2020-07-19 18:16:41 -07:00
2020-08-12 12:56:06 -07:00
2020-08-07 11:33:22 -07:00
2020-07-24 15:41:54 -07:00
2020-07-28 12:50:15 +02:00
2020-08-10 19:07:44 -07:00
2020-08-07 12:43:25 -07:00
2020-06-30 15:57:34 -07:00
2020-07-07 15:41:05 -07:00
2020-05-23 16:56:17 -07:00
2020-08-10 12:06:44 -07:00