xref: /linux/net/ethtool/common.h (revision 4eb7ae7a301d3586c3351e81d5c3cfe2304a1a6a)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef _ETHTOOL_COMMON_H
4 #define _ETHTOOL_COMMON_H
5 
6 #include <linux/ethtool.h>
7 
8 /* compose link mode index from speed, type and duplex */
9 #define ETHTOOL_LINK_MODE(speed, type, duplex) \
10 	ETHTOOL_LINK_MODE_ ## speed ## base ## type ## _ ## duplex ## _BIT
11 
12 extern const char
13 netdev_features_strings[NETDEV_FEATURE_COUNT][ETH_GSTRING_LEN];
14 extern const char
15 rss_hash_func_strings[ETH_RSS_HASH_FUNCS_COUNT][ETH_GSTRING_LEN];
16 extern const char
17 tunable_strings[__ETHTOOL_TUNABLE_COUNT][ETH_GSTRING_LEN];
18 extern const char
19 phy_tunable_strings[__ETHTOOL_PHY_TUNABLE_COUNT][ETH_GSTRING_LEN];
20 extern const char link_mode_names[][ETH_GSTRING_LEN];
21 
22 #endif /* _ETHTOOL_COMMON_H */
23