summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ethtool.h
diff options
context:
space:
mode:
authorBen Hutchings2014-05-15 02:07:16 +0200
committerBen Hutchings2014-05-19 02:19:30 +0200
commit38c891a49dec43dbb1575cc40d10dbd49c4961ab (patch)
tree7d8a1cddd6daa3020e3de2e82694e54bacc1e5bf /include/uapi/linux/ethtool.h
parentethtool: Name the 'no change' value for setting RSS hash key but not indir table (diff)
downloadkernel-qcow2-linux-38c891a49dec43dbb1575cc40d10dbd49c4961ab.tar.gz
kernel-qcow2-linux-38c891a49dec43dbb1575cc40d10dbd49c4961ab.tar.xz
kernel-qcow2-linux-38c891a49dec43dbb1575cc40d10dbd49c4961ab.zip
ethtool: Improve explanation of the two arrays following struct ethtool_rxfh
The use of two variable-length arrays is unusual so deserves a bit more explanation. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/uapi/linux/ethtool.h')
-rw-r--r--include/uapi/linux/ethtool.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index cba18e3f8fab..e3c7a719c76b 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -850,16 +850,17 @@ struct ethtool_rxfh_indir {
* struct ethtool_rxfh - command to get/set RX flow hash indir or/and hash key.
* @cmd: Specific command number - %ETHTOOL_GRSSH or %ETHTOOL_SRSSH
* @rss_context: RSS context identifier.
- * @indir_size: On entry, the array size of the user buffer, which may be zero,
- * or (for %ETHTOOL_SRSSH), %ETH_RXFH_INDIR_NO_CHANGE.
- * On return from %ETHTOOL_GRSSH, the array size of the hardware
- * indirection table.
- * @key_size: On entry, the array size of the user buffer in bytes,
- * which may be zero.
- * On return from %ETHTOOL_GRSSH, the size of the RSS hash key.
+ * @indir_size: On entry, the array size of the user buffer for the
+ * indirection table, which may be zero, or (for %ETHTOOL_SRSSH),
+ * %ETH_RXFH_INDIR_NO_CHANGE. On return from %ETHTOOL_GRSSH,
+ * the array size of the hardware indirection table.
+ * @key_size: On entry, the array size of the user buffer for the hash key,
+ * which may be zero. On return from %ETHTOOL_GRSSH, the size of the
+ * hardware hash key.
* @rsvd: Reserved for future extensions.
* @rss_config: RX ring/queue index for each hash value i.e., indirection table
- * of size @indir_size followed by hash key of size @key_size.
+ * of @indir_size __u32 elements, followed by hash key of @key_size
+ * bytes.
*
* For %ETHTOOL_GRSSH, a @indir_size and key_size of zero means that only the
* size should be returned. For %ETHTOOL_SRSSH, an @indir_size of