1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
2 | /* |
3 | * Copyright (C) 2018 Red Hat, Inc. |
4 | */ |
5 | |
6 | #ifndef __NM_ETHTOOL_UTILS_H__ /* lgtm[cpp/duplicate-include-guard] */ |
7 | #define __NM_ETHTOOL_UTILS_H__ |
8 | |
9 | G_BEGIN_DECLS |
10 | |
11 | /*****************************************************************************/ |
12 | |
13 | #define NM_ETHTOOL_OPTNAME_FEATURE_ESP_HW_OFFLOAD "feature-esp-hw-offload" |
14 | #define NM_ETHTOOL_OPTNAME_FEATURE_ESP_TX_CSUM_HW_OFFLOAD "feature-esp-tx-csum-hw-offload" |
15 | #define NM_ETHTOOL_OPTNAME_FEATURE_FCOE_MTU "feature-fcoe-mtu" |
16 | #define NM_ETHTOOL_OPTNAME_FEATURE_GRO "feature-gro" |
17 | #define NM_ETHTOOL_OPTNAME_FEATURE_GSO "feature-gso" |
18 | #define NM_ETHTOOL_OPTNAME_FEATURE_HIGHDMA "feature-highdma" |
19 | #define NM_ETHTOOL_OPTNAME_FEATURE_HW_TC_OFFLOAD "feature-hw-tc-offload" |
20 | #define NM_ETHTOOL_OPTNAME_FEATURE_L2_FWD_OFFLOAD "feature-l2-fwd-offload" |
21 | #define NM_ETHTOOL_OPTNAME_FEATURE_LOOPBACK "feature-loopback" |
22 | #define NM_ETHTOOL_OPTNAME_FEATURE_LRO "feature-lro" |
23 | #define NM_ETHTOOL_OPTNAME_FEATURE_MACSEC_HW_OFFLOAD "feature-macsec-hw-offload" |
24 | #define NM_ETHTOOL_OPTNAME_FEATURE_NTUPLE "feature-ntuple" |
25 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX "feature-rx" |
26 | #define NM_ETHTOOL_OPTNAME_FEATURE_RXHASH "feature-rxhash" |
27 | #define NM_ETHTOOL_OPTNAME_FEATURE_RXVLAN "feature-rxvlan" |
28 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_ALL "feature-rx-all" |
29 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_FCS "feature-rx-fcs" |
30 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_GRO_HW "feature-rx-gro-hw" |
31 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_GRO_LIST "feature-rx-gro-list" |
32 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_UDP_GRO_FORWARDING "feature-rx-udp-gro-forwarding" |
33 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_UDP_TUNNEL_PORT_OFFLOAD "feature-rx-udp_tunnel-port-offload" |
34 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_FILTER "feature-rx-vlan-filter" |
35 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_FILTER "feature-rx-vlan-stag-filter" |
36 | #define NM_ETHTOOL_OPTNAME_FEATURE_RX_VLAN_STAG_HW_PARSE "feature-rx-vlan-stag-hw-parse" |
37 | #define NM_ETHTOOL_OPTNAME_FEATURE_SG "feature-sg" |
38 | #define NM_ETHTOOL_OPTNAME_FEATURE_TLS_HW_RECORD "feature-tls-hw-record" |
39 | #define NM_ETHTOOL_OPTNAME_FEATURE_TLS_HW_RX_OFFLOAD "feature-tls-hw-rx-offload" |
40 | #define NM_ETHTOOL_OPTNAME_FEATURE_TLS_HW_TX_OFFLOAD "feature-tls-hw-tx-offload" |
41 | #define NM_ETHTOOL_OPTNAME_FEATURE_TSO "feature-tso" |
42 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX "feature-tx" |
43 | #define NM_ETHTOOL_OPTNAME_FEATURE_TXVLAN "feature-txvlan" |
44 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_FCOE_CRC "feature-tx-checksum-fcoe-crc" |
45 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV4 "feature-tx-checksum-ipv4" |
46 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IPV6 "feature-tx-checksum-ipv6" |
47 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_IP_GENERIC "feature-tx-checksum-ip-generic" |
48 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_CHECKSUM_SCTP "feature-tx-checksum-sctp" |
49 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_ESP_SEGMENTATION "feature-tx-esp-segmentation" |
50 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_FCOE_SEGMENTATION "feature-tx-fcoe-segmentation" |
51 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_GRE_CSUM_SEGMENTATION "feature-tx-gre-csum-segmentation" |
52 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_GRE_SEGMENTATION "feature-tx-gre-segmentation" |
53 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_GSO_LIST "feature-tx-gso-list" |
54 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_GSO_PARTIAL "feature-tx-gso-partial" |
55 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_GSO_ROBUST "feature-tx-gso-robust" |
56 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_IPXIP4_SEGMENTATION "feature-tx-ipxip4-segmentation" |
57 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_IPXIP6_SEGMENTATION "feature-tx-ipxip6-segmentation" |
58 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_NOCACHE_COPY "feature-tx-nocache-copy" |
59 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER "feature-tx-scatter-gather" |
60 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCATTER_GATHER_FRAGLIST "feature-tx-scatter-gather-fraglist" |
61 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_SCTP_SEGMENTATION "feature-tx-sctp-segmentation" |
62 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP6_SEGMENTATION "feature-tx-tcp6-segmentation" |
63 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_ECN_SEGMENTATION "feature-tx-tcp-ecn-segmentation" |
64 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_MANGLEID_SEGMENTATION \ |
65 | "feature-tx-tcp-mangleid-segmentation" |
66 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_TCP_SEGMENTATION "feature-tx-tcp-segmentation" |
67 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_TUNNEL_REMCSUM_SEGMENTATION \ |
68 | "feature-tx-tunnel-remcsum-segmentation" |
69 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_SEGMENTATION "feature-tx-udp-segmentation" |
70 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_CSUM_SEGMENTATION \ |
71 | "feature-tx-udp_tnl-csum-segmentation" |
72 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_UDP_TNL_SEGMENTATION "feature-tx-udp_tnl-segmentation" |
73 | #define NM_ETHTOOL_OPTNAME_FEATURE_TX_VLAN_STAG_HW_INSERT "feature-tx-vlan-stag-hw-insert" |
74 | |
75 | #define NM_ETHTOOL_OPTNAME_COALESCE_ADAPTIVE_RX "coalesce-adaptive-rx" |
76 | #define NM_ETHTOOL_OPTNAME_COALESCE_ADAPTIVE_TX "coalesce-adaptive-tx" |
77 | #define NM_ETHTOOL_OPTNAME_COALESCE_PKT_RATE_HIGH "coalesce-pkt-rate-high" |
78 | #define NM_ETHTOOL_OPTNAME_COALESCE_PKT_RATE_LOW "coalesce-pkt-rate-low" |
79 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES "coalesce-rx-frames" |
80 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_HIGH "coalesce-rx-frames-high" |
81 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_IRQ "coalesce-rx-frames-irq" |
82 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_FRAMES_LOW "coalesce-rx-frames-low" |
83 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS "coalesce-rx-usecs" |
84 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_HIGH "coalesce-rx-usecs-high" |
85 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_IRQ "coalesce-rx-usecs-irq" |
86 | #define NM_ETHTOOL_OPTNAME_COALESCE_RX_USECS_LOW "coalesce-rx-usecs-low" |
87 | #define NM_ETHTOOL_OPTNAME_COALESCE_SAMPLE_INTERVAL "coalesce-sample-interval" |
88 | #define NM_ETHTOOL_OPTNAME_COALESCE_STATS_BLOCK_USECS "coalesce-stats-block-usecs" |
89 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES "coalesce-tx-frames" |
90 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_HIGH "coalesce-tx-frames-high" |
91 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_IRQ "coalesce-tx-frames-irq" |
92 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_FRAMES_LOW "coalesce-tx-frames-low" |
93 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS "coalesce-tx-usecs" |
94 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_HIGH "coalesce-tx-usecs-high" |
95 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_IRQ "coalesce-tx-usecs-irq" |
96 | #define NM_ETHTOOL_OPTNAME_COALESCE_TX_USECS_LOW "coalesce-tx-usecs-low" |
97 | |
98 | #define NM_ETHTOOL_OPTNAME_RING_RX "ring-rx" |
99 | #define NM_ETHTOOL_OPTNAME_RING_RX_JUMBO "ring-rx-jumbo" |
100 | #define NM_ETHTOOL_OPTNAME_RING_RX_MINI "ring-rx-mini" |
101 | #define NM_ETHTOOL_OPTNAME_RING_TX "ring-tx" |
102 | |
103 | #define NM_ETHTOOL_OPTNAME_PAUSE_AUTONEG "pause-autoneg" |
104 | #define NM_ETHTOOL_OPTNAME_PAUSE_RX "pause-rx" |
105 | #define NM_ETHTOOL_OPTNAME_PAUSE_TX "pause-tx" |
106 | |
107 | /*****************************************************************************/ |
108 | |
109 | G_END_DECLS |
110 | |
111 | #endif /* __NM_ETHTOOL_UTILS_H__ */ |
112 | |