SK98LIN(4) Linux Programmer’s Manual SK98LIN(4) 名前 sk98lin - Marvell/SysKonnect ギガビットイーサネットドライバ v6.21 書式 insmod sk98lin.o [Speed_A=i,j,...] [Speed_B=i,j,...] [AutoNeg_A=i,j,...] [AutoNeg_B=i,j,...] [DupCap_A=i,j,...] [Dup- Cap_B=i,j,...] [FlowCtrl_A=i,j,...] [FlowCtrl_B=i,j,...] [Role_A=i,j,...] [Role_B=i,j,...] [ConType=i,j,...] [Modera- tion=i,j,...] [IntsPerSec=i,j,...] [PrefPort=i,j,...] [Rlmt- Mode=i,j,...] 説明 sk98lin は Marvell と SysKonnect のネットワークアダプタカードのギガビッ トイーサネットドライバである。これは SysKonnect SK-98xx/SK-95xx 互換の ギガビットイーサネットアダプタと Yukon 互換のチップセットをサポートして いる。 insmod を使ってドライバをロードする際、ネットワークアダプタカードのパラ メータをコンマで区切られたコマンドの列として指定することができる。 2 つ のネットワークアダプタが取り付けられている時に、例えば、1 つ目のアダプ タのポート A の自動ネゴシエーションは ON にするが、 2 つ目のアダプタの ポート A は OFF にする場合は、以下のように入力すればよい: insmod sk98lin.o AutoNeg_A=On,Off sk98lin が 1 つ以上のアダプタカードに関連づけられていて、かつ /proc フ ァイルシステムがシステムにマウントされている場合、取り付けられているネ ットワークアダプタカードの全てのポートについて、 (ポート単位に) 専用の 統計ファイルがフォルダ /proc/net/sk98lin に作られる。これらのファイルは eth[x] という名前であり、 x はインタフェースの番号である。この番号はシ ステムによってポート毎に割り当てられたものである。 ロードが完了すると、 ifconfig(8) コマンドを使って、各 eth[x] インタフェ ースに希望する IP アドレスを割り当てることができる。これによりアダプタ がイーサネットに接続され、コンソールに状態メッセージが表示される。この メッセージでは、 "ethx: network connection up using port y" の後に設定 されたり検出された接続パラメータが表示される。 sk98lin はラージフレーム (ジャンボフレームとも呼ばれる) もサポートする 。ジャンボフレームを使うと、大量のデータを転送する際に、スループットを 大幅に向上させることができる。ラージフレームを有効にするには、インタフ ェースの MTU (maximum transfer unit, 最大転送単位) サイズを大きな値に設 定すればよい。デフォルトの MTU サイズは 1500 であり、最大で 9000 (バイ ト) まで設定することができる。 MTU サイズを設定するのは、インタフェース に IP アドレスを割り当てるときにもできるし、後から ifconfig(8) コマンド に mtu 引き数を指定することで設定することもできる。例えば、eth0 に IP アドレスとラージフレーム MTU サイズを割り当てたい場合、以下の 2 つのコ マンドを実行すればよい: ifconfig eth0 10.1.1.1 ifconfig eth0 mtu 9000 これらの 2 つのコマンドは 1 つにまとめることもできる: ifconfig eth0 10.1.1.1 mtu 9000 ラージフレームを使用できるのは、ネットワーク環境全体でラージフレームの 使用が認められている場合のみである点に注意すること。つまり、イーサネッ トで使われている全てのスイッチでもラージフレームがサポートされていなけ ればならない。多くのスイッチがラージフレームをサポートしてはいるが、設 定を行う必要がある。多くの場合、デフォルトの設定では標準フレーム (1500 バイトの MTU サイズ) だけしかサポートしない。ネットワーク内のスイッチに 加え、使用される全てのネットワークアダプタでもジャンボフレームが有効に なっていなければならない。アダプタがラージフレームを受け取るように設定 されていない場合、アダプタはそのフレームを単純に捨ててしまう。 標準のイーサネットフレームサイズに戻すのは、再び ifconfig(8) コマンドを 使えばよい: ifconfig eth0 mtu 1500 Linux の Marvell/SysKonnect ギガビットイーサネットドライバは、 IEEE 規 格 802.1, 802.1q, 802.3ad に準拠する VLAN と Link Aggregation に対応し ている。これらの機能は、インターネットにあるオープンソースモジュールを インストールした後でのみ利用可能である: VLAN: http://www.candelatech.com/~greear/vlan.html Link Aggregation: http://www.st.rim.or.jp/~yumo Marvell/SysKonnect は、これらのオープンソースモジュールに対するサポート は行っておらず、これらを使った場合に生じるいかなる失敗や問題についても 責任を負わない点に注意すること。 引き数 Speed_A=i,j,... このパラメータはアダプタカードのポート A がサポートするリンク速 度を設定するのに使われる。これは Yukon copper アダプタでのみ有効 である。使用可能な値は以下の通り: 10, 100, 1000, Auto。デフォル トは Auto である。通常、リンク速度はリンクの確立時に 2 つのポー トの間で自動設定される。これに失敗した場合、ポートはこの引き数で 指定された設定になる。 Speed_B=i,j,... このパラメータはアダプタカードのポート B がサポートするリンク速 度を設定するのに使われる。これは Yukon copper アダプタでのみ有効 である。使用可能な値は以下の通り: 10, 100, 1000, Auto。デフォル トは Auto である。通常、リンク速度はリンクの確立時に 2 つのポー トの間で自動設定される。これに失敗した場合、ポートはこの引き数で 指定された設定になる。 AutoNeg_A=i,j,... アダプタカードのポート A の自動設定 (autonegotiation) の使用を有 効または無効にする。使用可能な値は以下の通り: On, Off, Sense。デ フォルトは On である。 Sense モードはリンクパートナが自動設定を サポートしているか否かを自動的に検知する。 AutoNeg_B=i,j,... アダプタカードのポート B の自動設定 (autonegotiation) の使用を有 効または無効にする。使用可能な値は以下の通り: On, Off, Sense。デ フォルトは On である。 Sense モードはリンクパートナが自動設定を サポートしているか否かを自動的に検知する。 DupCap_A=i,j,... この引き数はアダプタカードのポート A で使う二重通信 (duplex) モ ードを示す。使用可能な値は以下の通り: Half, Full, Both。デフォル トは Both である。この引き数はポート A の AutoNeg_A が Sense に 設定されていない場合にのみ有効である。 AutoNeg_A が On の場合 、DupCap_A の 3 つの値 (Half, Full, Both) のうちどれでも指定する ことができる。 AutoNeg_A が Off の場合、DupCap_A の値 Full と Half のみを指定することができる。この DupCap_A 引き数は、リンク パートナが全ての二重通信の組み合わせをサポートしていない場合に役 に立つ。 DupCap_B=i,j,... この引き数はアダプタカードのポート B で使う二重通信モードを示す 。使用可能な値は以下の通り: Half, Full, Both。デフォルトは Both である。この引き数はポート B の AutoNeg_B が Sense に設定されて いない場合にのみ有効である。 AutoNeg_B が On の場合、DupCap_B の 3 つの値 (Half, Full, Both) のうちどれでも指定することができる。 AutoNeg_B が Off の場合、DupCap_B の値 Full と Half のみを指定す ることができる。この DupCap_B 引き数は、リンクパートナが全ての二 重通信の組み合わせをサポートしていない場合に役に立つ。 FlowCtrl_A=i,j,... この引き数は自動設定時にポートが対向に伝えるフロー制御機能を設定 する。使用可能な値は以下の通り: Sym, SymOrRem, LocSend, None。デ フォルトは SymOrRem である。それぞれのモードには以下のような意味 がある: Sym = Symmetric リンクパートナの双方が PAUSE フレームを送ることができる。 SymOrRem = SymmetricOrRemote リンクパートナの双方またはリモートパートナのみが PAUSE フレーム を送ることができる。 LocSend = LocalSend ローカルリンクパートナのみが PAUSE フレームを送ることができる。 None = None リンクパートナのどちらも PAUSE フレームを送ることはできない。 このパラメータは AutoNeg_A が Off の場合には無視される点に注意す ること。 FlowCtrl_B=i,j,... この引き数は自動設定時にポートが対向に伝えるフロー制御機能を設定 する。使用可能な値は以下の通り: Sym, SymOrRem, LocSend, None。デ フォルトは SymOrRem である。それぞれのモードには以下のような意味 がある: Sym = Symmetric リンクパートナの双方が PAUSE フレームを送ることができる。 SymOrRem = SymmetricOrRemote リンクパートナの双方またはリモートパートナのみが PAUSE フレーム を送ることができる。 LocSend = LocalSend ローカルリンクパートナのみが PAUSE フレームを送ることができる。 None = None リンクパートナのどちらも PAUSE フレームを送ることはできない。 このパラメータは AutoNeg_B が Off の場合には無視される点に注意す ること。 Role_A=i,j,... この引き数は 1000Base-T アダプタカードでのみ有効である。 2 つの 1000Base-T ポートが通信する場合、片方が (タイミング情報を提供す る) マスタの役割をしなければならず、もう片方がスレーブにならなけ ればならない。使用可能な値は以下の通り: Auto, Master, Slave。デ フォルトは Auto である。通常、ポートの役割は 2 つのポートでリン クを確立するときに自動設定される。自動設定に失敗した場合、アダプ タカードのポート A はこの引き数で指定された設定になる。 Role_B=i,j,... この引き数は 1000Base-T アダプタカードでのみ有効である。 2 つの 1000Base-T ポートが通信する場合、片方が (タイミング情報を提供す る) マスタの役割をしなければならず、もう片方がスレーブにならなけ ればならない。使用可能な値は以下の通り: Auto, Master, Slave。デ フォルトは Auto である。通常、ポートの役割は 2 つのポートでリン クを確立するときに自動設定される。自動設定に失敗した場合、アダプ タカードのポート B はこの引き数で指定された設定になる。 ConType=i,j,... この引き数は、ポート毎に指定する、全部で 5 個の引き数の組み合わ せを、 1 つの引き数にしたものである。これによりアダプタカードの 2 つのポートの設定を簡略化できる。この変数のそれぞれの値は、ポー ト引き数の最も意味のある組み合わせを反映したものである。使用可能 な値とそれに対応するポート毎のパラメータの組み合わせは、以下の通 り: ConType | DupCap AutoNeg FlowCtrl Role Speed --------+------------------------------------------- Auto | Both On SymOrRem Auto Auto 100FD | Full Off None Auto 100 100HD | Half Off None Auto 100 10FD | Full Off None Auto 10 10HD | Half Off None Auto 10 その他のポート引き数を ConType 引き数と組み合わせて指定すると、 それらの設定を結合した設定となる。これは、ポート毎の引き数 (例え ば Speed_A) の方が組み合わせ変数 ConType より優先順位が高いため である。 Moderation=i,j,... 割り込み調停 (interrupt moderation) は、ドライバが処理を開始しな ければならない割り込み回数の最大値を設定するために使用される。つ まり、ドライバが処理を行うまで、1回以上の割り込み (送信または受 信パケットが処理されること) がキューに入れられる。キューに入れら れた割り込みがいつ処理されるかは、以下で説明する IntsPerSec 引き 数で決定される。使用可能な調停モードは以下の通り: None, Static, Dynamic。デフォルトは None である。それぞれのモードは以下の意味 を持つ: None アダプタカードに対して割り込み調停を適用しない。よって送信 または受信割り込みは、アダプタカードの割り込み線に現れると直ぐに 処理される。 Static アダプタカードに対して割り込み調停が適用される。全ての送 信または受信割り込みは、調停間隔が完全に終わるまでキューに入れら れる。この調停間隔が終わると、キューに入れられた全ての割り込みは 、 1個の大きな塊として遅延なく処理される。 Static という用語は、 あるインタフェースに現在どれだけのネットワーク負荷がかかっている かに関わらず、割り込み調停が常に有効になることを表している。さら に、調停間隔の時間は固定で、ドライバが動作している間は変化しない 。 Dynamic システムの負荷に応じて、アダプタカードに対して割り込み調 停が適用される。ドライバがシステムの負荷が高すぎると検出した場合 、割り込み調停を有効にすることにより、過剰なネットワーク負荷から システムを保護しようとする。 — その後に — CPU 利用率が再び下がっ た場合 (またはネットワーク負荷が極わずかになった場合)、割り込み 調停は自動的に無効にされる。 ドライバが扱わなければならないインタフェースのうちネットワーク負 荷が高いものが 1 つ以上あり、 — その結果 — CPU 利用率が高くなっ ている場合、割り込み調停を使うべきである。ネットワーク負荷が高い 状況で調停が適用されると、遅いコンピュータでは CPU 負荷が 20-30% 削減されるだろう。 割り込み調停を使うことの欠点として、往復遅延時間 (round-trip- time, RTT) の増加がある点に注意すること。これは、割り込みがキュ ーに入れられ、まとめて処理されるためである。 IntsPerSec=i,j,... この引き数は割り込み調停の間隔を決定する。静的 (static) 割り込み 調停が使われている場合、 IntsPerSec 引き数の値が 2000 であれば、 割り込み調停の間隔は 500 ミリ秒になる。この引き数に設定可能な値 は 30...40000 の範囲で、これは 1 秒毎の割り込み回数である。デフ ォルト値は 2000 である。 この引き数は静的 (static) または動的 (dynamic) 割り込み調停が有 効になっているときにのみ使用される。この引き数は割り込み調停が適 用されていない場合には無視される。 調停間隔の期間は注意して選ぶこと。一見したところでは、とても長い 期間 (例えば 1 秒間に 100 回だけの割り込み) を選ぶことに意味があ るように見えるかもしれないが、そうするとパケット処理の遅延が激し く増加する。一方で、とても短い調停時間を選ぶと、割り込み調停を使 う意味がなくなってしまう。 PrefPort=i,j,... この引き数は (2 ポートのネットワークアダプタで) 優先 (preferred) ポートを A または B のどちらにするかを指定するのに使われる。優先 ポートとは、A と B の両方のポートが完全に機能していると検知され た場合に使用されるポートである。使用可能な値は以下の通り: A また は B。デフォルトは A である。 RlmtMode=i,j,... RLMT はポートの状態を監視する。アクティブなポートのリンクが落ち た場合、 RLMT は即時に待機しているリンクに切り替える。少なくとも 1 つの「物理的」リンクが起動するまでは、仮想リンクが維持される。 この引き数は RLMT が両方のポートをどのように監視するかを決める。 使用可能な値は以下の通り: CheckLinkState, CheckLocalPort, CheckSeg, DualNet。デフォルトは CheckLinkState である。各モード は以下のような意味を持つ。 CheckLinkState リンク状態のチェックのみ: RLMT は、各ポートについ てアダプタハードウェアが報告するリンク状態を使い、そのポートが全 てのネットワークトラフィックを送受信するのに使用可能かを決定する 。 CheckLocalPort このモードでは、RLMT はアダプタカードの 2 つのポ ートの間で定期的にパケットを交換することにより、 2 つのポートの 間のネットワーク経路を監視する。このモードでは 2 つのポートが互 いに「見える」ようなネットワーク設定が必要である (つまり、ポート 間にルータがあってはならない)。 CheckSeg ローカルポートとセグメントをチェックする。このモードは CheckLocalPort モードと同じ機能を提供し、更にポート間のネットワ ークセグメントをチェックする。よって、このモードはネットワーク上 にスパニングツリープロトコル (Spanning Tree protocol) を使うよう に設定されたギガビットイーサネットスイッチが設置されている場合に のみ使用できる。 DualNet このモードでは、ポート A と B が別々のデバイスとして使用 される。 2 ポートのアダプタを持っている場合、ポート A を eth[x] に、ポート B を eth[x+1] に設定することができる。 2 つのポートは 別々の IP アドレスを付けて独立に使用することができる。優先ポート の設定は使用されない。 RLMT は無効にされる。 RLMT モード CheckLocalPort と CheckLinkState は、1 つのアダプタ 上のポート間でネットワーク経路があるような設定で動作するように設 計されている。さらに、このモードはアダプタ同士が直結 (back-to- back) で接続されている状態で動作するようには設計されていない。 ファイル /proc/net/sk98lin/eth[x] アダプタカードの特定のインタフェースの統計ファイル。このファイル には、アダプタカードの一般的な情報と、全ての送信・受信カウンタの 詳細な一覧が含まれる。 /usr/src/linux/Documentation/networking/sk98lin.txt sk98lin ドライバの README ファイルである。これには詳細なインスト ール HOWTO が含まれており、ドライバの全ての引き数が記述されてい る。また一般的な問題とその解決法についても書かれている。 バグ バグは linux@syskonnect.de に報告してほしい。 関連項目 insmod(8), ifconfig(8), modprobe(8) Linux 2007-11-25 SK98LIN(4)
SK98LIN(4) Linux Programmer’s Manual SK98LIN(4) NAME sk98lin - Marvell/SysKonnect Gigabit Ethernet driver v6.21 SYNOPSIS insmod sk98lin.o [Speed_A=i,j,...] [Speed_B=i,j,...] [AutoNeg_A=i,j,...] [AutoNeg_B=i,j,...] [DupCap_A=i,j,...] [Dup- Cap_B=i,j,...] [FlowCtrl_A=i,j,...] [FlowCtrl_B=i,j,...] [Role_A=i,j,...] [Role_B=i,j,...] [ConType=i,j,...] [Modera- tion=i,j,...] [IntsPerSec=i,j,...] [PrefPort=i,j,...] [Rlmt- Mode=i,j,...] DESCRIPTION sk98lin is the Gigabit Ethernet driver for Marvell and SysKonnect network adapter cards. It supports SysKonnect SK-98xx/SK-95xx compliant Gigabit Ethernet Adapter and any Yukon compliant chipset. When loading the driver using insmod, parameters for the network adapter cards might be stated as a sequence of comma separated commands. If for instance two network adapters are installed and AutoNegotiation on Port A of the first adapter should be ON, but on the Port A of the second adapter switched OFF, one must enter: insmod sk98lin.o AutoNeg_A=On,Off After sk98lin is bound to one or more adapter cards and the /proc file system is mounted on your system, a dedicated statistics file will be created in folder /proc/net/sk98lin for all ports of the installed network adapter cards. Those files are named eth[x] whereas x is the number of the interface that has been assigned to a dedicated port by the system. If loading is finished, any desired IP address can be assigned to the respective eth[x] interface using the ifconfig(8) command. This causes the adapter to connect to the Ethernet and to display a status message on the console saying "ethx: network connection up using port y" followed by the configured or detected connection parameters. The sk98lin also supports large frames (also called jumbo frames). Using jumbo frames can improve throughput tremendously when transferring large amounts of data. To enable large frames, the MTU (maximum transfer unit) size for an interface is to be set to a high value. The default MTU size is 1500 and can be changed up to 9000 (bytes). Setting the MTU size can be done when assigning the IP address to the interface or later by using the ifconfig(8) command with the mtu parameter. If for instance eth0 needs an IP address and a large frame MTU size, the following two commands might be used: ifconfig eth0 10.1.1.1 ifconfig eth0 mtu 9000 Those two commands might even be combined into one: ifconfig eth0 10.1.1.1 mtu 9000 Note that large frames can only be used if permitted by your network infrastructure. This means, that any switch being used in your Ethernet must also support large frames. Quite some switches support large frames, but need to be configured to do so. Most of the times, their default setting is to support only standard frames with an MTU size of 1500 (bytes). In addition to the switches inside the network, all network adapters that are to be used must also be enabled regarding jumbo frames. If an adapter is not set to receive large frames it will simply drop them. Switching back to the standard Ethernet frame size can be done by using the ifconfig(8) command again: ifconfig eth0 mtu 1500 The Marvell/SysKonnect Gigabit Ethernet driver for Linux is able to support VLAN and Link Aggregation according to IEEE standards 802.1, 802.1q, and 802.3ad. Those features are only available after installation of open source modules which can be found on the Internet: VLAN: http://www.candelatech.com/~greear/vlan.html Link Aggregation: http://www.st.rim.or.jp/~yumo Note that Marvell/SysKonnect does not offer any support for these open source modules and does not take the responsibility for any kind of failures or problems arising when using these modules. Parameters Speed_A=i,j,... This parameter is used to set the speed capabilities of port A of an adapter card. It is only valid for Yukon copper adapters. Possible values are: 10, 100, 1000 or Auto whereas Auto is the default. Usually, the speed is negotiated between the two ports during link establishment. If this fails, a port can be forced to a specific setting with this parameter. Speed_B=i,j,... This parameter is used to set the speed capabilities of port B of an adapter card. It is only valid for Yukon copper adapters. Possible values are: 10, 100, 1000 or Auto whereas Auto is the default. Usually, the speed is negotiated between the two ports during link establishment. If this fails, a port can be forced to a specific setting with this parameter. AutoNeg_A=i,j,... Enables or disables the use of autonegotiation of port A of an adapter card. Possible values are: On, Off or Sense whereas On is the default. The Sense mode automatically detects whether the link partner supports auto-negotiation or not. AutoNeg_B=i,j,... Enables or disables the use of autonegotiation of port B of an adapter card. Possible values are: On, Off or Sense whereas On is the default. The Sense mode automatically detects whether the link partner supports auto-negotiation or not. DupCap_A=i,j,... This parameter indicates the duplex mode to be used for port A of an adapter card. Possible values are: Half, Full or Both whereas Both is the default. This parameter is only relevant if AutoNeg_A of port A is not set to Sense. If AutoNeg_A is set to On, all three values of DupCap_A ( Half, Full or Both) might be stated. If AutoNeg_A is set to Off, only DupCap_A values Full and Half are allowed. This DupCap_A parameter is useful if your link partner does not support all possible duplex combinations. DupCap_B=i,j,... This parameter indicates the duplex mode to be used for port B of an adapter card. Possible values are: Half, Full or Both whereas Both is the default. This parameter is only relevant if AutoNeg_B of port B is not set to Sense. If AutoNeg_B is set to On, all three values of DupCap_B ( Half, Full or Both) might be stated. If AutoNeg_B is set to Off, only DupCap_B values Full and Half are allowed. This DupCap_B parameter is useful if your link partner does not support all possible duplex combinations. FlowCtrl_A=i,j,... This parameter can be used to set the flow control capabilities the port reports during auto-negotiation. Possible values are: Sym, SymOrRem, LocSend or None whereas SymOrRem is the default. The different modes have the following meaning: Sym = Symmetric both link partners are allowed to send PAUSE frames SymOrRem = SymmetricOrRemote both or only remote partner are allowed to send PAUSE frames LocSend = LocalSend only local link partner is allowed to send PAUSE frames None = None no link partner is allowed to send PAUSE frames Note that this parameter is ignored if AutoNeg_A is set to Off. FlowCtrl_B=i,j,... This parameter can be used to set the flow control capabilities the port reports during auto-negotiation. Possible values are: Sym, SymOrRem, LocSend or None whereas SymOrRem is the default. The different modes have the following meaning: Sym = Symmetric both link partners are allowed to send PAUSE frames SymOrRem = SymmetricOrRemote both or only remote partner are allowed to send PAUSE frames LocSend = LocalSend only local link partner is allowed to send PAUSE frames None = None no link partner is allowed to send PAUSE frames Note that this parameter is ignored if AutoNeg_B is set to Off. Role_A=i,j,... This parameter is only valid for 1000Base-T adapter cards. For two 1000Base-T ports to communicate, one must take the role of the master (providing timing information), while the other must be the slave. Possible values are: Auto, Master or Slave whereas Auto is the default. Usually, the role of a port is negotiated between two ports during link establishment, but if that fails the port A of an adapter card can be forced to a specific setting with this parameter. Role_B=i,j,... This parameter is only valid for 1000Base-T adapter cards. For two 1000Base-T ports to communicate, one must take the role of the master (providing timing information), while the other must be the slave. Possible values are: Auto, Master or Slave whereas Auto is the default. Usually, the role of a port is negotiated between two ports during link establishment, but if that fails the port B of an adapter card can be forced to a specific setting with this parameter. ConType=i,j,... This parameter is a combination of all five per-port parameters within one single parameter. This simplifies the configuration of both ports of an adapter card. The different values of this variable reflect the most meaningful combinations of port parameters. Possible values and their corresponding combination of per-port parameters: ConType | DupCap AutoNeg FlowCtrl Role Speed --------+------------------------------------------- Auto | Both On SymOrRem Auto Auto 100FD | Full Off None Auto 100 100HD | Half Off None Auto 100 10FD | Full Off None Auto 10 10HD | Half Off None Auto 10 Stating any other port parameter together with this ConType parameter will result in a merged configuration of those settings. This is due to the fact, that the per-port parameters (e.g. Speed_A) have a higher priority than the combined variable ConType. Moderation=i,j,... Interrupt moderation is employed to limit the maximum number of interrupts the driver has to serve. That is, one or more interrupts (which indicate any transmit or receive packet to be processed) are queued until the driver processes them. When queued interrupts are to be served, is determined by the IntsPerSec parameter, which is explained later below. Possible moderation modes are: None, Static or Dynamic whereas None is the default. The different modes have the following meaning: None No interrupt moderation is applied on the adapter card. Therefore, each transmit or receive interrupt is served immediately as soon as it appears on the interrupt line of the adapter card. Static Interrupt moderation is applied on the adapter card. All transmit and receive interrupts are queued until a complete moderation interval ends. If such a moderation interval ends, all queued interrupts are processed in one big bunch without any delay. The term Static reflects the fact, that interrupt moderation is always enabled, regardless how much network load is currently passing via a particular interface. In addition, the duration of the moderation interval has a fixed length that never changes while the driver is operational. Dynamic Interrupt moderation might be applied on the adapter card, depending on the load of the system. If the driver detects that the system load is too high, the driver tries to shield the system against too much network load by enabling interrupt moderation. If — at a later time — the CPU utilization decreases again (or if the network load is negligible) the interrupt moderation will automatically be disabled. Interrupt moderation should be used when the driver has to handle one or more interfaces with a high network load, which — as a consequence — leads also to a high CPU utilization. When moderation is applied in such high network load situations, CPU load might be reduced by 20-30% on slow computers. Note that the drawback of using interrupt moderation is an increase of the round-trip-time (RTT), due to the queuing and serving of interrupts at dedicated moderation times. IntsPerSec=i,j,... This parameter determines the length of any interrupt moderation interval. Assuming that static interrupt moderation is to be used, an IntsPerSec parameter value of 2000 will lead to an interrupt moderation interval of 500 microseconds. Possible values for this parameter are in the range of 30...40000 (interrupts per second). The default value is 2000. This parameter is only used, if either static or dynamic interrupt moderation is enabled on a network adapter card. This parameter is ignored if no moderation is applied. Note that the duration of the moderation interval is to be chosen with care. At first glance, selecting a very long duration (e.g., only 100 interrupts per second) seems to be meaningful, but the increase of packet-processing delay is tremendous. On the other hand, selecting a very short moderation time might compensate the use of any moderation being applied. PrefPort=i,j,... This parameter is used to force the preferred port to A or B (on dual-port network adapters). The preferred port is the one that is used if both ports A and B are detected as fully functional. Possible values are: A or B whereas A is the default. RlmtMode=i,j,... RLMT monitors the status of the port. If the link of the active port fails, RLMT switches immediately to the standby link. The virtual link is maintained as long as at least one "physical" link is up. This parameters states how RLMT should monitor both ports. Possible values are: CheckLinkState, CheckLocalPort, CheckSeg or DualNet whereas CheckLinkState is the default. The different modes have the following meaning: CheckLinkState Check link state only: RLMT uses the link state reported by the adapter hardware for each individual port to determine whether a port can be used for all network traffic or not. CheckLocalPort In this mode, RLMT monitors the network path between the two ports of an adapter by regularly exchanging packets between them. This mode requires a network configuration in which the two ports are able to "see" each other (i.e., there must not be any router between the ports). CheckSeg Check local port and segmentation: This mode supports the same functions as the CheckLocalPort mode and additionally checks network segmentation between the ports. Therefore, this mode is only to be used if Gigabit Ethernet switches are installed on the network that have been configured to use the Spanning Tree protocol. DualNet In this mode, ports A and B are used as separate devices. If you have a dual port adapter, port A will be configured as eth[x] and port B as eth[x+1]. Both ports can be used independently with distinct IP addresses. The preferred port setting is not used. RLMT is turned off. Note that RLMT modes CheckLocalPort and CheckLinkState are designed to operate in configurations where a network path between the ports on one adapter exists. Moreover, they are not designed to work where adapters are connected back-to-back. FILES /proc/net/sk98lin/eth[x] The statistics file of a particular interface of an adapter card. It contains generic information about the adapter card plus a detailed summary of all transmit and receive counters. /usr/src/linux/Documentation/networking/sk98lin.txt This is the README file of the sk98lin driver. It contains a detailed installation HOWTO and describes all parameters of the driver. It denotes also common problems and provides the solution to them. BUGS Report any bugs to linux@syskonnect.de SEE ALSO ifconfig(8), insmod(8), modprobe(8) COLOPHON This page is part of release 3.22 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-11-25 SK98LIN(4)
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa