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
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
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
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
mac.h
Makefile
mcdi_mac.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
mcdi_pcol.h
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
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
qt202x_phy.c sfc: Implement message level control 2010-06-24 22:13:22 -07:00
regs.h
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
siena.c sfc: Use Toeplitz IPv4 hash for RSS and hash insertion 2010-06-25 21:03:32 -07:00
spi.h
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