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