OSDN Git Service

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