]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man4/sk98lin.4
Formatting fixes
[thirdparty/man-pages.git] / man4 / sk98lin.4
CommitLineData
fea681da
MK
1.\" (C)Copyright 1999-2003 Marvell(R) -- linux@syskonnect.de
2.\" sk98lin.4 1.1 2003/12/17 10:03:18
3.\" This manpage can be viewed using `groff -Tascii -man sk98lin.4 | less`
4.\"
5.\" This is free documentation; you can redistribute it and/or
6.\" modify it under the terms of the GNU General Public License as
7.\" published by the Free Software Foundation; either version 2 of
8.\" the License, or (at your option) any later version.
9.\"
10.\" The GNU General Public License's references to "object code"
11.\" and "executables" are to be interpreted as the output of any
12.\" document formatting or typesetting system, including
13.\" intermediate and printed output.
14.\"
15.\" This manual is distributed in the hope that it will be useful,
16.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18.\" GNU General Public License for more details.
19.\"
20.\" You should have received a copy of the GNU General Public
21.\" License along with this manual; if not, write to the Free
22.\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23.\" USA.
24.\"
25.TH SK98LIN 4 "2003/12/17 10:03:18" "sk98lin 6.21"
26.SH NAME
27sk98lin \- Marvell/SysKonnect Gigabit Ethernet driver v6.21
28.SH SYNOPSIS
29.B insmod sk98lin.o
30.RB [ Speed_A=\c
31.IR i,j,... ]
32.RB [ Speed_B=\c
33.IR i,j,... ]
34.RB [ AutoNeg_A=\c
35.IR i,j,... ]
36.RB [ AutoNeg_B=\c
37.IR i,j,... ]
38.RB [ DupCap_A=\c
39.IR i,j,... ]
40.RB [ DupCap_B=\c
41.IR i,j,... ]
42.RB [ FlowCtrl_A=\c
43.IR i,j,... ]
44.RB [ FlowCtrl_B=\c
45.IR i,j,... ]
46.RB [ Role_A=\c
47.IR i,j,... ]
48.RB [ Role_B=\c
49.IR i,j,... ]
50.RB [ ConType=\c
51.IR i,j,... ]
52.RB [ Moderation=\c
53.IR i,j,... ]
54.RB [ IntsPerSec=\c
55.IR i,j,... ]
56.RB [ PrefPort=\c
57.IR i,j,... ]
58.RB [ RlmtMode=\c
59.IR i,j,... ]
60.SH DESCRIPTION
61.B sk98lin
62is the Gigabit Ethernet driver for Marvell and SysKonnect network adapter cards.
63It supports SysKonnect SK-98xx/SK-95xx compliant Gigabit Ethernet Adapter and any Yukon compliant chipset.
64
65When loading the driver using insmod, parameters for the network adapter cards might be stated as a sequence of comma separated commands. If for instance two network adapters are installed and AutoNegotiation on Port A of the first adapter should be ON, but on the Port A of the second adapter switched OFF, one must enter:
66
67 insmod sk98lin.o AutoNeg_A=On,Off
68
69After
70.B sk98lin
71is bound to one or more adapter cards and the
72.IR /proc
73filesystem is mounted on your system, a dedicated statistics file will be created in folder
74.IR /proc/net/sk98lin
75for all ports of the installed network adapter cards. Those files are named
76.IR eth[x]
77whereas
78.IR x
79is the number of the interface that has been assigned to a dedicated port by the system.
80
81If loading is finished, any desired IP address can be assigned to the respective
82.IR eth[x]
83interface using the
84.BR ifconfig (8)
85command. This causes the adapter to connect to the Ethernet and to display a status message on the console saying "ethx: network connection up using port y" followed by the configured or detected connection parameters.
86
87The
88.B sk98lin
89also supports large frames (also called jumbo frames). Using jumbo frames can improve throughput tremendously when transferring large amounts of data. To enable large frames, the MTU (maximum transfer unit) size for an interface is to be set to a high value. The default MTU size is 1500 and can be changed up to 9000 (bytes). Setting the MTU size can be done when assigning the IP address to the interface or later by using the
90.BR ifconfig (8)
91command with the mtu parameter. If for instance eth0 needs an IP address and a large frame MTU size, the following two commands might be used:
92
93 ifconfig eth0 10.1.1.1
94 ifconfig eth0 mtu 9000
95
96Those two commands might even be combined into one:
97
98 ifconfig eth0 10.1.1.1 mtu 9000
99
100Note that large frames can only be used if your network infrastructure allows to do so. This means, that any switch being used in your Ethernet must also support large frames. Quite some switches support large frames, but need to be configured to do so. Most of the times, their default setting is to support only standard frames with an MTU size of 1500 (bytes). In addition to the switches inside the network, all network adapters that are to be used must also be enabled regarding jumbo frames. If an adapter is not set to receive large frames it will simply drop them.
101
102Switching back to the standard Ethernet frame size can be done by using the
103.BR ifconfig (8)
104command again:
105
106 ifconfig eth0 mtu 1500
107
108The Marvell/SysKonnect Gigabit Ethernet driver for Linux is able to support VLAN and Link Aggregation according to IEEE standards 802.1, 802.1q, and 802.3ad. Those features are only available after installation of open source modules which can be found on the Internet:
109
110.IR VLAN \c
111: http://www.candelatech.com/~greear/vlan.html
112.br
113.IR Link
114.IR Aggregation \c
115: http://www.st.rim.or.jp/~yumo
116
117.br
118Note that Marvell/SysKonnect does not offer any support for these open source modules and does not take the responsibility for any kind of failures or problems arising when using these modules.
119.SH PARAMETERS
120.TP
121.BI Speed_A= i,j,...
122This parameter is used to set the speed capabilities of port A of an adapter card. It is only valid for Yukon copper adapters. Possible values are:
e4bd7c17
MK
123.IR 10 ,
124.IR 100 ,
fea681da
MK
125.IR 1000
126or
127.IR Auto
128whereas
129.IR Auto
130is the default. Usually, the speed is negotiated between the two ports during link establishment. If this fails, a port can be forced to a specific setting with this parameter.
131.TP
132.BI Speed_B= i,j,...
133This parameter is used to set the speed capabilities of port B of an adapter card. It is only valid for Yukon copper adapters. Possible values are:
e4bd7c17
MK
134.IR 10 ,
135.IR 100 ,
fea681da
MK
136.IR 1000
137or
138.IR Auto
139whereas
140.IR Auto
141is the default. Usually, the speed is negotiated between the two ports during link establishment. If this fails, a port can be forced to a specific setting with this parameter.
142.TP
143.BI AutoNeg_A= i,j,...
144Enables or disables the use of autonegotiation of port A of an adapter card. Possible values are:
e4bd7c17 145.IR On ,
fea681da
MK
146.IR Off
147or
148.IR Sense
149whereas
150.IR On
151is the default. The
152.IR Sense
153mode automatically detects whether the link partner supports auto-negotiation or not.
154.TP
155.BI AutoNeg_B= i,j,...
156Enables or disables the use of autonegotiation of port B of an adapter card. Possible values are:
e4bd7c17 157.IR On ,
fea681da
MK
158.IR Off
159or
160.IR Sense
161whereas
162.IR On
163is the default. The
164.IR Sense
165mode automatically detects whether the link partner supports auto-negotiation or not.
166.TP
167.BI DupCap_A= i,j,...
168This parameter indicates the duplex mode to be used for port A of an adapter card. Possible values are:
e4bd7c17 169.IR Half ,
fea681da
MK
170.IR Full
171or
172.IR Both
173whereas
174.IR Both
a5e0a0e4
MK
175is the default.
176This parameter is only relevant if AutoNeg_A of port A is not set to
177.IR Sense .
fea681da 178If AutoNeg_A is set to
e4bd7c17
MK
179.IR On ,
180all three values of DupCap_A (
181.IR Half ,
fea681da
MK
182.IR Full
183or
c6f82ebc
MK
184.IR Both )
185might be stated. If AutoNeg_A is set to
e4bd7c17
MK
186.IR Off ,
187only DupCap_A values
fea681da
MK
188.IR Full
189and
190.IR Half
191are allowed. This DupCap_A parameter is useful if your link partner does not support all possible duplex combinations.
192.TP
193.BI DupCap_B= i,j,...
194This parameter indicates the duplex mode to be used for port B of an adapter card. Possible values are:
e4bd7c17 195.IR Half ,
fea681da
MK
196.IR Full
197or
198.IR Both
199whereas
200.IR Both
201is the default. This parameter is only relevant if AutoNeg_B of port B is not set to
a5e0a0e4 202.IR Sense .
fea681da 203If AutoNeg_B is set to
e4bd7c17
MK
204.IR On ,
205all three values of DupCap_B (
206.IR Half ,
fea681da
MK
207.IR Full
208or
c6f82ebc
MK
209.IR Both)
210might be stated. If AutoNeg_B is set to
e4bd7c17
MK
211.IR Off ,
212only DupCap_B values
fea681da
MK
213.IR Full
214and
215.IR Half
216are allowed. This DupCap_B parameter is useful if your link partner does not support all possible duplex combinations.
217.TP
218.BI FlowCtrl_A= i,j,...
219This parameter can be used to set the flow control capabilities the port reports during auto-negotiation. Possible values are:
e4bd7c17
MK
220.IR Sym ,
221.IR SymOrRem ,
fea681da
MK
222.IR LocSend
223or
224.IR None
225whereas
226.IR SymOrRem
227is the default. The different modes have the following meaning:
228
229.br
230.IR Sym
231= Symmetric
232 both link partners are allowed to send PAUSE frames
233.br
234.IR SymOrRem
235= SymmetricOrRemote
236 both or only remote partner are allowed to send PAUSE frames
237.br
238.IR LocSend
239= LocalSend
240 only local link partner is allowed to send PAUSE frames
241.br
242.IR None
243= None
244 no link partner is allowed to send PAUSE frames
245
246Note that this parameter is ignored if AutoNeg_A is set to
247.IR Off .
248.TP
249.BI FlowCtrl_B= i,j,...
250This parameter can be used to set the flow control capabilities the port reports during auto-negotiation. Possible values are:
e4bd7c17
MK
251.IR Sym ,
252.IR SymOrRem ,
fea681da
MK
253.IR LocSend
254or
255.IR None
256whereas
257.IR SymOrRem
258is the default. The different modes have the following meaning:
259
260.IR Sym
261= Symmetric
262 both link partners are allowed to send PAUSE frames
263.br
264.IR SymOrRem
265= SymmetricOrRemote
266 both or only remote partner are allowed to send PAUSE frames
267.br
268.IR LocSend
269= LocalSend
270 only local link partner is allowed to send PAUSE frames
271.br
272.IR None
273= None
274 no link partner is allowed to send PAUSE frames
275.br
276
277Note that this parameter is ignored if AutoNeg_B is set to
278.IR Off .
279.TP
280.BI Role_A= i,j,...
281This parameter is only valid for 1000Base-T adapter cards. For two 1000Base-T ports to communicate, one must take the role of the master (providing timing information), while the other must be the slave. Possible values are:
e4bd7c17 282.IR Auto ,
fea681da
MK
283.IR Master
284or
285.IR Slave
286whereas
287.IR Auto
288is the default. Usually, the role of a port is negotiated between two ports during link establishment, but if that fails the port A of an adapter card can be forced to a specific setting with this parameter.
289.TP
290.BI Role_B= i,j,...
291This parameter is only valid for 1000Base-T adapter cards. For two 1000Base-T ports to communicate, one must take the role of the master (providing timing information), while the other must be the slave. Possible values are:
e4bd7c17 292.IR Auto ,
fea681da
MK
293.IR Master
294or
295.IR Slave
296whereas
297.IR Auto
298is the default. Usually, the role of a port is negotiated between two ports during link establishment, but if that fails the port B of an adapter card can be forced to a specific setting with this parameter.
299.TP
300.BI ConType= i,j,...
301This parameter is a combination of all five per-port parameters within one single parameter. This simplifies the configuration of both ports of an adapter card. The different values of this variable reflect the most meaningful combinations of port parameters. Possible values and their corresponding combination of per-port parameters:
302
303.br
304.ad l
305ConType | DupCap AutoNeg FlowCtrl Role Speed
306--------+-------------------------------------------
307.br
308.IR Auto \c
309 | Both On SymOrRem Auto Auto
310.br
311.IR 100FD \c
312 | Full Off None Auto 100
313.br
314.IR 100HD \c
315 | Half Off None Auto 100
316.br
317.IR 10FD \c
318 | Full Off None Auto 10
319.br
320.IR 10HD \c
321 | Half Off None Auto 10
322
323.ad b
324Stating any other port parameter together with this
325.IR ConType
326parameter will result in a merged configuration of those settings. This is due to
327the fact, that the per-port parameters (e.g.
c6f82ebc
MK
328.IR Speed_A )
329have a higher priority than the combined variable
fea681da
MK
330.IR ConType
331.
332.TP
333.BI Moderation= i,j,...
334Interrupt moderation is employed to limit the maximum number of interrupts the driver has to serve. That is, one or more interrupts (which indicate any transmit or receive packet to be processed) are queued until the driver processes them. When queued interrupts are to be served, is determined by the
335.IR IntsPerSec
336parameter, which is explained later below. Possible moderation modes are:
e4bd7c17 337.IR None ,
fea681da
MK
338.IR Static
339or
340.IR Dynamic
341whereas
342.IR None
343is the default. The different modes have the following meaning:
344
345.IR None
346No interrupt moderation is applied on the adapter card. Therefore, each transmit or receive interrupt is served immediately as soon as it appears on the interrupt line of the adapter card.
347
348.br
349.IR Static
350Interrupt moderation is applied on the adapter card. All transmit and receive interrupts are queued until a complete moderation interval ends. If such a moderation interval ends, all queued interrupts are processed in one big bunch without any delay. The term
351.IR Static
352reflects the fact, that interrupt moderation is always enabled, regardless how much network load is currently passing via a particular interface. In addition, the duration of the moderation interval has a fixed length that never changes while the driver is operational.
353
354.br
355.IR Dynamic
4d9b6984 356Interrupt moderation might be applied on the adapter card, depending on the load of the system. If the driver detects that the system load is too high, the driver tries to shield the system against too much network load by enabling interrupt moderation. If \(em at a later time \(em the CPU utilization decreases again (or if the network load is negligible) the interrupt moderation will automatically be disabled.
fea681da 357
4d9b6984 358Interrupt moderation should be used when the driver has to handle one or more interfaces with a high network load, which \(em as a consequence \(em leads also to a high CPU utilization. When moderation is applied in such high network load situations, CPU load might be reduced by 20-30% on slow computers.
fea681da
MK
359
360Note that the drawback of using interrupt moderation is an increase of the round-trip-time (RTT), due to the queuing and serving of interrupts at dedicated
361moderation times.
362.TP
363.BI IntsPerSec= i,j,...
364This parameter determines the length of any interrupt moderation interval.
365Assuming that static interrupt moderation is to be used, an
366.IR IntsPerSec
367parameter value of 2000 will lead to an interrupt moderation interval of
368500 microseconds. Possible values for this parameter are in the range of 30...40000 (interrupts per second). The default value is 2000.
369
370This parameter is only used, if either static or dynamic interrupt moderation
371is enabled on a network adapter card. This parameter is ignored if no moderation is
372applied.
373
374Note that the duration of the moderation interval is to be chosen with care.
375At first glance, selecting a very long duration (e.g. only 100 interrupts per
376second) seems to be meaningful, but the increase of packet-processing delay
377is tremendous. On the other hand, selecting a very short moderation time might
378compensate the use of any moderation being applied.
379.TP
380.BI PrefPort= i,j,...
381This parameter is used to force the preferred port to A or B (on dual-port network adapters). The preferred port is the one that is used if both ports A and B are detected as fully functional. Possible values are:
382.IR A
383or
384.IR B
385whereas
386.IR A
387is the default.
388.TP
389.BI RlmtMode= i,j,...
390RLMT monitors the status of the port. If the link of the active port fails, RLMT switches immediately to the standby link. The virtual link is maintained as long as at least one 'physical' link is up. This parameters states how RLMT should monitor both ports. Possible values are:
e4bd7c17
MK
391.IR CheckLinkState ,
392.IR CheckLocalPort ,
fea681da
MK
393.IR CheckSeg
394or
395.IR DualNet
396whereas
397.IR CheckLinkState
398is the default. The different modes have the following meaning:
399
400.IR CheckLinkState
401Check link state only: RLMT uses the link state reported by the adapter hardware for each individual port to determine whether a port can be used for all network traffic or not.
402
403.br
404.IR CheckLocalPort
405In this mode, RLMT monitors the network path between the two ports of an adapter by regularly exchanging packets between them. This mode requires a network configuration in which the two ports are able to "see" each other (i.e. there must not be any router between the ports).
406
407.br
408.IR CheckSeg
409Check local port and segmentation: This mode supports the same functions as the CheckLocalPort mode and additionally checks network segmentation between the ports. Therefore, this mode is only to be used if Gigabit Ethernet switches are installed on the network that have been configured to use the Spanning Tree protocol.
410
411.br
412.IR DualNet
413In this mode, ports A and B are used as separate devices. If you have a dual port adapter, port A will be configured as
414.IR eth[x] and port B as
e4bd7c17
MK
415.IR eth[x+1] .
416Both ports can be used independently with distinct IP addresses.
417The preferred port setting is not used. RLMT is turned off.
fea681da
MK
418
419Note that RLMT modes
420.IR CheckLocalPort
421and
422.IR CheckLinkState
423are designed to operate in configurations where a network path between the ports on one adapter exists. Moreover, they are not designed to work where adapters are connected back-to-back.
424.SH FILES
425.TP
426.B /proc/net/sk98lin/eth[x]
427.br
428The statistics file of a particular interface of an adapter card. It contains generic information about the adapter card plus a detailed summary of all transmit and receive counters.
429.TP
430.B /usr/src/linux/Documentation/network/sk98lin.txt
431.br
432This is the
433.IR README
434file of the
435.IR sk98lin
436driver. It contains a detailed installation HOWTO and describes all parameters of the driver. It denotes also common problems and provides the solution to them.
437.SH BUGS
438Report any bugs to linux@syskonnect.de
439.SH AUTHORS
df8a3cac 440Ralph Roesler \(em rroesler@syskonnect.de
fea681da 441.br
df8a3cac 442Mirko Lindner \(em mlindner@syskonnect.de
fea681da 443.SH "SEE ALSO"
4a225b7a
MK
444.BR modprobe (8),
445.BR insmod (8),
446.BR ifconfig (8).