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