Make support for polling(4) more visible,
[dragonfly.git] / share / man / man4 / nfe.4
1 .\"     $OpenBSD: nfe.4,v 1.10 2006/08/30 22:56:05 jmc Exp $
2 .\"     $DragonFly: src/share/man/man4/nfe.4,v 1.7 2008/07/11 10:38:50 thomas Exp $
3 .\"
4 .\" Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
5 .\"
6 .\" Permission to use, copy, modify, and distribute this software for any
7 .\" purpose with or without fee is hereby granted, provided that the above
8 .\" copyright notice and this permission notice appear in all copies.
9 .\"
10 .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17 .\"
18 .Dd July 9, 2008
19 .Dt NFE 4
20 .Os
21 .Sh NAME
22 .Nm nfe
23 .Nd NVIDIA nForce MCP 10/100/Gigabit Ethernet driver
24 .Sh SYNOPSIS
25 To compile this driver into the kernel,
26 place the following lines in your
27 kernel configuration file:
28 .Bd -ragged -offset indent
29 .Cd "device miibus"
30 .Cd "device nfe"
31 .Ed
32 .Pp
33 Alternatively, to load the driver as a
34 module at boot time, place the following line in
35 .Xr loader.conf 5 :
36 .Bd -literal -offset indent
37 if_nfe_load="YES"
38 .Ed
39 .Sh DESCRIPTION
40 The
41 .Nm
42 driver supports PCI Ethernet adapters based on the NVIDIA
43 nForce Media and Communications Processors (MCP), such as
44 the nForce, nForce 2, nForce 3, CK804, MCP04, MCP51, MCP55,
45 MCP61, MCP65, MCP67, MCP73, MCP77 and MCP79 Ethernet controller chips.
46 .Pp
47 The
48 .Nm
49 driver supports the following
50 .Ar media
51 types:
52 .Pp
53 .Bl -tag -width autoselect -compact
54 .It Cm autoselect
55 Enable autoselection of the media type and options.
56 .It Cm 10baseT
57 Set 10Mbps operation.
58 .It Cm 100baseTX
59 Set 100Mbps (Fast Ethernet) operation.
60 .It Cm 1000baseT
61 Set 1000Mbps (Gigabit Ethernet) operation (recent models only).
62 .El
63 .Ss MIB Variables and Kernel Tunables
64 The following per-interface variables are implemented in the
65 .Va hw.nfe Ns Em X
66 branch of the
67 .Xr sysctl 3
68 MIB.
69 Kernel tunables with the same names, but using prefix
70 .Va hw.nfe
71 are also implemented, they apply to all
72 .Nm
73 interfaces in system and can be set in
74 .Xr loader.conf 5 .
75 .Bl -tag -width ".Va rx_ring_count"
76 .It Va imtimer
77 Interrupt moderation time (unit: microseconds).
78 The default value is 0.
79 A value of 0 means disabled.
80 A negative value, -Y, means hardware timer simulated interrupt moderation,
81 the simulated interrupt moderation timer will be set to Y.
82 A positive valye, Y, means hardware timer only interrupt moderation,
83 hardware timer will be set to Y.
84 Value can be tuned when the interface is running.
85 Positive values in the range 64-128 seems to be a reasonable.
86 The value -125 should work on most systems.
87 .It Va rx_ring_count
88 RX ring count.
89 sysctl node is read-only.
90 The default value is 128.
91 With heavier interrupt moderation (eg. imtimer=-250),
92 it is recommended to increase rx_ring_count (eg. to 512).
93 .El
94 .Pp
95 For more information on configuring this device, see
96 .Xr ifconfig 8 .
97 The
98 .Nm
99 driver supports
100 .Xr polling 4 .
101 .Sh SEE ALSO
102 .Xr arp 4 ,
103 .Xr ifmedia 4 ,
104 .Xr intro 4 ,
105 .Xr miibus 4 ,
106 .Xr netintro 4 ,
107 .Xr pci 4 ,
108 .Xr polling 4 ,
109 .Xr vlan 4 ,
110 .Xr loader.conf 5 ,
111 .Xr ifconfig 8
112 .Sh HISTORY
113 The
114 .Nm
115 device driver first appeared in
116 .Ox 3.9
117 and was imported into
118 .Dx 1.7 .
119 .Sh AUTHORS
120 .An -nosplit
121 The
122 .Nm
123 driver was written by
124 .An Jonathan Gray
125 .Aq jsg@openbsd.org
126 and
127 .An Damien Bergamini
128 .Aq damien@openbsd.org .
129 It was ported to
130 .Dx
131 by
132 .An Sepherosa Ziehau
133 .Aq sepherosa@gmail.com .
134 .Sh CAVEATS
135 NVIDIA refuse to release any documentation on their products.