aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2014-02-12 17:14:23 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-12 17:33:02 -0500
commitaf440a8aed3d88a39f26b13de26b30c36189d994 (patch)
treecca89b0b65be2e90e14ac4c2e98a36fb15245420 /include/uapi/linux
parentc8364a63f6483db0826ccec6e485c1646522faf1 (diff)
ethtool: Expand documentation of struct ethtool_ringparam
Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/ethtool.h37
1 files changed, 26 insertions, 11 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h
index d5a0d20a9ff0..e602cd05cef1 100644
--- a/include/uapi/linux/ethtool.h
+++ b/include/uapi/linux/ethtool.h
@@ -401,22 +401,37 @@ struct ethtool_coalesce {
401 __u32 rate_sample_interval; 401 __u32 rate_sample_interval;
402}; 402};
403 403
404/* for configuring RX/TX ring parameters */ 404/**
405 * struct ethtool_ringparam - RX/TX ring parameters
406 * @cmd: Command number = %ETHTOOL_GRINGPARAM or %ETHTOOL_SRINGPARAM
407 * @rx_max_pending: Maximum supported number of pending entries per
408 * RX ring. Read-only.
409 * @rx_mini_max_pending: Maximum supported number of pending entries
410 * per RX mini ring. Read-only.
411 * @rx_jumbo_max_pending: Maximum supported number of pending entries
412 * per RX jumbo ring. Read-only.
413 * @tx_max_pending: Maximum supported number of pending entries per
414 * TX ring. Read-only.
415 * @rx_pending: Current maximum number of pending entries per RX ring
416 * @rx_mini_pending: Current maximum number of pending entries per RX
417 * mini ring
418 * @rx_jumbo_pending: Current maximum number of pending entries per RX
419 * jumbo ring
420 * @tx_pending: Current maximum supported number of pending entries
421 * per TX ring
422 *
423 * If the interface does not have separate RX mini and/or jumbo rings,
424 * @rx_mini_max_pending and/or @rx_jumbo_max_pending will be 0.
425 *
426 * There may also be driver-dependent minimum values for the number
427 * of entries per ring.
428 */
405struct ethtool_ringparam { 429struct ethtool_ringparam {
406 __u32 cmd; /* ETHTOOL_{G,S}RINGPARAM */ 430 __u32 cmd;
407
408 /* Read only attributes. These indicate the maximum number
409 * of pending RX/TX ring entries the driver will allow the
410 * user to set.
411 */
412 __u32 rx_max_pending; 431 __u32 rx_max_pending;
413 __u32 rx_mini_max_pending; 432 __u32 rx_mini_max_pending;
414 __u32 rx_jumbo_max_pending; 433 __u32 rx_jumbo_max_pending;
415 __u32 tx_max_pending; 434 __u32 tx_max_pending;
416
417 /* Values changeable by the user. The valid values are
418 * in the range 1 to the "*_max_pending" counterpart above.
419 */
420 __u32 rx_pending; 435 __u32 rx_pending;
421 __u32 rx_mini_pending; 436 __u32 rx_mini_pending;
422 __u32 rx_jumbo_pending; 437 __u32 rx_jumbo_pending;