2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-19 10:44:14 +08:00
linux-next/drivers/net/enic
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
..
cq_desc.h enic: Clean ups 2010-06-25 20:50:30 -07:00
cq_enet_desc.h enic: Clean ups 2010-06-25 20:50:30 -07:00
enic_main.c ethtool: Change ethtool_op_set_flags to validate flags 2010-06-30 14:09:35 -07:00
enic_res.c enic: Clean ups 2010-06-25 20:50:30 -07:00
enic_res.h enic: Clean ups 2010-06-25 20:50:30 -07:00
enic.h enic: Clean ups 2010-06-25 20:50:30 -07:00
Makefile net: Add ndo_{set|get}_vf_port support for enic dynamic vnics 2010-05-17 22:50:19 -07:00
rq_enet_desc.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_cq.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_cq.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_dev.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_dev.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_devcmd.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_enet.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_intr.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_intr.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_nic.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_resource.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_rq.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_rq.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_rss.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_stats.h enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_vic.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_vic.h drivers/net: use __packed annotation 2010-06-03 03:18:23 -07:00
vnic_wq.c enic: Clean ups 2010-06-25 20:50:30 -07:00
vnic_wq.h enic: Clean ups 2010-06-25 20:50:30 -07:00
wq_enet_desc.h enic: Clean ups 2010-06-25 20:50:30 -07:00