1.\" Copyright (c) 2013-2018, Intel Corporation 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.\" 10.\" 2. Redistributions in binary form must reproduce the above copyright 11.\" notice, this list of conditions and the following disclaimer in the 12.\" documentation and/or other materials provided with the distribution. 13.\" 14.\" 3. Neither the name of the Intel Corporation nor the names of its 15.\" contributors may be used to endorse or promote products derived from 16.\" this software without specific prior written permission. 17.\" 18.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28.\" POSSIBILITY OF SUCH DAMAGE. 29.\" 30.\" * Other names and brands may be claimed as the property of others. 31.\" 32.Dd August 1, 2023 33.Dt IXL 4 34.Os 35.Sh NAME 36.Nm ixl 37.Nd "Intel Ethernet 700 Series Driver" 38.Sh SYNOPSIS 39To compile this driver into the kernel, place the following lines in your 40kernel configuration file: 41.Bd -ragged -offset indent 42.Cd "device iflib" 43.Cd "device ixl" 44.Ed 45.Pp 46To load the driver as a module at boot time, place the following lines in 47.Xr loader.conf 5 : 48.Bd -literal -offset indent 49if_ixl_load="YES" 50.Ed 51.Sh DESCRIPTION 52.Ss Features 53The 54.Nm 55driver provides support for any PCI Express adapter or LOM 56(LAN On Motherboard) 57in the Intel Ethernet 700 Series. 58As of this writing, the series includes devices with these model numbers: 59.Pp 60.Bl -bullet -compact 61.It 62XL710 (40G) 63.It 64X710 (10G) 65.It 66XXV710 (25G) 67.It 68X722 (10G) 69.El 70.Pp 71The driver supports Jumbo Frames, TX/RX checksum offload, 72TCP segmentation offload (TSO), Large Receive Offload (LRO), VLAN 73tag insertion/extraction, VLAN checksum offload, VLAN TSO, and 74Receive Side Steering (RSS), all for both IPv4 and IPv6. 75For further hardware information and questions related to hardware 76requirements, see 77.Lk http://support.intel.com/ . 78.Pp 79Support for Jumbo Frames is provided via the interface MTU setting. 80Selecting an MTU larger than 1500 bytes with the 81.Xr ifconfig 8 82utility configures the adapter to receive and transmit Jumbo Frames. 83The maximum MTU size for Jumbo Frames is 9706. 84.Pp 85Offloads are also controlled via the interface, for instance, 86checksumming for both IPv4 and IPv6 can be set and unset, TSO4 87and/or TSO6, and finally LRO can be set and unset. 88.Pp 89For more information on configuring this device, see 90.Xr ifconfig 8 . 91.Ss Additional Utilities 92There are additional tools available from Intel to help configure and update 93the adapters covered by this driver. 94These tools can be downloaded directly from Intel at 95.Lk https://downloadcenter.intel.com , 96by searching for their names, or by installing certain packages: 97.Bl -bullet 98.It 99To change the behavior of the QSFP+ ports on XL710 adapters, use the 100Intel QCU (QSFP+ configuration utility); installed by the 101.Em sysutils/intel-qcu 102package. 103.It 104To update the firmware on an adapter, use the Intel Non-Volatile Memory (NVM) 105Update Utility; installed by the 106.Em sysutils/intel-nvmupdate-10g , 107.Em sysutils/intel-nvmupdate-40g , 108or 109.Em sysutils/intel-nvmupdate-100g , 110package. 111.It 112Drivers are provided by Intel outside of the 113.Fx 114kernel; install the 115.Em net/intel-ixl-kmod 116package for the latest driver. 117.El 118.Sh HARDWARE 119The 120.Nm 121driver supports the Intel Ethernet 700 series. 122Most adapters in this series with SFP+/SFP28/QSFP+ cages 123have firmware that requires that Intel qualified modules are used; these 124qualified modules are listed below. 125This qualification check cannot be disabled by the driver. 126.Pp 127The 128.Nm 129driver supports 40Gb Ethernet adapters with these QSFP+ modules: 130.Pp 131.Bl -bullet -compact 132.It 133Intel 4x10G/40G QSFP+ 40GBASE-SR4 E40GQSFPSR 134.It 135Intel 4x10G/40G QSFP+ 40GBASE-LR4 E40GQSFPLR 136.El 137.Pp 138The 139.Nm 140driver supports 25Gb Ethernet adapters with these SFP28 modules: 141.Pp 142.Bl -bullet -compact 143.It 144Intel 10G/25G SFP28 25GBASE-SR E25GSFP28SR 145.It 146Intel 10G/25G SFP28 25GBASE-SR E25GSFP28SRX (Extended Temp) 147.El 148.Pp 149The 150.Nm 151driver supports 25Gb and 10Gb Ethernet adapters with these SFP+ modules: 152.Pp 153.Bl -bullet -compact 154.It 155Intel 1G/10G SFP+ SR FTLX8571D3BCV-IT 156.It 157Intel 1G/10G SFP+ SR AFBR-703SDZ-IN2 158.It 159Intel 1G/10G SFP+ LR FTLX1471D3BCV-IT 160.It 161Intel 1G/10G SFP+ LR AFCT-701SDZ-IN2 162.It 163Intel 1G/10G SFP+ 10GBASE-SR E10GSFPSR 164.It 165Intel 10G SFP+ 10GBASE-SR E10GSFPSRX (Extended Temp) 166.It 167Intel 1G/10G SFP+ 10GBASE-LR E10GSFPLR 168.El 169.Pp 170Note that adapters also support all passive and active 171limiting direct attach cables that comply with SFF-8431 v4.1 and 172SFF-8472 v10.4 specifications. 173.Pp 174This is not an exhaustive list; please consult product documentation for an 175up-to-date list of supported media. 176.Sh LOADER TUNABLES 177Tunables can be set at the 178.Xr loader 8 179prompt before booting the kernel or stored in 180.Xr loader.conf 5 . 181.Bl -tag -width indent 182.It Va hw.ixl.rx_itr 183The RX interrupt rate value, set to 62 (124 usec) by default. 184.It Va hw.ixl.tx_itr 185The TX interrupt rate value, set to 122 (244 usec) by default. 186.It Va hw.ixl.i2c_access_method 187Access method that driver will use for I2C read and writes via 188.Xr sysctl 8 189or verbose 190.Xr ifconfig 8 191information display: 192.Bd -literal -offset indent 1930 - best available method 1941 - bit bang via I2CPARAMS register 1952 - register read/write via I2CCMD register 1963 - Use Admin Queue command (default best) 197.Ed 198.Pp 199Using the Admin Queue is only supported on 710 devices with FW version 1.7 or 200newer. 201Set to 0 by default. 202.It Va hw.ixl.enable_tx_fc_filter 203Filter out packets with Ethertype 0x8808 from being sent out by non-adapter 204sources. 205This prevents (potentially untrusted) software or 206.Xr iavf 4 207devices from sending out flow control packets and creating a DoS (Denial of 208Service) event. 209Enabled by default. 210.It Va hw.ixl.enable_head_writeback 211When the driver is finding the last TX descriptor processed by the hardware, 212use a value written to memory by the hardware instead of scanning the 213descriptor ring for completed descriptors. 214Enabled by default; disable to mimic the TX behavior found in 215.Xr ix 4 . 216.El 217.Sh SYSCTL PROCEDURES 218.Bl -tag -width indent 219.It Va dev.ixl.#.fc 220Sets the 802.3x flow control mode that the adapter will advertise on the link. 221A value of 0 disables flow control, 3 enables full, 1 is RX, and 2 is TX pause. 222.Pp 223The negotiated flow control setting can be viewed in 224.Xr ifconfig 8 , 225in the interface's media field. 226.It Va dev.ixl.#.advertise_speed 227Set the speeds that the interface will advertise on the link. 228.Va dev.ixl.#.supported_speeds 229contains the speeds that are allowed to be set. 230.It Va dev.ixl.#.current_speed 231Displays the current speed. 232.It Va dev.ixl.#.fw_version 233Displays the current firmware and NVM versions of the adapter. 234.It Va dev.ixl.#.debug.switch_vlans 235Set the Ethertype used by the hardware itself to handle internal 236services. 237Frames with this Ethertype will be dropped without notice. 238Defaults to 239.Dv 0x88a8 , 240which is a well known number for IEEE 802.1ad VLAN stacking. 241If you need 802.1ad support, set this number to any another Ethertype i.e. 242.Dv 0xffff . 243.El 244.Sh INTERRUPT STORMS 245It is important to note that 40G operation can generate high 246numbers of interrupts, often incorrectly being interpreted as 247a storm condition in the kernel. 248It is suggested that this be resolved by setting: 249.Bl -tag -width indent 250.It Va hw.intr_storm_threshold: 0 251.El 252.Sh IOVCTL OPTIONS 253The driver supports additional optional parameters for created VFs 254(Virtual Functions) when using 255.Xr iovctl 8 : 256.Bl -tag -width indent 257.It mac-addr Pq unicast-mac 258Set the Ethernet MAC address that the VF will use. 259If unspecified, the VF will use a randomly generated MAC address. 260.It mac-anti-spoof Pq bool 261Prevent the VF from sending Ethernet frames with a source address 262that does not match its own. 263.It allow-set-mac Pq bool 264Allow the VF to set its own Ethernet MAC address 265.It allow-promisc Pq bool 266Allow the VF to inspect all of the traffic sent to the port. 267.It num-queues Pq uint16_t 268Specify the number of queues the VF will have. 269By default, this is set to the number of MSI-X vectors supported by the VF 270minus one. 271.El 272.Pp 273An up to date list of parameters and their defaults can be found by using 274.Xr iovctl 8 275with the -S option. 276.Sh SUPPORT 277For general information and support, 278go to the Intel support website at: 279.Lk http://support.intel.com/ . 280.Pp 281If an issue is identified with this driver with a supported adapter, 282email all the specific information related to the issue to 283.Mt freebsd@intel.com . 284.Sh SEE ALSO 285.Xr arp 4 , 286.Xr iavf 4 , 287.Xr iflib 4 , 288.Xr netintro 4 , 289.Xr vlan 4 , 290.Xr ifconfig 8 , 291.Xr iovctl 8 292.Sh HISTORY 293The 294.Nm 295device driver first appeared in 296.Fx 10.1 . 297It was converted to use 298.Xr iflib 9 299in 300.Fx 12 . 301.Sh AUTHORS 302.An -nosplit 303The 304.Nm 305driver was written by 306.An Jack Vogel Aq Mt jfv@freebsd.org 307and 308.An Eric Joyner Aq Mt erj@freebsd.org . 309