ethtool: Clean up definitions of rule location arrays in RX NFC
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 6 Sep 2011 13:49:12 +0000 (13:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2011 23:25:10 +0000 (19:25 -0400)
commit815c7db5c809ea3d5735de3131ecdf758b0e14ff
tree310304287c1671468cdd7ab006eeab4a725a4dda
parent434495c50ea786b89eca7f7af2bac424658a76ee
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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
drivers/net/ethernet/freescale/gianfar_ethtool.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c
drivers/net/ethernet/sfc/ethtool.c
drivers/net/ethernet/sun/niu.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
include/linux/ethtool.h