]> git.karo-electronics.de Git - karo-tx-linux.git/commit
netdev: octeon_mgmt: Improve ethtool_ops.
authorDavid Daney <david.daney@cavium.com>
Tue, 21 Aug 2012 18:45:08 +0000 (11:45 -0700)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 23 Aug 2012 07:12:43 +0000 (09:12 +0200)
commit376daa09fac327b7f3cb39e1fb650ce045d45fa3
tree7bb8e0f38eb3910f6b55182383511dd3d79fbc45
parent7c38fd4bd8aca831016a4bdd346a5c18021df39e
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>
Cc: linux-mips@linux-mips.org
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org,
Patchwork: https://patchwork.linux-mips.org/patch/4284/
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/ethernet/octeon/octeon_mgmt.c