aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ethtool.h
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 /include/linux/ethtool.h
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 'include/linux/ethtool.h')
-rw-r--r--include/linux/ethtool.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h
index b5d189367a02..5d4a06accd82 100644
--- a/include/linux/ethtool.h
+++ b/include/linux/ethtool.h
@@ -479,7 +479,7 @@ struct ethtool_rx_flow_spec {
479 * @data: Command-dependent value 479 * @data: Command-dependent value
480 * @fs: Flow classification rule 480 * @fs: Flow classification rule
481 * @rule_cnt: Number of rules to be affected 481 * @rule_cnt: Number of rules to be affected
482 * @rule_locs: Array of valid rule locations 482 * @rule_locs: Array of used rule locations
483 * 483 *
484 * For %ETHTOOL_GRXFH and %ETHTOOL_SRXFH, @data is a bitmask indicating 484 * For %ETHTOOL_GRXFH and %ETHTOOL_SRXFH, @data is a bitmask indicating
485 * the fields included in the flow hash, e.g. %RXH_IP_SRC. The following 485 * the fields included in the flow hash, e.g. %RXH_IP_SRC. The following
@@ -497,7 +497,8 @@ struct ethtool_rx_flow_spec {
497 * For %ETHTOOL_GRXCLSRLALL, @rule_cnt specifies the array size of the 497 * For %ETHTOOL_GRXCLSRLALL, @rule_cnt specifies the array size of the
498 * user buffer for @rule_locs on entry. On return, @data is the size 498 * user buffer for @rule_locs on entry. On return, @data is the size
499 * of the rule table and @rule_locs contains the locations of the 499 * of the rule table and @rule_locs contains the locations of the
500 * defined rules. 500 * defined rules. Drivers must use the second parameter to get_rxnfc()
501 * instead of @rule_locs.
501 * 502 *
502 * For %ETHTOOL_SRXCLSRLINS, @fs specifies the rule to add or update. 503 * For %ETHTOOL_SRXCLSRLINS, @fs specifies the rule to add or update.
503 * @fs.@location specifies the location to use and must not be ignored. 504 * @fs.@location specifies the location to use and must not be ignored.
@@ -939,7 +940,7 @@ struct ethtool_ops {
939 int (*set_priv_flags)(struct net_device *, u32); 940 int (*set_priv_flags)(struct net_device *, u32);
940 int (*get_sset_count)(struct net_device *, int); 941 int (*get_sset_count)(struct net_device *, int);
941 int (*get_rxnfc)(struct net_device *, 942 int (*get_rxnfc)(struct net_device *,
942 struct ethtool_rxnfc *, void *); 943 struct ethtool_rxnfc *, u32 *rule_locs);
943 int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *); 944 int (*set_rxnfc)(struct net_device *, struct ethtool_rxnfc *);
944 int (*flash_device)(struct net_device *, struct ethtool_flash *); 945 int (*flash_device)(struct net_device *, struct ethtool_flash *);
945 int (*reset)(struct net_device *, u32 *); 946 int (*reset)(struct net_device *, u32 *);