1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * ethtool.h: Defines for Linux ethtool.
11 * Portions Copyright (C) Sun Microsystems 2008
14 #ifndef _UAPI_LINUX_ETHTOOL_H
15 #define _UAPI_LINUX_ETHTOOL_H
17 #include <linux/kernel.h>
18 #include <linux/types.h>
19 #include <linux/if_ether.h>
21 #define ETHTOOL_GCHANNELS 0x0000003c /* Get no of channels */
24 * struct ethtool_channels - configuring number of network channel
25 * @cmd: ETHTOOL_{G,S}CHANNELS
26 * @max_rx: Read only. Maximum number of receive channel the driver support.
27 * @max_tx: Read only. Maximum number of transmit channel the driver support.
28 * @max_other: Read only. Maximum number of other channel the driver support.
29 * @max_combined: Read only. Maximum number of combined channel the driver
30 * support. Set of queues RX, TX or other.
31 * @rx_count: Valid values are in the range 1 to the max_rx.
32 * @tx_count: Valid values are in the range 1 to the max_tx.
33 * @other_count: Valid values are in the range 1 to the max_other.
34 * @combined_count: Valid values are in the range 1 to the max_combined.
36 * This can be used to configure RX, TX and other channels.
39 struct ethtool_channels {
51 #endif /* _UAPI_LINUX_ETHTOOL_H */