]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: fix ETHTOOL_SFEATURES compatibility with old ethtool_ops.set_flags
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 26 May 2011 00:42:57 +0000 (00:42 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:14:50 +0000 (23:14 -0700)
commit70e0b9c5761165977eb698a36a781830e1e7832e
tree7b2f0a486310579301c0e56738050fc37c40ff69
parentb850cf360e080311d74ff0cb94118cb466a29a95
net: fix ETHTOOL_SFEATURES compatibility with old ethtool_ops.set_flags

[ Upstream commit fd0daf9d58f6b3342d07c5f6bbfb304dbe5db4ec ]

Current code squashes flags to bool - this makes set_flags fail whenever
some ETH_FLAG_* equivalent features are set. Fix this.

Signed-off-by: Micha©© Miros©©aw <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/ethtool.c