alistair23-linux/drivers
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
..
accessibility
acpi
amba
ata
atm atm: [he] rewrite buffer handling in receive path 2010-05-31 00:27:47 -07:00
auxdisplay
base
block
bluetooth
cdrom
char
clocksource
connector
cpufreq
cpuidle
crypto
dca
dio
dma Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx 2010-05-30 09:12:43 -07:00
edac
eisa
firewire
firmware
gpio
gpu
hid
hwmon
i2c
ide
idle
ieee1394
ieee802154
infiniband net-next: remove useless union keyword 2010-06-10 23:31:35 -07:00
input
isdn Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 2010-06-06 17:42:02 -07:00
leds
lguest
macintosh
mca
md
media
memstick
message
mfd
misc
mmc
mtd
net ethtool: Change ethtool_op_set_flags to validate flags 2010-06-30 14:09:35 -07:00
nubus
of
oprofile
parisc
parport
pci
pcmcia
platform
pnp
power
pps
ps3
rapidio
regulator
rtc
s390 qeth: handle missing z/VM authorization of OSX 2010-06-23 13:16:37 -07:00
sbus
scsi net-next: remove useless union keyword 2010-06-10 23:31:35 -07:00
serial pcnet_cs: add new id (TOSHIBA Modem/LAN Card) 2010-06-16 18:10:54 -07:00
sfi
sh
sn
spi
ssb ssb: remove the ssb DMA API 2010-06-04 16:00:42 -04:00
staging bridge: use rx_handler_data pointer to store net_bridge_port pointer 2010-06-15 11:48:58 -07:00
tc
telephony
thermal
uio
usb gadget/rndis: dev_get_stats() now returns rtnl_link_stats64. 2010-06-15 21:50:14 -07:00
uwb
vhost Merge branch 'vhost-net-next' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost 2010-06-02 08:26:36 -07:00
video
virtio
vlynq
w1
watchdog
xen
zorro
Kconfig
Makefile