kernel-fxtec-pro1x/drivers/net/myri10ge
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
..
Makefile
myri10ge.c ethtool: Change ethtool_op_set_flags to validate flags 2010-06-30 14:09:35 -07:00
myri10ge_mcp.h myri10ge: update firmware headers to 1.4.37 2008-12-25 18:08:59 -08:00
myri10ge_mcp_gen_header.h myri10ge: update firmware headers to 1.4.41 2009-03-24 16:32:13 -07:00