1 .\" Copyright (c) 2020, Advanced Micro Devices Inc.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are met:
7 .\" 1. Redistributions of source code must retain the above copyright notice,
8 .\" this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of Advanced Micro Devices Inc., nor the names of its
15 .\" contributors may be used to endorse or promote products derived from
16 .\" this software without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
30 .\" * Other names and brands may be claimed as the property of others.
37 .Nd "Advanced Micro Devices 10G Ethernet driver"
39 To compile this driver into the kernel,
40 place the following lines in your
41 kernel configuration file:
42 .Bd -ragged -offset indent
47 Alternatively, to load the driver as a
48 module at boot time, place the following line in
50 .Bd -literal -offset indent
56 driver enables PCI-E based 10G Ethernet controller inbuilt in the
59 The following features are supported.
65 Jumbo frames (9000 Bytes)
67 Transmit and Receive checksum offload
69 TCP segmentation offload (TSO)
71 VLAN tag insertion/extraction
77 Receive side steering (RSS)
86 All the above mentioned features are enabled by default.
88 For hardware related questions, please refer the documentation supplied
89 along with AMD EPYC processors.
91 The following variables are available as
94 .Bl -tag -width indent
95 .It Va dev.ax.X.mac_stats
96 Dumps the transmit and receive statistics counter values for the controller.
97 This includes statistics specific to each transmit and receive queue.
98 .It Va dev.ax.X.channels_info
99 Dumps the permissible and default configured transmit and receive channel
101 .It Va dev.ax.X.ringparam_info
102 Dumps the permissible and default configured descriptor information for the
103 transmit and receive queue.
104 .It Va dev.ax.X.link_ksettings_info
105 Dumps the current link setting like link mode, speed, duplex settings.
106 .It Va dev.ax.X.pauseparam_info
107 Dumps the current flow-control settings.
108 .It Va dev.ax.X.coalesce_info
109 Dumps the current interrupt coalescing settings.
110 .It Va dev.ax.X.link_info
111 Dumps the current state of the Link.
112 .It Va dev.ax.X.drv_info
113 Dumps the driver and controller firmware version information.
114 .It Va dev.ax.X.YYYY_register
115 .It Va dev.ax.X.YYYY_register_values
116 Sysctl to dump a specific register from a specific block of the controller.
117 YYYY specifies the block.
118 The following blocks are supported.
130 Set the offset of the register to the first variable, and then read the value
131 of the register by reading the second variable.
132 .It Va dev.ax.X.axgbe_debug_level
133 Configure the log-level for the driver.
136 .It Va dev.ax.X.single_fl
137 This variable must be set before loading the driver, either via
139 or through the use of
141 This cannot be modified when driver is loaded.
143 Setting this variable in
145 needs the system to be restarted to take effect.
148 use the wrapper variable
149 .Va dev.ax.single_fl\&,
150 which will configure all AMD interfaces with single freelist per receive queue.
151 Default is 2 freelist per receive queue.
153 This variable is to configure the interface when single freelist is needed.
155 Basically, this will control the software behavior of how the receive
156 descriptors are used.
158 Setting this variable to 1, will use 1 Freelist per receive queue.
160 Setting this variable to 0, will use 2 Freelist per receive queue.
162 Based on the setting, the receive buffers are programmed accordingly on the
163 received descriptors.
165 By default, this variable will be set to 0, meaning the interfaces will be
166 configured for regular data traffic (not netmap traffic).
167 .It Va dev.ax.X.sph_enabled
168 This variable must be set before loading the driver, either via
170 or through the use of
172 This cannot be modified when driver is loaded.
174 Setting this variable in
176 needs the system to be restarted to take effect.
179 use the wrapper variable
180 .Va dev.ax.sph_enable\&,
181 which will configure(enable/disable) split header support in all
184 This variable is to control enable/disable of the split header feature in
187 Setting this variable to 1, will enable split header feature.
189 Setting this variable to 0, will disable split header feature.
191 By default, this variable will be set to 1, meaning the Split header support be
194 NOTE: It is recommended to use this variable only when
197 Otherwise let it be default value.
208 device driver first appeared in
211 Another version of the driver is already present in
213 This driver was named as "axgbe" earlier, which is renamed as "axa" now.
214 This driver is for the ACPI based Ethernet controllers in the previous/older
215 version of the hardware.
216 This driver is authored by
217 .Aq Mt andrew@FreeBSD.org .
221 device driver was written by
222 .An Advanced Micro Devices Inc .
224 For any issues and support requirements, email the details to
225 .Aq Mt rajesh1.kumar@amd.com .