]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - share/man/man4/sfxge.4
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / share / man / man4 / sfxge.4
1 .\" Copyright (c) 2011-2015 Solarflare Communications Inc.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are met:
6 .\"
7 .\" 1. Redistributions of source code must retain the above copyright notice,
8 .\"    this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright notice,
10 .\"    this list of conditions and the following disclaimer in the documentation
11 .\"    and/or other materials provided with the distribution.
12 .\"
13 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
14 .\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15 .\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17 .\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 .\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
23 .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 .\"
25 .\" The views and conclusions contained in the software and documentation are
26 .\" those of the authors and should not be interpreted as representing official
27 .\" policies, either expressed or implied, of the FreeBSD Project.
28 .\"
29 .\" $FreeBSD$
30 .\"
31 .Dd February 22, 2015
32 .Dt SFXGE 4
33 .Os
34 .Sh NAME
35 .Nm sfxge
36 .Nd "Solarflare 10Gb Ethernet adapter driver"
37 .Sh SYNOPSIS
38 To compile this driver into the kernel,
39 place the following lines in your
40 kernel configuration file:
41 .Bd -ragged -offset indent
42 .Cd "device sfxge"
43 .Ed
44 .Pp
45 To load the driver as a
46 module at boot time, place the following line in
47 .Xr loader.conf 5 :
48 .Bd -literal -offset indent
49 sfxge_load="YES"
50 .Ed
51 .Sh DESCRIPTION
52 The
53 .Nm
54 driver provides support for 10Gb Ethernet adapters based on
55 Solarflare SFC9000 family controllers.
56 The driver supports jumbo
57 frames, transmit/receive checksum offload, TCP Segmentation Offload
58 (TSO), Large Receive Offload (LRO), VLAN checksum offload, VLAN TSO,
59 and Receive Side Scaling (RSS) using MSI-X interrupts.
60 .Pp
61 The driver allocates 1 receive queue, transmit queue, event queue and
62 IRQ per CPU up to a maximum of 64.
63 IRQ affinities should be spread out using
64 .Xr cpuset 1 .
65 Interrupt moderation may be controlled through the sysctl
66 .Va dev.sfxge.%d.int_mod
67 (units are microseconds).
68 .Pp
69 For more information on configuring this device, see
70 .Xr ifconfig 8 .
71 .Pp
72 A large number of MAC, PHY and data path statistics are available
73 under the sysctl
74 .Va dev.sfxge.%d.stats .
75 The adapter's VPD
76 fields including its serial number are available under the sysctl
77 .Va dev.sfxge.%d.vpd .
78 .Sh HARDWARE
79 The
80 .Nm
81 driver supports all 10Gb Ethernet adapters based on Solarflare SFC9000
82 family controllers.
83 .Sh LOADER TUNABLES
84 Tunables can be set at the
85 .Xr loader 8
86 prompt before booting the kernel or stored in
87 .Xr loader.conf 5 .
88 Actual values can be obtained using
89 .Xr sysctl 8 .
90 .Bl -tag -width indent
91 .It Va hw.sfxge.rx_ring
92 The maximum number of descriptors in a receive queue ring.
93 Supported values are: 512, 1024, 2048 and 4096.
94 .It Va hw.sfxge.tx_ring
95 The maximum number of descriptors in a transmit queue ring.
96 Supported values are: 512, 1024, 2048 and 4096.
97 .It Va hw.sfxge.tx_dpl_get_max
98 The maximum length of the deferred packet
99 .Dq get-list
100 for queued transmit packets (TCP and non-TCP), used only if the transmit
101 queue lock can be acquired.
102 If a packet is dropped, the
103 .Va tx_get_overflow
104 counter is incremented and the local sender receives ENOBUFS.
105 The value must be greater than 0.
106 .It Va hw.sfxge.tx_dpl_get_non_tcp_max
107 The maximum number of non-TCP packets in the deferred packet
108 .Dq get-list
109 , used only if the transmit queue lock can be acquired.
110 If a packet is dropped, the
111 .Va tx_get_non_tcp_overflow
112 counter is incremented and the local sender receives ENOBUFS.
113 The value must be greater than 0.
114 .It Va hw.sfxge.tx_dpl_put_max
115 The maximum length of the deferred packet
116 .Dq put-list
117 for queued transmit
118 packets, used if the transmit queue lock cannot be acquired.
119 If a packet is dropped, the
120 .Va tx_put_overflow
121 counter is incremented and the local sender receives ENOBUFS.
122 The value must be greater than or equal to 0.
123 .It Va hw.sfxge.tso_fw_assisted
124 Enable/disable usage of FW-assisted TSO if supported by NIC firmware.
125 Enabled by default.
126 .It Va hw.sfxge.N.max_rss_channels
127 The maximum number of allocated RSS channels for the Nth adapter.
128 If set to 0 or unset, the number of channels is determined by the number
129 of CPU cores.
130 .It Va hw.sfxge.lro.table_size
131 Size of the LRO hash table.
132 Must be a power of 2.
133 A larger table means we can accelerate a larger number of streams.
134 .It Va hw.sfxge.lro.chain_max
135 The maximum length of a hash chain.
136 If chains get too long then the lookup time increases and may exceed
137 the benefit of LRO.
138 .It Va hw.sfxge.lro.idle_ticks
139 The maximum time (in ticks) that a connection can be idle before it's LRO
140 state is discarded.
141 .It Va hw.sfxge.lro.slow_start_packets
142 Number of packets with payload that must arrive in-order before a connection
143 is eligible for LRO.
144 The idea is we should avoid coalescing segments when the sender is in
145 slow-start because reducing the ACK rate can damage performance.
146 .It Va hw.sfxge.lro.loss_packets
147 Number of packets with payload that must arrive in-order following loss
148 before a connection is eligible for LRO.
149 The idea is we should avoid coalescing segments when the sender is recovering
150 from loss, because reducing the ACK rate can damage performance.
151 .El
152 .Sh SUPPORT
153 For general information and support,
154 go to the Solarflare support website at:
155 .Pa https://support.solarflare.com .
156 .Sh SEE ALSO
157 .Xr arp 4 ,
158 .Xr netintro 4 ,
159 .Xr ng_ether 4 ,
160 .Xr vlan 4 ,
161 .Xr cpuset 1 ,
162 .Xr ifconfig 8
163 .Sh AUTHORS
164 The
165 .Nm
166 driver was written by
167 .An Philip Paeps
168 and
169 .An Solarflare Communications, Inc.