netdev: octeon_mgmt: Improve ethtool_ops.
authorDavid Daney <david.daney@cavium.com>
Tue, 21 Aug 2012 18:45:08 +0000 (11:45 -0700)
committerDavid Daney <david.daney@cavium.com>
Fri, 31 Aug 2012 18:49:40 +0000 (11:49 -0700)
commitf21105df0f999f468f1f03e1ff53fe055e149341
tree9d5024d59b997a50e42f4341df3a497356840a28
parent3d305850261dfbf815eb7a0f0b768d4e1a11485a
netdev: octeon_mgmt: Improve ethtool_ops.

Correctly show no link when the interface is down, and return
-EOPNOTSUPP for things that don't work.  This quiets the ethtool
program when run on down interfaces.

Signed-off-by: David Daney <david.daney@cavium.com>
Acked-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/octeon/octeon_mgmt.c