mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
1437ce3983
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> |
||
---|---|---|
.. | ||
cxgb4_main.c | ||
cxgb4_uld.h | ||
cxgb4.h | ||
l2t.c | ||
l2t.h | ||
Makefile | ||
sge.c | ||
t4_hw.c | ||
t4_hw.h | ||
t4_msg.h | ||
t4_regs.h | ||
t4fw_api.h |