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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 May 2011 18:13:59 +0000 (14:13 -0400)
commitfd0daf9d58f6b3342d07c5f6bbfb304dbe5db4ec
tree6456e68bd8f9e85076f4c908933abd470dd1f014
parent94265cf5f731c7df29fdfde262ca3e6d51e6828c
net: fix ETHTOOL_SFEATURES compatibility with old ethtool_ops.set_flags

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>
net/core/ethtool.c