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>
Showing
- drivers/net/bnx2x_main.c 1 addition, 1 deletiondrivers/net/bnx2x_main.c
- drivers/net/netxen/netxen_nic_ethtool.c 1 addition, 1 deletiondrivers/net/netxen/netxen_nic_ethtool.c
- drivers/net/qlcnic/qlcnic_ethtool.c 1 addition, 1 deletiondrivers/net/qlcnic/qlcnic_ethtool.c
- drivers/net/s2io.c 1 addition, 1 deletiondrivers/net/s2io.c
Loading
Please register or sign in to comment