]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man4/sk98lin.4
wrap long source lines
[thirdparty/man-pages.git] / man4 / sk98lin.4
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
27 sk98lin \- 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
62 is the Gigabit Ethernet driver for Marvell and SysKonnect network adapter cards.
63 It supports SysKonnect SK-98xx/SK-95xx compliant Gigabit Ethernet Adapter and
64 any Yukon compliant chipset.
65
66 When loading the driver using insmod, parameters for the network adapter cards
67 might be stated as a sequence of comma separated commands.
68 If for instance two network adapters are installed and AutoNegotiation on
69 Port A of the first adapter should be ON,
70 but on the Port A of the second adapter switched OFF, one must enter:
71
72 insmod sk98lin.o AutoNeg_A=On,Off
73
74 After
75 .B sk98lin
76 is bound to one or more adapter cards and the
77 .IR /proc
78 filesystem is mounted on your system, a dedicated statistics file
79 will be created in folder
80 .IR /proc/net/sk98lin
81 for all ports of the installed network adapter cards.
82 Those files are named
83 .IR eth[x]
84 whereas
85 .IR x
86 is the number of the interface that has been assigned to a
87 dedicated port by the system.
88
89 If loading is finished, any desired IP address can be
90 assigned to the respective
91 .IR eth[x]
92 interface using the
93 .BR ifconfig (8)
94 command.
95 This causes the adapter to connect to the Ethernet and to display a status
96 message on the console saying "ethx: network connection up using port y"
97 followed by the configured or detected connection parameters.
98
99 The
100 .B sk98lin
101 also supports large frames (also called jumbo frames).
102 Using jumbo frames can improve throughput tremendously when
103 transferring large amounts of data.
104 To enable large frames, the MTU (maximum transfer unit) size
105 for an interface is to be set to a high value.
106 The default MTU size is 1500 and can be changed up to 9000 (bytes).
107 Setting the MTU size can be done when assigning the IP address
108 to the interface or later by using the
109 .BR ifconfig (8)
110 command with the mtu parameter. If for instance eth0 needs an IP
111 address and a large frame MTU size,
112 the following two commands might be used:
113
114 ifconfig eth0 10.1.1.1
115 ifconfig eth0 mtu 9000
116
117 Those two commands might even be combined into one:
118
119 ifconfig eth0 10.1.1.1 mtu 9000
120
121 Note that large frames can only be used if your network infrastructure
122 allows to do so.
123 This means, that any switch being used in your Ethernet must
124 also support large frames.
125 Quite some switches support large frames,
126 but need to be configured to do so.
127 Most of the times, their default setting is to support only
128 standard frames with an MTU size of 1500 (bytes).
129 In addition to the switches inside the network,
130 all network adapters that are to be used must also be
131 enabled regarding jumbo frames.
132 If an adapter is not set to receive large frames it will simply drop them.
133
134 Switching back to the standard Ethernet frame size can be done by using the
135 .BR ifconfig (8)
136 command again:
137
138 ifconfig eth0 mtu 1500
139
140 The Marvell/SysKonnect Gigabit Ethernet driver for Linux is able to
141 support VLAN and Link Aggregation according to
142 IEEE standards 802.1, 802.1q, and 802.3ad.
143 Those features are only available after installation of open source modules
144 which can be found on the Internet:
145
146 .IR VLAN \c
147 : http://www.candelatech.com/~greear/vlan.html
148 .br
149 .IR Link
150 .IR Aggregation \c
151 : http://www.st.rim.or.jp/~yumo
152
153 .br
154 Note that Marvell/SysKonnect does not offer any support for these
155 open source modules and does not take the responsibility for any
156 kind of failures or problems arising when using these modules.
157 .SH PARAMETERS
158 .TP
159 .BI Speed_A= i,j,...
160 This parameter is used to set the speed capabilities of port A of an
161 adapter card.
162 It is only valid for Yukon copper adapters.
163 Possible values are:
164 .IR 10 ,
165 .IR 100 ,
166 .IR 1000
167 or
168 .IR Auto
169 whereas
170 .IR Auto
171 is the default.
172 Usually, the speed is negotiated between the two ports
173 during link establishment.
174 If this fails, a port can be forced to a specific setting with this parameter.
175 .TP
176 .BI Speed_B= i,j,...
177 This parameter is used to set the speed capabilities of port B of
178 an adapter card.
179 It is only valid for Yukon copper adapters.
180 Possible values are:
181 .IR 10 ,
182 .IR 100 ,
183 .IR 1000
184 or
185 .IR Auto
186 whereas
187 .IR Auto
188 is the default.
189 Usually, the speed is negotiated between the two ports during link
190 establishment.
191 If this fails, a port can be forced to a specific setting with this parameter.
192 .TP
193 .BI AutoNeg_A= i,j,...
194 Enables or disables the use of autonegotiation of port A of an adapter card.
195 Possible values are:
196 .IR On ,
197 .IR Off
198 or
199 .IR Sense
200 whereas
201 .IR On
202 is the default. The
203 .IR Sense
204 mode automatically detects whether the link partner supports
205 auto-negotiation or not.
206 .TP
207 .BI AutoNeg_B= i,j,...
208 Enables or disables the use of autonegotiation of port B of an adapter card.
209 Possible values are:
210 .IR On ,
211 .IR Off
212 or
213 .IR Sense
214 whereas
215 .IR On
216 is the default. The
217 .IR Sense
218 mode automatically detects whether the link partner supports
219 auto-negotiation or not.
220 .TP
221 .BI DupCap_A= i,j,...
222 This parameter indicates the duplex mode to be used for port A
223 of an adapter card.
224 Possible values are:
225 .IR Half ,
226 .IR Full
227 or
228 .IR Both
229 whereas
230 .IR Both
231 is the default.
232 This parameter is only relevant if AutoNeg_A of port A is not set to
233 .IR Sense .
234 If AutoNeg_A is set to
235 .IR On ,
236 all three values of DupCap_A (
237 .IR Half ,
238 .IR Full
239 or
240 .IR Both )
241 might be stated. If AutoNeg_A is set to
242 .IR Off ,
243 only DupCap_A values
244 .IR Full
245 and
246 .IR Half
247 are allowed.
248 This DupCap_A parameter is useful if your link partner does not
249 support all possible duplex combinations.
250 .TP
251 .BI DupCap_B= i,j,...
252 This parameter indicates the duplex mode to be used for port B
253 of an adapter card.
254 Possible values are:
255 .IR Half ,
256 .IR Full
257 or
258 .IR Both
259 whereas
260 .IR Both
261 is the default.
262 This parameter is only relevant if AutoNeg_B of port B is not set to
263 .IR Sense .
264 If AutoNeg_B is set to
265 .IR On ,
266 all three values of DupCap_B (
267 .IR Half ,
268 .IR Full
269 or
270 .IR Both )
271 might be stated. If AutoNeg_B is set to
272 .IR Off ,
273 only DupCap_B values
274 .IR Full
275 and
276 .IR Half
277 are allowed.
278 This DupCap_B parameter is useful if your link partner does not
279 support all possible duplex combinations.
280 .TP
281 .BI FlowCtrl_A= i,j,...
282 This parameter can be used to set the flow control capabilities the
283 port reports during auto-negotiation.
284 Possible values are:
285 .IR Sym ,
286 .IR SymOrRem ,
287 .IR LocSend
288 or
289 .IR None
290 whereas
291 .IR SymOrRem
292 is the default. The different modes have the following meaning:
293
294 .br
295 .IR Sym
296 = Symmetric
297 both link partners are allowed to send PAUSE frames
298 .br
299 .IR SymOrRem
300 = SymmetricOrRemote
301 both or only remote partner are allowed to send PAUSE frames
302 .br
303 .IR LocSend
304 = LocalSend
305 only local link partner is allowed to send PAUSE frames
306 .br
307 .IR None
308 = None
309 no link partner is allowed to send PAUSE frames
310
311 Note that this parameter is ignored if AutoNeg_A is set to
312 .IR Off .
313 .TP
314 .BI FlowCtrl_B= i,j,...
315 This parameter can be used to set the flow control capabilities the
316 port reports during auto-negotiation.
317 Possible values are:
318 .IR Sym ,
319 .IR SymOrRem ,
320 .IR LocSend
321 or
322 .IR None
323 whereas
324 .IR SymOrRem
325 is the default. The different modes have the following meaning:
326
327 .IR Sym
328 = Symmetric
329 both link partners are allowed to send PAUSE frames
330 .br
331 .IR SymOrRem
332 = SymmetricOrRemote
333 both or only remote partner are allowed to send PAUSE frames
334 .br
335 .IR LocSend
336 = LocalSend
337 only local link partner is allowed to send PAUSE frames
338 .br
339 .IR None
340 = None
341 no link partner is allowed to send PAUSE frames
342 .br
343
344 Note that this parameter is ignored if AutoNeg_B is set to
345 .IR Off .
346 .TP
347 .BI Role_A= i,j,...
348 This parameter is only valid for 1000Base-T adapter cards.
349 For two 1000Base-T ports to communicate,
350 one must take the role of the master (providing timing information),
351 while the other must be the slave.
352 Possible values are:
353 .IR Auto ,
354 .IR Master
355 or
356 .IR Slave
357 whereas
358 .IR Auto
359 is the default.
360 Usually, the role of a port is negotiated between two ports during
361 link establishment, but if that fails the port A of an adapter card
362 can be forced to a specific setting with this parameter.
363 .TP
364 .BI Role_B= i,j,...
365 This parameter is only valid for 1000Base-T adapter cards.
366 For two 1000Base-T ports to communicate, one must take
367 the role of the master (providing timing information),
368 while the other must be the slave.
369 Possible values are:
370 .IR Auto ,
371 .IR Master
372 or
373 .IR Slave
374 whereas
375 .IR Auto
376 is the default.
377 Usually, the role of a port is negotiated between
378 two ports during link establishment, but if that fails
379 the port B of an adapter card can be forced to a
380 specific setting with this parameter.
381 .TP
382 .BI ConType= i,j,...
383 This parameter is a combination of all five per-port parameters
384 within one single parameter.
385 This simplifies the configuration of both ports of an adapter card.
386 The different values of this variable reflect the
387 most meaningful combinations of port parameters.
388 Possible values and their corresponding combination of per-port parameters:
389
390 .br
391 .ad l
392 ConType | DupCap AutoNeg FlowCtrl Role Speed
393 --------+-------------------------------------------
394 .br
395 .IR Auto \c
396 | Both On SymOrRem Auto Auto
397 .br
398 .IR 100FD \c
399 | Full Off None Auto 100
400 .br
401 .IR 100HD \c
402 | Half Off None Auto 100
403 .br
404 .IR 10FD \c
405 | Full Off None Auto 10
406 .br
407 .IR 10HD \c
408 | Half Off None Auto 10
409
410 .ad b
411 Stating any other port parameter together with this
412 .IR ConType
413 parameter will result in a merged configuration of those settings.
414 This is due to
415 the fact, that the per-port parameters (e.g.
416 .IR Speed_A )
417 have a higher priority than the combined variable
418 .IR ConType .
419 .TP
420 .BI Moderation= i,j,...
421 Interrupt moderation is employed to limit the maximum number of interrupts
422 the driver has to serve.
423 That is, one or more interrupts (which indicate any transmit or
424 receive packet to be processed) are queued until the driver processes them.
425 When queued interrupts are to be served, is determined by the
426 .IR IntsPerSec
427 parameter, which is explained later below. Possible moderation modes are:
428 .IR None ,
429 .IR Static
430 or
431 .IR Dynamic
432 whereas
433 .IR None
434 is the default. The different modes have the following meaning:
435
436 .IR None
437 No interrupt moderation is applied on the adapter card.
438 Therefore, each transmit or receive interrupt is served immediately
439 as soon as it appears on the interrupt line of the adapter card.
440
441 .br
442 .IR Static
443 Interrupt moderation is applied on the adapter card.
444 All transmit and receive interrupts are queued until
445 a complete moderation interval ends.
446 If such a moderation interval ends, all queued interrupts
447 are processed in one big bunch without any delay.
448 The term
449 .IR Static
450 reflects the fact, that interrupt moderation is always enabled,
451 regardless how much network load is currently passing via a
452 particular interface.
453 In addition, the duration of the moderation interval has a fixed
454 length that never changes while the driver is operational.
455
456 .br
457 .IR Dynamic
458 Interrupt moderation might be applied on the adapter card,
459 depending on the load of the system.
460 If the driver detects that the system load is too high,
461 the driver tries to shield the system against too much network
462 load by enabling interrupt moderation.
463 If \(em at a later time \(em the CPU utilization decreases
464 again (or if the network load is negligible) the interrupt
465 moderation will automatically be disabled.
466
467 Interrupt moderation should be used when the driver has to
468 handle one or more interfaces with a high network load,
469 which \(em as a consequence \(em leads also to a high CPU utilization.
470 When moderation is applied in such high network load situations,
471 CPU load might be reduced by 20-30% on slow computers.
472
473 Note that the drawback of using interrupt moderation is an increase of
474 the round-trip-time (RTT), due to the queuing and serving of
475 interrupts at dedicated moderation times.
476 .TP
477 .BI IntsPerSec= i,j,...
478 This parameter determines the length of any interrupt moderation interval.
479 Assuming that static interrupt moderation is to be used, an
480 .IR IntsPerSec
481 parameter value of 2000 will lead to an interrupt moderation interval of
482 500 microseconds.
483 Possible values for this parameter are in the range of
484 30...40000 (interrupts per second).
485 The default value is 2000.
486
487 This parameter is only used, if either static or dynamic interrupt moderation
488 is enabled on a network adapter card.
489 This parameter is ignored if no moderation is applied.
490
491 Note that the duration of the moderation interval is to be chosen with care.
492 At first glance, selecting a very long duration (e.g. only 100 interrupts per
493 second) seems to be meaningful, but the increase of packet-processing delay
494 is tremendous. On the other hand, selecting a very short moderation time might
495 compensate the use of any moderation being applied.
496 .TP
497 .BI PrefPort= i,j,...
498 This parameter is used to force the preferred port to
499 A or B (on dual-port network adapters).
500 The preferred port is the one that is used if both ports A and B are
501 detected as fully functional.
502 Possible values are:
503 .IR A
504 or
505 .IR B
506 whereas
507 .IR A
508 is the default.
509 .TP
510 .BI RlmtMode= i,j,...
511 RLMT monitors the status of the port.
512 If the link of the active port fails,
513 RLMT switches immediately to the standby link.
514 The virtual link is maintained as long as at least one 'physical' link is up.
515 This parameters states how RLMT should monitor both ports.
516 Possible values are:
517 .IR CheckLinkState ,
518 .IR CheckLocalPort ,
519 .IR CheckSeg
520 or
521 .IR DualNet
522 whereas
523 .IR CheckLinkState
524 is the default. The different modes have the following meaning:
525
526 .IR CheckLinkState
527 Check link state only: RLMT uses the link state reported by the adapter
528 hardware for each individual port to determine whether a port can be used
529 for all network traffic or not.
530
531 .br
532 .IR CheckLocalPort
533 In this mode, RLMT monitors the network path between the two
534 ports of an adapter by regularly exchanging packets between them.
535 This mode requires a network configuration in which the
536 two ports are able to "see" each other (i.e. there
537 must not be any router between the ports).
538
539 .br
540 .IR CheckSeg
541 Check local port and segmentation:
542 This mode supports the same functions as the CheckLocalPort
543 mode and additionally checks network segmentation between the ports.
544 Therefore, this mode is only to be used if Gigabit Ethernet
545 switches are installed on the network that have been
546 configured to use the Spanning Tree protocol.
547
548 .br
549 .IR DualNet
550 In this mode, ports A and B are used as separate devices.
551 If you have a dual port adapter, port A will be configured as
552 .IR eth[x] and port B as
553 .IR eth[x+1] .
554 Both ports can be used independently with distinct IP addresses.
555 The preferred port setting is not used. RLMT is turned off.
556
557 Note that RLMT modes
558 .IR CheckLocalPort
559 and
560 .IR CheckLinkState
561 are designed to operate in configurations where a
562 network path between the ports on one adapter exists.
563 Moreover, they are not designed to work where adapters are
564 connected back-to-back.
565 .SH FILES
566 .TP
567 .I /proc/net/sk98lin/eth[x]
568 .br
569 The statistics file of a particular interface of an adapter card.
570 It contains generic information about the adapter card plus a detailed
571 summary of all transmit and receive counters.
572 .TP
573 .I /usr/src/linux/Documentation/network/sk98lin.txt
574 .br
575 This is the
576 .IR README
577 file of the
578 .IR sk98lin
579 driver.
580 It contains a detailed installation HOWTO and describes all parameters
581 of the driver.
582 It denotes also common problems and provides the solution to them.
583 .SH BUGS
584 Report any bugs to linux@syskonnect.de
585 .SH AUTHORS
586 Ralph Roesler \(em rroesler@syskonnect.de
587 .br
588 Mirko Lindner \(em mlindner@syskonnect.de
589 .SH "SEE ALSO"
590 .BR modprobe (8),
591 .BR insmod (8),
592 .BR ifconfig (8).