Commit 7762f5c5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by David S. Miller

docs: networking: device drivers: convert neterion/s2io.txt to ReST

- add SPDX header;
- add a document title;
- comment out text-only TOC from html/pdf output;
- mark code blocks and literals as such;
- adjust identation, whitespaces and blank lines where needed;
- add to networking/index.rst.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 011531f7
...@@ -42,6 +42,7 @@ Contents: ...@@ -42,6 +42,7 @@ Contents:
intel/ipw2100 intel/ipw2100
intel/ipw2200 intel/ipw2200
microsoft/netvsc microsoft/netvsc
neterion/s2io
.. only:: subproject and html .. only:: subproject and html
......
.. SPDX-License-Identifier: GPL-2.0
=========================================================
Neterion's (Formerly S2io) Xframe I/II PCI-X 10GbE driver
=========================================================
Release notes for Neterion's (Formerly S2io) Xframe I/II PCI-X 10GbE driver. Release notes for Neterion's (Formerly S2io) Xframe I/II PCI-X 10GbE driver.
Contents .. Contents
======= - 1. Introduction
- 1. Introduction - 2. Identifying the adapter/interface
- 2. Identifying the adapter/interface - 3. Features supported
- 3. Features supported - 4. Command line parameters
- 4. Command line parameters - 5. Performance suggestions
- 5. Performance suggestions - 6. Available Downloads
- 6. Available Downloads
1. Introduction: 1. Introduction
===============
This Linux driver supports Neterion's Xframe I PCI-X 1.0 and This Linux driver supports Neterion's Xframe I PCI-X 1.0 and
Xframe II PCI-X 2.0 adapters. It supports several features Xframe II PCI-X 2.0 adapters. It supports several features
such as jumbo frames, MSI/MSI-X, checksum offloads, TSO, UFO and so on. such as jumbo frames, MSI/MSI-X, checksum offloads, TSO, UFO and so on.
See below for complete list of features. See below for complete list of features.
All features are supported for both IPv4 and IPv6. All features are supported for both IPv4 and IPv6.
2. Identifying the adapter/interface: 2. Identifying the adapter/interface
====================================
a. Insert the adapter(s) in your system. a. Insert the adapter(s) in your system.
b. Build and load driver b. Build and load driver::
# insmod s2io.ko
c. View log messages # insmod s2io.ko
# dmesg | tail -40
You will see messages similar to: c. View log messages::
eth3: Neterion Xframe I 10GbE adapter (rev 3), Version 2.0.9.1, Intr type INTA
eth4: Neterion Xframe II 10GbE adapter (rev 2), Version 2.0.9.1, Intr type INTA # dmesg | tail -40
eth4: Device is on 64 bit 133MHz PCIX(M1) bus
You will see messages similar to::
eth3: Neterion Xframe I 10GbE adapter (rev 3), Version 2.0.9.1, Intr type INTA
eth4: Neterion Xframe II 10GbE adapter (rev 2), Version 2.0.9.1, Intr type INTA
eth4: Device is on 64 bit 133MHz PCIX(M1) bus
The above messages identify the adapter type(Xframe I/II), adapter revision, The above messages identify the adapter type(Xframe I/II), adapter revision,
driver version, interface name(eth3, eth4), Interrupt type(INTA, MSI, MSI-X). driver version, interface name(eth3, eth4), Interrupt type(INTA, MSI, MSI-X).
...@@ -36,106 +50,147 @@ as well. ...@@ -36,106 +50,147 @@ as well.
To associate an interface with a physical adapter use "ethtool -p <ethX>". To associate an interface with a physical adapter use "ethtool -p <ethX>".
The corresponding adapter's LED will blink multiple times. The corresponding adapter's LED will blink multiple times.
3. Features supported: 3. Features supported
=====================
a. Jumbo frames. Xframe I/II supports MTU up to 9600 bytes, a. Jumbo frames. Xframe I/II supports MTU up to 9600 bytes,
modifiable using ip command. modifiable using ip command.
b. Offloads. Supports checksum offload(TCP/UDP/IP) on transmit b. Offloads. Supports checksum offload(TCP/UDP/IP) on transmit
and receive, TSO. and receive, TSO.
c. Multi-buffer receive mode. Scattering of packet across multiple c. Multi-buffer receive mode. Scattering of packet across multiple
buffers. Currently driver supports 2-buffer mode which yields buffers. Currently driver supports 2-buffer mode which yields
significant performance improvement on certain platforms(SGI Altix, significant performance improvement on certain platforms(SGI Altix,
IBM xSeries). IBM xSeries).
d. MSI/MSI-X. Can be enabled on platforms which support this feature d. MSI/MSI-X. Can be enabled on platforms which support this feature
(IA64, Xeon) resulting in noticeable performance improvement(up to 7% (IA64, Xeon) resulting in noticeable performance improvement(up to 7%
on certain platforms). on certain platforms).
e. Statistics. Comprehensive MAC-level and software statistics displayed e. Statistics. Comprehensive MAC-level and software statistics displayed
using "ethtool -S" option. using "ethtool -S" option.
f. Multi-FIFO/Ring. Supports up to 8 transmit queues and receive rings, f. Multi-FIFO/Ring. Supports up to 8 transmit queues and receive rings,
with multiple steering options. with multiple steering options.
4. Command line parameters
==========================
4. Command line parameters
a. tx_fifo_num a. tx_fifo_num
Number of transmit queues Number of transmit queues
Valid range: 1-8 Valid range: 1-8
Default: 1 Default: 1
b. rx_ring_num b. rx_ring_num
Number of receive rings Number of receive rings
Valid range: 1-8 Valid range: 1-8
Default: 1 Default: 1
c. tx_fifo_len c. tx_fifo_len
Size of each transmit queue Size of each transmit queue
Valid range: Total length of all queues should not exceed 8192 Valid range: Total length of all queues should not exceed 8192
Default: 4096 Default: 4096
d. rx_ring_sz d. rx_ring_sz
Size of each receive ring(in 4K blocks) Size of each receive ring(in 4K blocks)
Valid range: Limited by memory on system Valid range: Limited by memory on system
Default: 30
Default: 30
e. intr_type e. intr_type
Specifies interrupt type. Possible values 0(INTA), 2(MSI-X) Specifies interrupt type. Possible values 0(INTA), 2(MSI-X)
Valid values: 0, 2 Valid values: 0, 2
Default: 2 Default: 2
5. Performance suggestions 5. Performance suggestions
==========================
General: General:
a. Set MTU to maximum(9000 for switch setup, 9600 in back-to-back configuration) a. Set MTU to maximum(9000 for switch setup, 9600 in back-to-back configuration)
b. Set TCP windows size to optimal value. b. Set TCP windows size to optimal value.
For instance, for MTU=1500 a value of 210K has been observed to result in
good performance. For instance, for MTU=1500 a value of 210K has been observed to result in
# sysctl -w net.ipv4.tcp_rmem="210000 210000 210000" good performance::
# sysctl -w net.ipv4.tcp_wmem="210000 210000 210000"
For MTU=9000, TCP window size of 10 MB is recommended. # sysctl -w net.ipv4.tcp_rmem="210000 210000 210000"
# sysctl -w net.ipv4.tcp_rmem="10000000 10000000 10000000" # sysctl -w net.ipv4.tcp_wmem="210000 210000 210000"
# sysctl -w net.ipv4.tcp_wmem="10000000 10000000 10000000"
For MTU=9000, TCP window size of 10 MB is recommended::
# sysctl -w net.ipv4.tcp_rmem="10000000 10000000 10000000"
# sysctl -w net.ipv4.tcp_wmem="10000000 10000000 10000000"
Transmit performance: Transmit performance:
a. By default, the driver respects BIOS settings for PCI bus parameters.
However, you may want to experiment with PCI bus parameters a. By default, the driver respects BIOS settings for PCI bus parameters.
max-split-transactions(MOST) and MMRBC (use setpci command). However, you may want to experiment with PCI bus parameters
A MOST value of 2 has been found optimal for Opterons and 3 for Itanium. max-split-transactions(MOST) and MMRBC (use setpci command).
It could be different for your hardware.
Set MMRBC to 4K**. A MOST value of 2 has been found optimal for Opterons and 3 for Itanium.
For example you can set It could be different for your hardware.
For opteron
#setpci -d 17d5:* 62=1d Set MMRBC to 4K**.
For Itanium
#setpci -d 17d5:* 62=3d For example you can set
For detailed description of the PCI registers, please see Xframe User Guide. For opteron::
b. Ensure Transmit Checksum offload is enabled. Use ethtool to set/verify this #setpci -d 17d5:* 62=1d
parameter.
c. Turn on TSO(using "ethtool -K") For Itanium::
# ethtool -K <ethX> tso on
#setpci -d 17d5:* 62=3d
For detailed description of the PCI registers, please see Xframe User Guide.
b. Ensure Transmit Checksum offload is enabled. Use ethtool to set/verify this
parameter.
c. Turn on TSO(using "ethtool -K")::
# ethtool -K <ethX> tso on
Receive performance: Receive performance:
a. By default, the driver respects BIOS settings for PCI bus parameters.
However, you may want to set PCI latency timer to 248. a. By default, the driver respects BIOS settings for PCI bus parameters.
#setpci -d 17d5:* LATENCY_TIMER=f8 However, you may want to set PCI latency timer to 248::
For detailed description of the PCI registers, please see Xframe User Guide.
#setpci -d 17d5:* LATENCY_TIMER=f8
For detailed description of the PCI registers, please see Xframe User Guide.
b. Use 2-buffer mode. This results in large performance boost on b. Use 2-buffer mode. This results in large performance boost on
certain platforms(eg. SGI Altix, IBM xSeries). certain platforms(eg. SGI Altix, IBM xSeries).
c. Ensure Receive Checksum offload is enabled. Use "ethtool -K ethX" command to
set/verify this option. c. Ensure Receive Checksum offload is enabled. Use "ethtool -K ethX" command to
d. Enable NAPI feature(in kernel configuration Device Drivers ---> Network set/verify this option.
device support ---> Ethernet (10000 Mbit) ---> S2IO 10Gbe Xframe NIC) to
bring down CPU utilization. d. Enable NAPI feature(in kernel configuration Device Drivers ---> Network
device support ---> Ethernet (10000 Mbit) ---> S2IO 10Gbe Xframe NIC) to
** For AMD opteron platforms with 8131 chipset, MMRBC=1 and MOST=1 are bring down CPU utilization.
recommended as safe parameters.
.. note::
For AMD opteron platforms with 8131 chipset, MMRBC=1 and MOST=1 are
recommended as safe parameters.
For more information, please review the AMD8131 errata at For more information, please review the AMD8131 errata at
http://vip.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/ http://vip.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/
26310_AMD-8131_HyperTransport_PCI-X_Tunnel_Revision_Guide_rev_3_18.pdf 26310_AMD-8131_HyperTransport_PCI-X_Tunnel_Revision_Guide_rev_3_18.pdf
6. Support 6. Support
For further support please contact either your 10GbE Xframe NIC vendor (IBM, ==========
For further support please contact either your 10GbE Xframe NIC vendor (IBM,
HP, SGI etc.) HP, SGI etc.)
...@@ -11656,7 +11656,7 @@ NETERION 10GbE DRIVERS (s2io/vxge) ...@@ -11656,7 +11656,7 @@ NETERION 10GbE DRIVERS (s2io/vxge)
M: Jon Mason <jdmason@kudzu.us> M: Jon Mason <jdmason@kudzu.us>
L: netdev@vger.kernel.org L: netdev@vger.kernel.org
S: Supported S: Supported
F: Documentation/networking/device_drivers/neterion/s2io.txt F: Documentation/networking/device_drivers/neterion/s2io.rst
F: Documentation/networking/device_drivers/neterion/vxge.txt F: Documentation/networking/device_drivers/neterion/vxge.txt
F: drivers/net/ethernet/neterion/ F: drivers/net/ethernet/neterion/
......
...@@ -27,7 +27,7 @@ config S2IO ...@@ -27,7 +27,7 @@ config S2IO
on its age. on its age.
More specific information on configuring the driver is in More specific information on configuring the driver is in
<file:Documentation/networking/device_drivers/neterion/s2io.txt>. <file:Documentation/networking/device_drivers/neterion/s2io.rst>.
To compile this driver as a module, choose M here. The module To compile this driver as a module, choose M here. The module
will be called s2io. will be called s2io.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment