Commit 14596f70 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller

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: default avatarBen Hutchings <bhutchings@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5d531aaa
...@@ -543,8 +543,9 @@ struct compat_ethtool_rxnfc { ...@@ -543,8 +543,9 @@ struct compat_ethtool_rxnfc {
/** /**
* struct ethtool_rxfh_indir - command to get or set RX flow hash indirection * struct ethtool_rxfh_indir - command to get or set RX flow hash indirection
* @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR * @cmd: Specific command number - %ETHTOOL_GRXFHINDIR or %ETHTOOL_SRXFHINDIR
* @size: On entry, the array size of the user buffer. On return from * @size: On entry, the array size of the user buffer, which may be zero
* %ETHTOOL_GRXFHINDIR, the array size of the hardware indirection table. * for %ETHTOOL_GRXFHINDIR. On return from %ETHTOOL_GRXFHINDIR, the
* array size of the hardware indirection table.
* @ring_index: RX ring/queue index for each hash value * @ring_index: RX ring/queue index for each hash value
*/ */
struct ethtool_rxfh_indir { struct ethtool_rxfh_indir {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment