OpenCloudOS-Kernel/drivers/net/cxgb4
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 cxgb4: Add main driver file and driver Makefile 2010-04-01 19:29:16 -07:00
cxgb4.h cxgb4: minor cleanup 2010-06-18 22:08:39 -07:00
cxgb4_main.c ethtool: Change ethtool_op_set_flags to validate flags 2010-06-30 14:09:35 -07:00
cxgb4_uld.h cxgb4: update FW definitions 2010-06-18 22:08:38 -07:00
l2t.c cxgb4: implement EEH 2010-06-18 22:08:36 -07:00
l2t.h cxgb4: Add remaining driver headers and L2T management 2010-04-01 19:29:15 -07:00
sge.c cxgb4vf: small changes to message processing structures/macros 2010-06-28 23:58:54 -07:00
t4_hw.c cxgb4vf: update to latest T4 firmware API file 2010-06-28 23:58:55 -07:00
t4_hw.h cxgb4vf: Add new macros and definitions for hardware constants 2010-06-28 23:59:34 -07:00
t4_msg.h cxgb4vf: small changes to message processing structures/macros 2010-06-28 23:58:54 -07:00
t4_regs.h cxgb4vf: Add new macros and definitions for hardware constants 2010-06-28 23:59:34 -07:00
t4fw_api.h cxgb4vf: update to latest T4 firmware API file 2010-06-28 23:58:55 -07:00