diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-06-30 04:46:56 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-30 23:09:36 +0200 |
commit | 97d1935a61b7fe7a65f98f154c7f3301cfe746f3 (patch) | |
tree | 5c4586fd94e18935a9022f5c440f503daa32c636 /drivers/net/s2io.c | |
parent | ethtool: Change ethtool_op_set_flags to validate flags (diff) | |
download | linux-97d1935a61b7fe7a65f98f154c7f3301cfe746f3.tar.xz linux-97d1935a61b7fe7a65f98f154c7f3301cfe746f3.zip |
netdev: Make ethtool_ops::set_flags() return -EINVAL for unsupported flags
The documented error code for attempts to set unsupported flags (or
to clear flags that cannot be disabled) is EINVAL, not EOPNOTSUPP.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index a032d726d640..22371f1dca58 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c @@ -6692,7 +6692,7 @@ static int s2io_ethtool_set_flags(struct net_device *dev, u32 data) int changed = 0; if (data & ~ETH_FLAG_LRO) - return -EOPNOTSUPP; + return -EINVAL; if (data & ETH_FLAG_LRO) { if (lro_enable) { |