]> git.baikalelectronics.ru Git - kernel.git/commit
ks8695net: Disable non-working ethtool operations
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 13 Jan 2011 07:50:14 +0000 (07:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Jan 2011 05:48:27 +0000 (21:48 -0800)
commit2cd1d5eba99f78feb3fb53c0bbdfb62e44fc3dc1
tree3339bb16e0fc43d8884cfebd8f32c417cfd880da
parentcaa9e9a8f6e1ac503e0951946c347f5f7a897514
ks8695net: Disable non-working ethtool operations

Some ethtool operations can only be implemented for the WAN port, and
not all such operations are allowed to return an error code such as
-EOPNOTSUPP.  Therefore, define two separate ethtool_ops structures
for WAN and non-WAN ports; simplify and rename the WAN-only functions.

This is completely untested as I don't have an ARM build environment.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/arm/ks8695net.c