ed257e3c3ff63607d9f586f8516d0ddbb82bc920
[dragonfly.git] / share / man / man4 / mxge.4
1 .\" Copyright (c) 2006, Myricom Inc
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 Myricom 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.
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/mxge.4,v 1.7.4.2.4.1 2009/04/15 03:14:26 kensmith Exp $
33 .\"
34 .Dd July 13, 2009
35 .Dt MXGE 4
36 .Os
37 .Sh NAME
38 .Nm mxge
39 .Nd "Myricom Myri10GE 10 Gigabit Ethernet adapter driver"
40 .Sh SYNOPSIS
41 To compile this driver into the kernel,
42 place the following lines in your
43 kernel configuration file:
44 .Bd -ragged -offset indent
45 .Cd "device mxge"
46 .Ed
47 .Pp
48 Alternatively, to load the driver as a
49 module at boot time, place the following line in
50 .Xr loader.conf 5 :
51 .Bd -literal -offset indent
52 if_mxge_load="YES"
53 .Ed
54 .Sh DESCRIPTION
55 The
56 .Nm
57 driver provides support for PCI Express 10 Gigabit Ethernet adapters based on
58 the Myricom LANai Z8E chip.
59 The driver supports Transmit/Receive checksum offload and hardware vlan
60 tagging.
61 .\"Support for Jumbo frames is not yet implemented, while support for TCP
62 .\"Segmentation Offload (TSO) as well as Large Receive Offload (LRO) is not
63 .\"implemented in
64 For further hardware information, see
65 .Pa http://www.myri.com/ .
66 .Pp
67 For questions related to hardware requirements,
68 refer to the documentation supplied with your Myri10GE adapter.
69 All hardware requirements listed apply to use with
70 .Dx .
71 .Sh HARDWARE
72 The
73 .Nm
74 driver supports 10 Gigabit Ethernet adapters based on the
75 Myricom LANai Z8E chips:
76 .Pp
77 .Bl -bullet -compact
78 .It
79 Myricom 10GBase-CX4 (10G-PCIE-8A-C, 10G-PCIE-8AL-C)
80 .It
81 Myricom 10GBase-R (10G-PCIE-8A-R, 10G-PCIE-8AL-R)
82 .It
83 Myricom 10G XAUI over ribbon fiber (10G-PCIE-8A-Q, 10G-PCIE-8AL-Q)
84 .El
85 .Sh LOADER TUNABLES
86 Tunables can be set at the
87 .Xr loader 8
88 prompt before booting the kernel or stored in
89 .Xr loader.conf 5 .
90 .Bl -tag -width indent
91 .It Va hw.mxge.flow_control_enabled
92 Whether or not hardware flow control is enabled on the adapter.
93 The default value is 1.
94 .It Va hw.mxge.intr_coal_delay
95 This value delays the generation of all interrupts in units of
96 1 microsecond.
97 The default value is 30.
98 .It Va hw.mxge.skip_pio_read
99 This value determines whether or not the driver may omit doing a
100 PIO read in the interrupt handler which ensures that the interrupt
101 line has been deasserted when using xPIC interrupts.
102 A non-zero value
103 may result in lower CPU overhead, however it may also result in
104 spurious interrupts.
105 The default value is 0.
106 This tunable has no effect when the device is
107 using MSI or MSI-X interrupts.
108 .It Va hw.mxge.max_slices
109 This value determines the maximum number of slices the driver
110 will attempt to use.
111 The default value is 1.
112 A slice is comprised
113 of a set of receive queues and an associated interrupt thread.
114 When using multiple slices, the NIC hashes traffic to different slices
115 based on the value of
116 .Va hw.mxge.rss_hash_type .
117 Using multiple slices requires that your motherboard and Myri10GE NIC
118 both be capable of MSI-X.
119 Older Myri10GE NICs can be field upgraded to add
120 MSI-X using the "10G NIC Tool Kit" for
121 .Fx
122 which is available from
123 .Pa http://www.myri.com/scs/download-10g-tools.html .
124 .Pp
125 .It Va hw.mxge.rss_hash_type
126 This value determines how incoming traffic is steered to different
127 slices.
128 This tunable is ignored when using just a single slice.
129 The legal values for this tunable are:
130 .Bl -tag -width "XXXX"
131 .It 1
132 Hash on the source and destination IPv4 addresses.
133 .It 2
134 Hash on source and destination IPv4 addresses and if the packet
135 is TCP, then also hash on the TCP source and destination ports.
136 .It 4
137 Hash on the TCP or UDP source ports.
138 This is the default value.
139 .El
140 .El
141 .Sh DIAGNOSTICS
142 .Bl -diag
143 .It "mxge%d: Unable to allocate bus resource: memory"
144 A fatal initialization error has occurred.
145 .It "mxge%d: Unable to allocate bus resource: interrupt"
146 A fatal initialization error has occurred.
147 .It "mxge%d: Could not find firmware image %s"
148 The appropriate firmware kld module was not installed.
149 This is a non-fatal initialization error, but will
150 result in running in a reduced performance mode.
151 .El
152 .Sh SUPPORT
153 For general information and support,
154 go to the Myricom support website at:
155 .Pa http://www.myri.com/scs/ .
156 .Sh SEE ALSO
157 .Xr altq 4 ,
158 .Xr arp 4 ,
159 .Xr ifmedia 4 ,
160 .Xr netintro 4 ,
161 .Xr ng_ether 4 ,
162 .Xr ifconfig 8 ,
163 .Xr firmware 9
164 .Sh HISTORY
165 The
166 .Nm
167 device driver first appeared in
168 .Fx 6.3 .
169 It was first ported to
170 .Dx 2.3 .
171 .Sh AUTHORS
172 The
173 .Nm
174 driver was written by
175 .An Andrew Gallatin Aq Mt gallatin@FreeBSD.org .