xref: /freebsd/share/man/man4/oce.4 (revision 8b012980b8cc5f8619cd552ee6df7b98b97c5d62)
1291a1934SXin LI.\" Copyright (C) 2013 Emulex
2f6a92b88SLuigi Rizzo.\" All rights reserved.
3f6a92b88SLuigi Rizzo.\"
4f6a92b88SLuigi Rizzo.\" Redistribution and use in source and binary forms, with or without
5f6a92b88SLuigi Rizzo.\" modification, are permitted provided that the following conditions are met:
6f6a92b88SLuigi Rizzo.\"
7f6a92b88SLuigi Rizzo.\" 1. Redistributions of source code must retain the above copyright notice,
8f6a92b88SLuigi Rizzo.\"    this list of conditions and the following disclaimer.
9f6a92b88SLuigi Rizzo.\"
10f6a92b88SLuigi Rizzo.\" 2. Redistributions in binary form must reproduce the above copyright
11f6a92b88SLuigi Rizzo.\"    notice, this list of conditions and the following disclaimer in the
12f6a92b88SLuigi Rizzo.\"   documentation and/or other materials provided with the distribution.
13f6a92b88SLuigi Rizzo.\"
14f6a92b88SLuigi Rizzo.\" 3. Neither the name of the Emulex Corporation nor the names of its
15f6a92b88SLuigi Rizzo.\"    contributors may be used to endorse or promote products derived from
16f6a92b88SLuigi Rizzo.\"    this software without specific prior written permission.
17f6a92b88SLuigi Rizzo.\"
18f6a92b88SLuigi Rizzo.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19f6a92b88SLuigi Rizzo.\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20f6a92b88SLuigi Rizzo.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21f6a92b88SLuigi Rizzo.\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22f6a92b88SLuigi Rizzo.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23f6a92b88SLuigi Rizzo.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24f6a92b88SLuigi Rizzo.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25f6a92b88SLuigi Rizzo.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26f6a92b88SLuigi Rizzo.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27f6a92b88SLuigi Rizzo.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28f6a92b88SLuigi Rizzo.\" POSSIBILITY OF SUCH DAMAGE.
29f6a92b88SLuigi Rizzo.\"
30f6a92b88SLuigi Rizzo.\" Contact Information:
31f6a92b88SLuigi Rizzo.\" freebsd-drivers@emulex.com
32f6a92b88SLuigi Rizzo.\"
33f6a92b88SLuigi Rizzo.\" Emulex
34f6a92b88SLuigi Rizzo.\" 3333 Susan Street
35f6a92b88SLuigi Rizzo.\" Costa Mesa, CA 92626
36f6a92b88SLuigi Rizzo.\"
37*8b012980SEd Maste.Dd January 27, 2025
38f6a92b88SLuigi Rizzo.Dt OCE 4
39f6a92b88SLuigi Rizzo.Os
40f6a92b88SLuigi Rizzo.Sh NAME
41f6a92b88SLuigi Rizzo.Nm oce
42f6a92b88SLuigi Rizzo.Nd "Device driver for Emulex OneConnect 10Gb network adapters"
43f6a92b88SLuigi Rizzo.Sh SYNOPSIS
44f6a92b88SLuigi RizzoTo compile this driver into the kernel,
45f6a92b88SLuigi Rizzoplace the following lines in your
46f6a92b88SLuigi Rizzokernel configuration file:
47f6a92b88SLuigi Rizzo.Bd -ragged -offset indent
48d75a2818SSergey Kandaurov.Cd "device pci"
49f6a92b88SLuigi Rizzo.Cd "device oce"
50f6a92b88SLuigi Rizzo.Ed
51f6a92b88SLuigi Rizzo.Pp
52d75a2818SSergey KandaurovAlternatively, to load the driver as a
53f6a92b88SLuigi Rizzomodule at boot time, place the following line in
54f6a92b88SLuigi Rizzo.Xr loader.conf 5 :
55f6a92b88SLuigi Rizzo.Bd -literal -offset indent
56f6a92b88SLuigi Rizzoif_oce_load="YES"
57f6a92b88SLuigi Rizzo.Ed
58f6a92b88SLuigi Rizzo.Sh DESCRIPTION
5956799b60SChristian BruefferEmulex OneConnect adapters come in various skews and with
60f6a92b88SLuigi Rizzodifferent combinations of NIC, FCoE and iSCSI functions.
61d75a2818SSergey KandaurovThe
62d75a2818SSergey Kandaurov.Nm
63d75a2818SSergey Kandaurovdriver claims the NIC functions in all these adapters.
64f6a92b88SLuigi Rizzo.Pp
65f6a92b88SLuigi RizzoThe
66f6a92b88SLuigi Rizzo.Nm
67f6a92b88SLuigi Rizzodriver supports VLAN Hardware offload, TCP checksum offload,
68f6a92b88SLuigi RizzoTCP segmentation offload (TSO), Large receive offload (LRO),
69f6a92b88SLuigi RizzoBonding, Jumbo frames (from 1500 - 9000), Multiple TX queues,
70f6a92b88SLuigi RizzoReceive-Side Scaling (RSS) and MSI-X interrupts.
71f6a92b88SLuigi Rizzo.Sh HARDWARE
72d75a2818SSergey KandaurovThe
73f6a92b88SLuigi Rizzo.Nm
7456799b60SChristian Bruefferdriver supports the following network adapters:
75d75a2818SSergey Kandaurov.Pp
76f6a92b88SLuigi Rizzo.Bl -bullet -compact
77f6a92b88SLuigi Rizzo.It
7856799b60SChristian BruefferEmulex BladeEngine 2
79f6a92b88SLuigi Rizzo.It
8056799b60SChristian BruefferEmulex BladeEngine 3
81f6a92b88SLuigi Rizzo.It
8256799b60SChristian BruefferEmulex Lancer
83f6a92b88SLuigi Rizzo.El
84f6a92b88SLuigi Rizzo.Sh UPDATING FIRMWARE
85f6a92b88SLuigi RizzoAdapter firmware updates are persistent.
86d75a2818SSergey Kandaurov.Pp
87f6a92b88SLuigi RizzoFirmware can be updated by following the steps below:
8856799b60SChristian Brueffer.Bl -enum
8956799b60SChristian Brueffer.It
9056799b60SChristian BruefferCopy the below code to a Makefile:
9156799b60SChristian Brueffer.Bd -literal -offset indent
9213cb7631SEitan AdlerKMOD=elxflash
93f6a92b88SLuigi RizzoFIRMWS=imagename.ufi:elxflash
9456799b60SChristian Brueffer\&.include <bsd.kmod.mk>
9556799b60SChristian Brueffer.Ed
9656799b60SChristian Brueffer.It
9756799b60SChristian BruefferReplace imagename in above with UFI file name
9856799b60SChristian Brueffer.It
9956799b60SChristian BruefferCopy Makefile and UFI file to a directory
10056799b60SChristian Brueffer.It
10156799b60SChristian BruefferExecute make & copy generated elxflash.ko to
10256799b60SChristian Brueffer.Pa /lib/modules
10356799b60SChristian Brueffer.It
10456799b60SChristian Brueffersysctl dev.oce.<if_id>.fw_upgrade=elxflash
10556799b60SChristian Brueffer.It
10656799b60SChristian BruefferReboot the machine
10756799b60SChristian Brueffer.El
108d75a2818SSergey Kandaurov.Pp
109f6a92b88SLuigi RizzoIn case of issues with supplied UFI, flashing fails with one
11056799b60SChristian Bruefferof the following errors.
11156799b60SChristian Brueffer.Pp
11256799b60SChristian Brueffer.Bl -enum -compact
11356799b60SChristian Brueffer.It
11456799b60SChristian Brueffer.Qq Invalid BE3 firmware image
11556799b60SChristian Brueffer.It
11656799b60SChristian Brueffer.Qq "Invalid Cookie. Firmware image corrupted ?"
11756799b60SChristian Brueffer.It
11856799b60SChristian Brueffer.Qq cmd to write to flash rom failed.
11956799b60SChristian Brueffer.El
120f6a92b88SLuigi Rizzo.Sh SUPPORT
121f6a92b88SLuigi RizzoFor general information and support,
122f6a92b88SLuigi Rizzogo to the Emulex website at:
12356799b60SChristian Brueffer.Pa http://www.Emulex.com/
124f6a92b88SLuigi Rizzoor E-Mail at
12556799b60SChristian Brueffer.Pa freebsd-drivers@emulex.com .
126f6a92b88SLuigi Rizzo.Sh SEE ALSO
127f6a92b88SLuigi Rizzo.Xr ifconfig 8
128f6a92b88SLuigi Rizzo.Sh AUTHORS
129f6a92b88SLuigi Rizzo.An -nosplit
130f6a92b88SLuigi RizzoThe
131f6a92b88SLuigi Rizzo.Nm
132f6a92b88SLuigi Rizzodriver was written by
133f6a92b88SLuigi Rizzo.An freebsd-drivers@emulex.com .
134