aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/ethtool.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-09-06 09:49:12 -0400
committerDavid S. Miller <davem@davemloft.net>2011-09-16 19:25:10 -0400
commit815c7db5c809ea3d5735de3131ecdf758b0e14ff (patch)
tree310304287c1671468cdd7ab006eeab4a725a4dda /drivers/net/ethernet/sfc/ethtool.c
parent434495c50ea786b89eca7f7af2bac424658a76ee (diff)
ethtool: Clean up definitions of rule location arrays in RX NFC
Correct the description of ethtool_rxnfc::rule_locs; it is an array of currently used locations, not all possible valid locations. Add note that drivers must not use ethtool_rxnfc::rule_locs. The rule_locs argument to ethtool_ops::get_rxnfc is either NULL or a pointer to an array of u32, so change the parameter type accordingly. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ethtool.c')
-rw-r--r--drivers/net/ethernet/sfc/ethtool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c
index 93f1fb99432d..9536925f5bdd 100644
--- a/drivers/net/ethernet/sfc/ethtool.c
+++ b/drivers/net/ethernet/sfc/ethtool.c
@@ -824,7 +824,7 @@ static int efx_ethtool_reset(struct net_device *net_dev, u32 *flags)
824 824
825static int 825static int
826efx_ethtool_get_rxnfc(struct net_device *net_dev, 826efx_ethtool_get_rxnfc(struct net_device *net_dev,
827 struct ethtool_rxnfc *info, void *rules __always_unused) 827 struct ethtool_rxnfc *info, u32 *rules __always_unused)
828{ 828{
829 struct efx_nic *efx = netdev_priv(net_dev); 829 struct efx_nic *efx = netdev_priv(net_dev);
830 830