6396 remove SVM
[unleashed.git] / usr / src / man / man7d / nxge.7d
blobb940e85cae0ca6d9669fff99713debc667a4c5a6
1 '\" te
2 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH NXGE 7D "Apr 12, 2008"
7 .SH NAME
8 nxge \- Sun 10/1 Gigabit Ethernet network driver
9 .SH SYNOPSIS
10 .LP
11 .nf
12 /dev/nxge*
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The \fBnxge\fR Gigabit Ethernet driver is a multi-threaded, loadable, clonable,
19 GLD-based STREAMS driver supporting the Data Link Provider Interface,
20 \fBdlpi\fR(7P), on Sun Gigabit Ethernet hardware (NIU, Sun x8, Express Dual 10
21 Gigabit Ethernet fiber XFP low profile adapter and the 10/100/1000BASE-T x8
22 Express low profile adapter).
23 .sp
24 .LP
25 The \fBnxge\fR driver functions include chip initialization, frame transmit and
26 receive, flow classification, multicast and promiscuous support, and error
27 recovery and reporting.
28 .sp
29 .LP
30 The \fBnxge\fR device provides fully-compliant \fIIEEE 802.3ae\fR 10Gb/s full
31 duplex operation using XFP-based 10GigE optics (NIU, dual 10 Gigabit fiber XFP
32 adapter). The Sun Ethernet hardware supports the \fIIEEE 802.3x\fR frame-based
33 flow control capabilities.
34 .sp
35 .LP
36 For the 10/100/1000BASE-T adapter, the \fBnxge\fR driver and hardware support
37 auto-negotiation, a protocol specified by the \fI1000 Base-T\fR standard.
38 Auto-negotiation allows each device to advertise its capabilities and discover
39 those of its peer (link partner). The highest common denominator supported by
40 both link partners is automatically selected, yielding the greatest available
41 throughput while requiring no manual configuration. The \fBnxge\fR driver also
42 allows you to configure the advertised capabilities to less than the maximum
43 (where the full speed of the interface is not required) or to force a specific
44 mode of operation, irrespective of the link partner's advertised capabilities.
45 .SH APPLICATION PROGRAMMING INTERFACE
46 .sp
47 .LP
48 The cloning character-special device, \fB/dev/nxge\fR, is used to access all
49 Sun Neptune NIU devices installed within the system.
50 .sp
51 .LP
52 The \fBnxge\fR driver is managed by the \fBdladm\fR(1M) command line utility,
53 which allows VLANs to be defined on top of \fBnxge\fR  instances and for
54 \fBnxge\fR instances to be aggregated. See \fBdladm\fR(1M) for more details.
55 .sp
56 .LP
57 You must send an explicit DL_ATTACH_REQ message to associate the opened stream
58 with a particular device (PPA). The PPA ID is interpreted as an unsigned
59 integer data type and indicates the corresponding device instance (unit)
60 number. The driver returns an error (DL_ERROR_ACK) if the PPA field value does
61 not correspond to a valid device instance number for the system. The device is
62 initialized on first attach and de-initialized (stopped) at last detach.
63 .sp
64 .LP
65 The values returned by the driver in the DL_INFO_ACK primitive in response to a
66 DL_INFO_REQ are:
67 .RS +4
68 .TP
69 .ie t \(bu
70 .el o
71 Maximum  SDU (default 1500).
72 .RE
73 .RS +4
74 .TP
75 .ie t \(bu
76 .el o
77 Minimum SDU (default 0). The driver pads to the  mandatory 60-octet minimum
78 packet size.
79 .RE
80 .RS +4
81 .TP
82 .ie t \(bu
83 .el o
84 DLSAP address length is 8.
85 .RE
86 .RS +4
87 .TP
88 .ie t \(bu
89 .el o
90 MAC type is \fBDL_ETHER\fR.
91 .RE
92 .RS +4
93 .TP
94 .ie t \(bu
95 .el o
96 \fBSAP\fR length value is \fI-2\fR, meaning the physical address component is
97 followed immediately by a 2-byte \fBSAP\fR component within the \fBDLSAP\fR
98 address.
99 .RE
100 .RS +4
102 .ie t \(bu
103 .el o
104 Broadcast address value is the Ethernet/IEEE broadcast address
105 (FF:FF:FF:FF:FF:FF).
107 Due to the nature of link address definition for IPoIB, the
108 DL_SET_PHYS_ADDR_REQ DLPI primitive is not supported.
110 In the transmit case for streams that have been put in raw mode via the
111 DLIOCRAW ioctl, the dlpi application must prepend the 20 byte IPoIB destination
112 address to the data it wants to transmit over-the-wire. In the receive case,
113 applications receive the IP/ARP datagram along with the IETF defined 4 byte
114 header.
118 Once in the DL_ATTACHED state, you must send a DL_BIND_REQ to associate a
119 particular Service Access Point (SAP) with the stream.
120 .SH CONFIGURATION
123 For the \fI10/100/1000BASE-T\fR adapter, the \fBnxge\fR driver performs
124 auto-negotiation to select the link speed and mode. Link speed and mode may be
125 10000 Mbps full-duplex (10 Gigabit adapter), 1000 Mbps full-duplex, 100 Mbps
126 full-duplex, or 10 Mbps full-duplex, depending on the hardware adapter type.
127 See  the \fI IEEE802.3\fR standard for more information.
130 The auto-negotiation protocol automatically selects the 1000 Mbps, 100 Mbps, or
131 10 Mbps operation modes (full-duplex only) as the highest common denominator
132 supported by both link partners. Because the \fBnxge\fR device supports all
133 modes, the effect is to select the highest throughput mode supported by the
134 other device.
137 You can also set the capabilities advertised by the \fBnxge\fR device using
138 \fBdladm\fR(1M). The driver supports a number of parameters whose names begin
139 with \fBen_\fR (see below). Each of these parameters contains a boolean value
140 that determines if the device advertises that mode of operation. The
141 \fBadv_autoneg_cap\fR parameter controls  whether auto-negotiation is
142 performed. If  \fBadv_autoneg_cap\fR  is set to 0, the driver forces the mode
143 of operation selected by the first  non-zero parameter in priority order as
144 shown below:
146 .in +2
148                             (highest priority/greatest throughput)
149         en_1000fdx_cap          1000Mbps full duplex
150         en_100fdx_cap           100Mbps full duplex
151         en_10fdx_cap            10Mbps full duplex
152                          (lowest priority/least throughput)
154 .in -2
158 All capabilities default to enabled. Note that changing any capability
159 parameter causes the link to go down while the link partners renegotiate the
160 link speed/duplex using the newly changed capabilities.
161 .SH FILES
163 .ne 2
165 \fB\fB/dev/nxge*\fR\fR
167 .RS 28n
168 Special character device.
172 .ne 2
174 \fB\fB/kernel/drv/nxge\fR\fR
176 .RS 28n
177 32-bit device driver (x86).
181 .ne 2
183 \fB\fB/kernel/drv/sparcv9/nxge\fR\fR
185 .RS 28n
186 64-bit device driver (SPARC).
190 .ne 2
192 \fB\fB/kernel/drv/amd64/nxge\fR\fR
194 .RS 28n
195 64-bit device driver (x86).
199 .ne 2
201 \fB\fB/kernel/drv/nxge.conf\fR\fR
203 .RS 28n
204 Configuration file.
207 .SH ATTRIBUTES
210 See \fBattributes\fR(5) for descriptions of the following attributes:
215 box;
216 c | c
217 l | l .
218 ATTRIBUTE TYPE  ATTRIBUTE VALUE
220 Architecture    SPARC, x86
223 .SH SEE ALSO
226 \fBdladm\fR(1M), \fBnetstat\fR(1M), \fBattributes\fR(5), \fBstreamio\fR(7I),
227 \fBdlpi\fR(7P), \fBdriver.conf\fR(4)
230 \fIWriting Device Drivers\fR
233 \fISTREAMS Programming Guide\fR
236 \fINetwork Interfaces Programmer's Guide\fR
239 \fIIEEE 802.3ae Specification\fR \(em 2002