diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-12-15 08:51:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-16 13:52:47 -0500 |
commit | 14596f7006297b67516e2b6a2b26bcb11fe08fb3 (patch) | |
tree | 02356cc1106bba9a80cd5664e60313a27992863f /include/linux/ethtool.h | |
parent | 5d531aaa64a06622874f06e5068b8eefca048feb (diff) |
ethtool: Clarify use of size field for ETHTOOL_GRXFHINDIR
In order to find out the device's RX flow hash table size, ethtool
initially uses ETHTOOL_GRXFHINDIR with a buffer size of zero. This
must be supported, but it is not necessary to support any other user
buffer size less than the device table size.
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.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index 20db5b275c3f..0ec2fd412d03 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h | |||
@@ -543,8 +543,9 @@ struct compat_ethtool_rxnfc { | |||
543 | /** | 543 | /** |
544 | * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection | 544 | * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection |
545 | * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR | 545 | * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR |
546 | * @size: On entry, the array size of the user buffer. On return from | 546 | * @size: On entry, the array size of the user buffer, which may be zero |
547 | * %ETHTOOL_GRXFHINDIR, the array size of the hardware indirection table. | 547 | * for %ETHTOOL_GRXFHINDIR. On return from %ETHTOOL_GRXFHINDIR, the |
548 | * array size of the hardware indirection table. | ||
548 | * @ring_index: RX ring/queue index for each hash value | 549 | * @ring_index: RX ring/queue index for each hash value |
549 | */ | 550 | */ |
550 | struct ethtool_rxfh_indir { | 551 | struct ethtool_rxfh_indir { |