]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - share/man/man4/vge.4
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / share / man / man4 / vge.4
1 .\" Copyright (c) 2004
2 .\"     Bill Paul <wpaul@windriver.com>. 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
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by Bill Paul.
15 .\" 4. Neither the name of the author nor the names of any co-contributors
16 .\"    may be used to endorse or promote products derived from this software
17 .\"   without specific prior written permission.
18 .\"
19 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
23 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
29 .\" THE POSSIBILITY OF SUCH DAMAGE.
30 .\"
31 .\" $FreeBSD$
32 .\"
33 .Dd December 18, 2009
34 .Dt VGE 4
35 .Os
36 .Sh NAME
37 .Nm vge
38 .Nd "VIA Networking Technologies Velocity Gigabit Ethernet adapter driver"
39 .Sh SYNOPSIS
40 To compile this driver into the kernel,
41 place the following lines in your
42 kernel configuration file:
43 .Bd -ragged -offset indent
44 .Cd "device miibus"
45 .Cd "device vge"
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_vge_load="YES"
53 .Ed
54 .Sh DESCRIPTION
55 The
56 .Nm
57 driver provides support for various NICs and embedded Ethernet interfaces
58 based on the VIA Technologies VT6120, VT6122, VT6130 and VT6132 Velocity
59 Family Gigabit Ethernet controller chips.
60 .Pp
61 The VT6120/VT6122 is a 33/66MHz 64-bit PCI device which combines a tri-speed
62 MAC with an integrated 10/100/1000 copper PHY.
63 (Some older cards use an external PHY.)
64 The VT6130/VT6132 is the PCI express version of Velocity family.
65 The MAC supports TCP/IP hardware
66 checksums (IPv4 only), TCP large send, VLAN tag insertion and stripping,
67 as well as VLAN filtering, a 64-entry CAM filter and a 64-entry VLAN filter,
68 64-bit multicast hash filter, 4 separate transmit DMA queues, flow control
69 and jumbo frames up to 16K in size.
70 The Velocity family controllers have a 16K receive FIFO and 48K transmit FIFO.
71 .Pp
72 The
73 .Nm
74 driver takes advantage of the controller's checksum offload and VLAN
75 tagging features, as well as the jumbo frame and CAM filter support.
76 The CAM filter is used for multicast address filtering to provide
77 64 perfect multicast address filter support.
78 If it is necessary for the interface to join more than 64 multicast
79 groups, the driver will switch over to using the hash filter.
80 .Pp
81 The jumbo frame support can be enabled by setting the interface MTU
82 to any value larger than the default of 1500 bytes, up to a maximum
83 of 9000 bytes.
84 The receive and transmit checksum offload support
85 can be toggled on and off using the
86 .Xr ifconfig 8
87 utility.
88 .Pp
89 The
90 .Nm
91 driver supports the following media types:
92 .Bl -tag -width ".Cm 10baseT/UTP"
93 .It Cm autoselect
94 Enable autoselection of the media type and options.
95 The user can manually override
96 the autoselected mode by adding media options to
97 .Xr rc.conf 5 .
98 .It Cm 10baseT/UTP
99 Set 10Mbps operation.
100 The
101 .Xr ifconfig 8
102 .Cm mediaopt
103 option can also be used to select either
104 .Cm full-duplex
105 or
106 .Cm half-duplex
107 modes.
108 .It Cm 100baseTX
109 Set 100Mbps (Fast Ethernet) operation.
110 The
111 .Xr ifconfig 8
112 .Cm mediaopt
113 option can also be used to select either
114 .Cm full-duplex
115 or
116 .Cm half-duplex
117 modes.
118 .It Cm 1000baseTX
119 Set 1000baseTX operation over twisted pair.
120 The
121 .Xr ifconfig 8
122 .Cm mediaopt
123 option can also be used to select either
124 .Cm full-duplex
125 or
126 .Cm half-duplex
127 modes.
128 .El
129 .Pp
130 The
131 .Nm
132 driver supports the following media options:
133 .Bl -tag -width ".Cm full-duplex"
134 .It Cm full-duplex
135 Force full duplex operation.
136 .It Cm half-duplex
137 Force half duplex operation.
138 .El
139 .Pp
140 The
141 .Nm
142 driver also supports one special link option for 1000baseTX cards:
143 .Bl -tag -width ".Cm link0"
144 .It Cm link0
145 With 1000baseTX cards, establishing a link between two ports requires
146 that one port be configured as a master and the other a slave.
147 With autonegotiation,
148 the master/slave settings will be chosen automatically.
149 However when manually selecting the link state, it is necessary to
150 force one side of the link to be a master and the other a slave.
151 The
152 .Nm
153 driver configures the ports as slaves by default.
154 Setting the
155 .Cm link0
156 flag with
157 .Xr ifconfig 8
158 will set a port as a master instead.
159 .El
160 .Pp
161 For more information on configuring this device, see
162 .Xr ifconfig 8 .
163 .Sh HARDWARE
164 The
165 .Nm
166 driver supports VIA Networking VT6120, VT6122, VT6130 and VT6132 based
167 Gigabit Ethernet adapters including:
168 .Pp
169 .Bl -bullet -compact
170 .It
171 VIA Networking LAN-on-motherboard Gigabit Ethernet
172 .It
173 ZyXEL GN650-T 64-bit PCI Gigabit Ethernet NIC (ZX1701)
174 .It
175 ZyXEL GN670-T 32-bit PCI Gigabit Ethernet NIC (ZX1702)
176 .El
177 .Sh LOADER TUNABLES
178 Tunables can be set at the
179 .Xr loader 8
180 prompt before booting the kernel or stored in
181 .Xr loader.conf 5 .
182 .Bl -tag -width "xxxxxx"
183 .It Va hw.vge.msi_disable
184 This tunable disables MSI support on the Ethernet hardware.
185 The default value is 0.
186 .El
187 .Sh SYSCTL VARIABLES
188 The following variables are available as both
189 .Xr sysctl 8
190 variables and
191 .Xr loader 8
192 tunables:
193 .Bl -tag -width "xxxxxx"
194 .It Va dev.vge.%d.int_holdoff
195 Maximum number of time to delay interrupts.
196 The valid range is 0 to 5100 in units of 1us, the default is
197 150 (150us).
198 The resolution of of timer is about 20us so finer tuning than
199 20us wouldn't be available.
200 The interface should be brought down and up again before a change
201 takes effect.
202 .It Va dev.vge.%d.rx_coal_pkt
203 Maximum number of packets to fire Rx completion interrupt.
204 The valid range is 1 to 255, the default is 64.
205 .It Va dev.vge.%d.tx_coal_pkt
206 Maximum number of packets to fire Tx completion interrupt.
207 The valid range is 1 to 255, the default is 128.
208 .El
209 .Sh DIAGNOSTICS
210 .Bl -diag
211 .It "vge%d: couldn't map memory"
212 A fatal initialization error has occurred.
213 .It "vge%d: couldn't map ports"
214 A fatal initialization error has occurred.
215 .It "vge%d: couldn't map interrupt"
216 A fatal initialization error has occurred.
217 .It "vge%d: failed to enable memory mapping!"
218 The driver failed to initialize PCI shared memory mapping.
219 This might
220 happen if the card is not in a bus-master slot.
221 .It "vge%d: watchdog timeout"
222 The device has stopped responding to the network, or there is a problem with
223 the network connection (cable).
224 .El
225 .Sh SEE ALSO
226 .Xr altq 4 ,
227 .Xr arp 4 ,
228 .Xr miibus 4 ,
229 .Xr netintro 4 ,
230 .Xr ng_ether 4 ,
231 .Xr polling 4 ,
232 .Xr vlan 4 ,
233 .Xr ifconfig 8
234 .Sh HISTORY
235 The
236 .Nm
237 device driver first appeared in
238 .Fx 5.3 .
239 .Sh AUTHORS
240 The
241 .Nm
242 driver was written by
243 .An Bill Paul Aq wpaul@windriver.com .