xref: /dragonfly/share/man/man4/ix.4 (revision 7ff0fc30)
1.\" Copyright (c) 2001-2008, Intel Corporation
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions are met:
6.\"
7.\" 1. Redistributions of source code must retain the above copyright notice,
8.\"    this list of conditions and the following disclaimer.
9.\"
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.
13.\"
14.\" 3. Neither the name of the Intel Corporation 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.
17.\"
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.
29.\"
30.\" * Other names and brands may be claimed as the property of others.
31.\"
32.\" $FreeBSD: src/share/man/man4/ixgbe.4,v 1.2 2008/06/17 21:14:02 brueffer Exp $
33.\"
34.Dd December 17, 2017
35.Dt IX 4
36.Os
37.Sh NAME
38.Nm ix
39.Nd "Intel(R) 10Gb Ethernet driver"
40.Sh SYNOPSIS
41To compile this driver into the kernel,
42place the following line in your
43kernel configuration file:
44.Bd -ragged -offset indent
45.Cd "device ix"
46.Ed
47.Pp
48Alternatively, to load the driver as a
49module at boot time, place the following line in
50.Xr loader.conf 5 :
51.Bd -literal -offset indent
52if_ix_load="YES"
53.Ed
54.Sh DESCRIPTION
55The
56.Nm
57driver provides support for PCI Express 10Gb Ethernet adapters based on
58the Intel
5982598,
6082599,
61and
62X540
63Ethernet controller chips.
64The
65.Nm
66driver supports:
67.Pp
68.Bl -item -offset indent -compact
69.It
70Transmit/Receive checksum offload for IP/UDP/TCP.
71.\"Jumbo Frames.
72.It
73Interrupt moderation
74.It
75TCP segmentation offload (TSO)
76.It
77Receive side scaling (RSS)
78.It
79Multiple tranmission queues
80.It
81Multiple vector MSI-X
82.It
83VLAN tag stripping and inserting
84.El
85.Pp
86If
87.Xr polling 4
88or MSI-X is used,
89by default,
90the
91.Nm
92driver will try enabling as many reception queues and transmission queues
93as are allowed by the number of CPUs in the system.
94.Pp
95If multiple transmission queues are used,
96the round-robin arbitration is performed among the transmission queues.
97And if both TSO and multiple tranmission queues are used,
98the round-robin arbitration between transmission queues is done at the
99TCP segment boundary after the hardware segmentation is performed.
100.Pp
10182598 supports 16 reception queues and 32 transmission queues.
102MSI-X is not enabled due to hardware errata.
103Under MSI or legacy interrupt mode,
1042 reception queues are enabled for hardware RSS hash
105and only 1 transmission queue is enable.
106.Pp
10782599 and X540 supports 16 reception queues and 64 transmission queues.
108MSI-X is enable by default.
109However,
110due to the number of MSI-X vectors is 64,
111at most 16 reception queues and 32 transmission queues will be enabled
112under MSI-X mode.
113.Pp
114The
115.Nm
116driver supports the following media types:
117.Bl -tag -width ".Cm autoselect"
118.It Cm autoselect
119Enables auto-negotiation for speed and duplex.
120.El
121.Pp
122The
123.Nm
124driver supports the following media options:
125.Bl -tag -width ".Cm forcepause"
126.It Cm rxpause
127Enable flow control PAUSE reception.
128.It Cm txpause
129Enable flow control PAUSE transmission.
130.It Cm forcepause
131Force flow control PAUSE operation as configured by
132.Cm rxpause
133and
134.Cm txpause
135media options.
136.El
137.Pp
138For more information on configuring this device, see
139.Xr ifconfig 8 .
140The
141.Nm
142driver supports
143.Xr polling 4 .
144.Sh HARDWARE
145The
146.Nm
147driver supports Gigabit Ethernet adapters based on the Intel
14882598,
14982599,
150and
151X540
152controller chips:
153.Pp
154.Bl -bullet -compact
155.It
156Intel 10 Gigabit AT Server Adapter
157.It
158Intel 82598EB 10 Gigabit Ethernet Controller
159.It
160Intel 82599EB 10 Gigabit Ethernet Controller
161.It
162Intel 82599EN 10 Gigabit Ethernet Controller
163.It
164Intel 82599ES 10 Gigabit Ethernet Controller
165.It
166Intel Ethernet Controller X540-AT2
167.It
168Intel Ethernet Controller X550-AT
169.It
170Intel Ethernet Controller X550-AT2
171.It
172Intel Ethernet Controller X550-BT2
173.It
174Intel Ethernet Connection X557-AT
175.It
176Intel Ethernet Connection X557-AT2
177.It
178Intel Ethernet Connection X557-AT4
179.It
180Intel Ethernet Controller X710-AM2
181.It
182Intel Ethernet Converged Network Adapter X520-DA1
183.It
184Intel Ethernet Converged Network Adapter X520-DA2
185.It
186Intel Ethernet Converged Network Adapter X520-LR1
187.It
188Intel Ethernet Converged Network Adapter X520-QDA1
189.It
190Intel Ethernet Converged Network Adapter X520-SR1
191.It
192Intel Ethernet Converged Network Adapter X520-SR2
193.It
194Intel Ethernet Converged Network Adapter X540-T1
195.It
196Intel Ethernet Converged Network Adapter X540-T2
197.It
198Intel Ethernet Converged Network Adapter X550-T1
199.It
200Intel Ethernet Converged Network Adapter X550-T2
201.It
202Intel Ethernet Converged Network Adapter X710-DA2
203.It
204Intel Ethernet Converged Network Adapter X710-DA4
205.El
206.Sh TUNABLES
207Tunables can be set at the
208.Xr loader 8
209prompt before booting the kernel or stored in
210.Xr loader.conf 5 .
211.Em Y
212is the device unit number.
213.Bl -tag -width ".Va hw.ixY.unsupported_sfp"
214.It Va hw.ix.rxd Va hw.ixY.rxd
215Number of receive descriptors allocated by the driver.
216The default value is 2048.
217The minimum is 64,
218and the maximum is 4096.
219.It Va hw.ix.txd Va hw.ixY.txd
220Number of transmit descriptors allocated by the driver.
221The default value is 2048.
222The minimum is 64,
223and the maximum is 4096.
224.It Va hw.ix.rxr Va hw.ixY.rxr
225This tunable specifies the number of reception queues could be enabled.
226Maximum allowed value for these tunables is device specific
227and it must be power of 2 aligned.
228Setting these tunables to 0 allows the driver to make
229as many reception queues ready-for-use as allowed by the number of CPUs.
230.It Va hw.ix.txr Va hw.ixY.txr
231This tunable specifies the number of transmission queues could be enabled.
232Maximum allowed value for these tunables is device specific
233and it must be power of 2 aligned.
234Setting these tunables to 0 allows the driver to make
235as many transmission queues ready-for-use as allowed by the number of CPUs.
236.It Va hw.ix.msix.enable Va hw.ixY.msix.enable
237By default,
238the driver will use MSI-X if it is supported.
239This behaviour can be turned off by setting this tunable to 0.
240.It Va hw.ix.msi.enable Va hw.ixY.msi.enable
241If MSI-X is disabled and MSI is supported,
242the driver will use MSI.
243This behavior can be turned off by setting this tunable to 0.
244.It Va hw.ixY.msi.cpu
245If MSI is used,
246it specifies the MSI's target CPU.
247.It Va hw.ix.unsupported_sfp
248By default,
249this driver does not allow "unsupported" SFP modules.
250This behavior can be changed by setting this tunable to 1.
251.It Va hw.ix.flow_ctrl Va hw.ixY.flow_ctrl
252The default flow control settings.
253Supported values are:
254rxpause (only enable PAUSE reception),
255txpause (only enable PAUSE transmission),
256full (enable PAUSE reception and transmission),
257none (disable flow control PAUSE operation),
258force-rxpause (force PAUSE reception),
259force-txpause (force PAUSE transmission),
260force-full (forcefully enable PAUSE reception and transmission),
261force-none (forcefully disable flow control PAUSE operation).
262Default is none.
263.It Va hw.ix.direct_input
264By default,
265if the
266.Xr polling 4
267is enabled,
268the driver will handle input packets directly,
269instead of queuing input packets for further processing.
270The direct input packets handling improves performance and
271stablize latency.
272.El
273.Sh MIB Variables
274A number of per-interface variables are implemented in the
275.Va dev.ix. Ns Em Y
276branch of the
277.Xr sysctl 3
278MIB.
279.Bl -tag -width "rxtx_intr_rate"
280.It Va rxr
281Number of reception queues could be enabled (read-only).
282Use the tunable
283.Va hw.ix.rxr
284or
285.Va hw.ixY.rxr
286to configure it.
287.It Va rxr_inuse
288Number of reception queues being used (read-only).
289.It Va txr
290Number of transmission queues could be enabled (read-only).
291Use the tunable
292.Va hw.ix.txr
293or
294.Va hw.ixY.txr
295to configure it.
296.It Va txr_inuse
297Number of transmission queues being used (read-only).
298.It Va rxd
299Number of descriptors per reception queue (read-only).
300Use the tunable
301.Va hw.ix.rxd
302or
303.Va hw.ixY.rxd
304to configure it.
305.It Va txd
306Number of descriptors per transmission queue (read-only).
307Use the tunable
308.Va hw.ix.txd
309or
310.Va hw.ixY.txd
311to configure it.
312.It Va rxtx_intr_rate
313If MSI or legacy interrupt is used,
314this sysctl controls the highest possible frequency
315that interrupt could be generated by the device.
316If MSI-X is used,
317this sysctl controls the highest possible frequency
318that interrupt could be generated by the MSI-X vectors,
319which aggregate transmission queue and reception queue procecssing.
320It is 8000 by default (125us).
321.It Va rx_intr_rate
322If MSI-X is used,
323this sysctl controls the highest possible frequency
324that interrupt could be generated by the MSI-X vectors,
325which only process reception queue.
326It is 8000 by default (125us).
327.It Va tx_intr_rate
328If MSI-X is used,
329this sysctl controls the highest possible frequency
330that interrupt could be generated by the MSI-X vectors,
331which only process transmission queue.
332It is 6000 by default (~150us).
333.It Va sts_intr_rate
334If MSI-X is used,
335this sysctl controls the highest possible frequency
336that interrupt could be generated by the MSI-X vectors,
337which only process chip status changes.
338It is 8000 by default (125us).
339.It Va tx_intr_nsegs
340Transmission interrupt is asked to be generated upon every
341.Va tx_intr_nsegs
342transmission descritors having been setup.
343The default value is 1/16 of the number of transmission descriptors per queue.
344.It Va tx_wreg_nsegs
345The number of transmission descriptors should be setup
346before the hardware register is written.
347Setting this value too high will have negative effect
348on transmission timeliness.
349Setting this value too low will hurt overall transmission performance
350due to the frequent hardware register writing.
351The default value is 8.
352.It Va rx_wreg_nsegs
353The number of reception descriptors should be setup
354before the hardware register is written.
355Setting this value too high will make device drop incoming packets.
356Setting this value too low will hurt overall reception performance
357due to the frequent hardware register writing.
358The default value is 32.
359.It Va direct_input
360See
361.Va hw.ix.direct_input .
362.Xr polling 4
363needs to be turned off and turned on again to make this variable take effect.
364.El
365.Sh SEE ALSO
366.Xr altq 4 ,
367.Xr arp 4 ,
368.Xr ifmedia 4 ,
369.Xr netintro 4 ,
370.Xr ng_ether 4 ,
371.Xr polling 4 ,
372.Xr vlan 4 ,
373.Xr ifconfig 8
374.Sh HISTORY
375The
376.Nm
377device driver first appeared in
378.Dx 3.1 .
379.Sh AUTHORS
380The
381.Nm
382driver was written by
383.An Intel Corporation Aq Mt freebsdnic@mailbox.intel.com .
384