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