net: fix hw_features ethtool_ops->set_flags compatibility
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Thu, 21 Apr 2011 13:59:21 +0000 (13:59 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Apr 2011 00:21:43 +0000 (17:21 -0700)
__ethtool_set_flags() was not taking into account features set but not
user-toggleable.

Since GFLAGS returns masked dev->features, EINVAL is returned when
passed flags differ to it, and not to wanted_features.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found