linux/drivers/net/sfc
Ben Hutchings 1437ce3983 ethtool: Change ethtool_op_set_flags to validate flags
ethtool_op_set_flags() does not check for unsupported flags, and has
no way of doing so.  This means it is not suitable for use as a
default implementation of ethtool_ops::set_flags.

Add a 'supported' parameter specifying the flags that the driver and
hardware support, validate the requested flags against this, and
change all current callers to pass this parameter.

Change some other trivial implementations of ethtool_ops::set_flags to
call ethtool_op_set_flags().

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Reviewed-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-06-30 14:09:35 -07:00
..
bitfield.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
efx.c sfc: Move siena_nic_data::ipv6_rss_key to efx_nic::rx_hash_key 2010-06-25 21:03:31 -07:00
efx.h sfc: Implement message level control 2010-06-24 22:13:22 -07:00
enum.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
ethtool.c ethtool: Change ethtool_op_set_flags to validate flags 2010-06-30 14:09:35 -07:00
falcon_boards.c sfc: Log clearer error messages for hardware monitor 2010-06-25 21:03:32 -07:00
falcon_gmac.c sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
falcon_xmac.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
falcon.c sfc: Use Toeplitz IPv4 hash for RSS and hash insertion 2010-06-25 21:03:32 -07:00
io.h sfc: Implement message level control 2010-06-24 22:13:22 -07:00
Kconfig sfc: Add support for SFC9000 family (2) 2009-11-29 17:23:57 -08:00
mac.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
Makefile sfc: Add support for SFC9000 family (2) 2009-11-29 17:23:57 -08:00
mcdi_mac.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi_pcol.h sfc: Update MCDI protocol definitions 2010-04-28 12:44:37 -07:00
mcdi_phy.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi.h sfc: Implement NVRAM selftest for SFC9000 family 2010-02-03 19:12:45 -08:00
mdio_10g.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mdio_10g.h sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mtd.c sfc: Log MTD errors using partition name, not just net device name 2010-06-24 22:13:22 -07:00
net_driver.h sfc: Move siena_nic_data::ipv6_rss_key to efx_nic::rx_hash_key 2010-06-25 21:03:31 -07:00
nic.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
nic.h sfc: Move siena_nic_data::ipv6_rss_key to efx_nic::rx_hash_key 2010-06-25 21:03:31 -07:00
phy.h sfc: Update version, copyright dates, authors 2009-11-29 17:23:58 -08:00
qt202x_phy.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
regs.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
rx.c sfc: Fix reading of inserted hash 2010-06-25 21:03:30 -07:00
selftest.c sfc: Fix reading of inserted hash 2010-06-25 21:03:30 -07:00
selftest.h sfc: Create multiple TX queues 2010-04-28 12:44:44 -07:00
siena.c sfc: Use Toeplitz IPv4 hash for RSS and hash insertion 2010-06-25 21:03:32 -07:00
spi.h sfc: Extend MTD driver for use with new NICs 2009-11-29 17:23:54 -08:00
tenxpress.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
tx.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
workarounds.h sfc: Workaround flush failures on Falcon B0 2010-06-02 02:21:06 -07:00