xref: /titanic_41/usr/src/man/man5/ieee802.3.5 (revision 386cd27425fb6d22cd585248bff3502847e3d9ce)
1a7d6e28eSGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2*386cd274SRobert Mustacchi.\" Copyright 2016 Joyent, Inc.
3a7d6e28eSGarrett D'Amore.\" Redistribution and use in source and binary forms, with or without
4a7d6e28eSGarrett D'Amore.\" modification, are permitted provided that the following conditions
5a7d6e28eSGarrett D'Amore.\" are met:
6a7d6e28eSGarrett D'Amore.\" 1. Redistributions of source code must retain the above copyright
7a7d6e28eSGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer.
8a7d6e28eSGarrett D'Amore.\" 2. Redistributions in binary form must reproduce the above copyright
9a7d6e28eSGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer in the
10a7d6e28eSGarrett D'Amore.\"    documentation and/or other materials provided with the distribution.
11a7d6e28eSGarrett D'Amore.\"
12a7d6e28eSGarrett D'Amore.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
13a7d6e28eSGarrett D'Amore.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
14a7d6e28eSGarrett D'Amore.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15a7d6e28eSGarrett D'Amore.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
16a7d6e28eSGarrett D'Amore.\" COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
17a7d6e28eSGarrett D'Amore.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18a7d6e28eSGarrett D'Amore.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19a7d6e28eSGarrett D'Amore.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20a7d6e28eSGarrett D'Amore.\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21a7d6e28eSGarrett D'Amore.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22a7d6e28eSGarrett D'Amore.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
23a7d6e28eSGarrett D'Amore.\"
24*386cd274SRobert Mustacchi.Dd "Jan 29, 2016"
25a7d6e28eSGarrett D'Amore.Dt IEEE802.3 5
26a7d6e28eSGarrett D'Amore.Os
27a7d6e28eSGarrett D'Amore.Sh NAME
28a7d6e28eSGarrett D'Amore.Nm ieee802.3
29a7d6e28eSGarrett D'Amore.Nd IEEE 802.3 Ethernet parameters and statistics
30a7d6e28eSGarrett D'Amore.Sh DESCRIPTION
31a7d6e28eSGarrett D'AmoreThe IEEE 802.3 standard specifies the details for Ethernet
32a7d6e28eSGarrett D'Amorenetworking.  This page describes the various statistics and tunables
33a7d6e28eSGarrett D'Amorethat device drivers supporting Ethernet commonly offer.
34a7d6e28eSGarrett D'Amore.
35a7d6e28eSGarrett D'AmoreNote that not every device or driver supports every one of these
36a7d6e28eSGarrett D'Amorevalues, and many devices offer additional statistics and tunables that
37a7d6e28eSGarrett D'Amoreare specific to that hardware.  See the device driver's documentation
38a7d6e28eSGarrett D'Amorefor those specific details.
39a7d6e28eSGarrett D'Amore.
40a7d6e28eSGarrett D'Amore.Lp
41a7d6e28eSGarrett D'AmoreValues that are statistics are visible
42a7d6e28eSGarrett D'Amore.Xr kstat 1M ,
43a7d6e28eSGarrett D'Amorewhereas properties are visible using the
44a7d6e28eSGarrett D'Amore.Xr dladm 1M
45a7d6e28eSGarrett D'Amore.Sy show-linkprop
46a7d6e28eSGarrett D'Amoresubcommand.  Tunables are properties that can be changed using the
47a7d6e28eSGarrett D'Amore.Xr dladm 1M
48a7d6e28eSGarrett D'Amore.Sy set-linkprop
49a7d6e28eSGarrett D'Amoresubcommand.  A more useful summary of current operational
50a7d6e28eSGarrett D'Amorestate can be seen with the
51a7d6e28eSGarrett D'Amore.Xr dladm 1M
52a7d6e28eSGarrett D'Amore.Sy show-ether
53a7d6e28eSGarrett D'Amoresubcommand.
54a7d6e28eSGarrett D'Amore.
55a7d6e28eSGarrett D'Amore.Ss Statistics
56a7d6e28eSGarrett D'AmoreThe following statistics are accessible with
57a7d6e28eSGarrett D'Amore.Xr kstat 1M .
58a7d6e28eSGarrett D'AmoreNote that some statistics are available in both 32- and 64-bit counters,
59a7d6e28eSGarrett D'Amorein which case the name of the 64 bit statistic will be the same as the
60a7d6e28eSGarrett D'Amore32-bit, but with
61a7d6e28eSGarrett D'Amore.Dq Sy 64
62a7d6e28eSGarrett D'Amoreappended.  For example,
63a7d6e28eSGarrett D'Amore.Sy ipackets64
64a7d6e28eSGarrett D'Amoreis the 64-bit version of the
65a7d6e28eSGarrett D'Amore.Sy ipackets
66a7d6e28eSGarrett D'Amorestatistic. These are indicated with the special suffix
67a7d6e28eSGarrett D'Amore.Op Sy 64
68a7d6e28eSGarrett D'Amorein the table below.
69a7d6e28eSGarrett D'Amore.
70a7d6e28eSGarrett D'Amore.Bl -tag -width tx_late_collisions
71a7d6e28eSGarrett D'Amore.It Sy adv_cap_1000fdx
72a7d6e28eSGarrett D'AmoreAdvertises 1000 Mbps full-duplex support.
73a7d6e28eSGarrett D'Amore.It Sy adv_cap_1000hdx
74a7d6e28eSGarrett D'AmoreAdvertises 1000 Mbps half-duplex support.
75a7d6e28eSGarrett D'Amore.It Sy adv_cap_100fdx
76a7d6e28eSGarrett D'AmoreAdvertises 100 Mbps full-duplex support.
77*386cd274SRobert Mustacchi.It Sy adv_cap_100gfdx
78*386cd274SRobert MustacchiAdvertises 100 Gbps support.
79a7d6e28eSGarrett D'Amore.It Sy adv_cap_100hdx
80a7d6e28eSGarrett D'AmoreAdvertises 100 Mbps half-duplex support.
81a7d6e28eSGarrett D'Amore.It Sy adv_cap_100T4
82a7d6e28eSGarrett D'AmoreAdvertises 100BASE-T4 support.
83a7d6e28eSGarrett D'Amore.It Sy adv_cap_10fdx
84a7d6e28eSGarrett D'AmoreAdvertises 10 Mbps full-duplex support.
85a7d6e28eSGarrett D'Amore.It Sy adv_cap_10gfdx
86a7d6e28eSGarrett D'AmoreAdvertises 10 Gbps support.
87a7d6e28eSGarrett D'Amore.It Sy adv_cap_10hdx
88a7d6e28eSGarrett D'AmoreAdvertises 10 Mbps half-duplex support.
89*386cd274SRobert Mustacchi.It Sy adv_cap_2500fdx
90*386cd274SRobert MustacchiAdvertises 2.5 Gbps support.
91*386cd274SRobert Mustacchi.It Sy adv_cap_40gfdx
92*386cd274SRobert MustacchiAdvertises 40 Gbps support.
93*386cd274SRobert Mustacchi.It Sy adv_cap_5000fdx
94*386cd274SRobert MustacchiAdvertises 5 Gbps support.
95a7d6e28eSGarrett D'Amore.It Sy adv_cap_autoneg
96a7d6e28eSGarrett D'AmoreAdvertises auto-negotiation support.
97a7d6e28eSGarrett D'Amore.It Sy adv_cap_asmpause
98a7d6e28eSGarrett D'AmoreAdvertises asymmetric flow control support.
99a7d6e28eSGarrett D'Amore.It Sy adv_cap_pause
100a7d6e28eSGarrett D'AmoreAdvertises flow control support.
101a7d6e28eSGarrett D'Amore.It Sy adv_rem_fault
102a7d6e28eSGarrett D'AmoreRemote fault status sent to peer.
103a7d6e28eSGarrett D'Amore.It Sy align_errors
104a7d6e28eSGarrett D'AmoreMis-aligned frames received.
105a7d6e28eSGarrett D'Amore.It Sy brdcstrcv
106a7d6e28eSGarrett D'AmoreBroadcast frames received.
107a7d6e28eSGarrett D'Amore.It Sy brdcstxmt
108a7d6e28eSGarrett D'AmoreBroadcast frames transmitted.
109a7d6e28eSGarrett D'Amore.It Sy cap_1000fdx
110a7d6e28eSGarrett D'AmoreDevice supports 1000 Mbps full-duplex.
111a7d6e28eSGarrett D'Amore.It Sy cap_1000hdx
112a7d6e28eSGarrett D'AmoreDevice supports 1000 Mbps half-duplex.
113a7d6e28eSGarrett D'Amore.It Sy cap_100fdx
114a7d6e28eSGarrett D'AmoreDevice supports 100 Mbps full-duplex.
115*386cd274SRobert Mustacchi.It Sy cap_100gfdx
116*386cd274SRobert MustacchiDevice supports 100 Gbps.
117a7d6e28eSGarrett D'Amore.It Sy cap_100hdx
118a7d6e28eSGarrett D'AmoreDevice supports 100 Mbps half-duplex.
119a7d6e28eSGarrett D'Amore.It Sy cap_100T4
120a7d6e28eSGarrett D'AmoreDevice supports 100BASE-T4.
121a7d6e28eSGarrett D'Amore.It Sy cap_10fdx
122a7d6e28eSGarrett D'AmoreDevice supports 10 Mbps full-duplex.
123a7d6e28eSGarrett D'Amore.It Sy cap_10gfdx
124a7d6e28eSGarrett D'AmoreDevice supports 10 Gpbs.
125a7d6e28eSGarrett D'Amore.It Sy cap_10hdx
126a7d6e28eSGarrett D'AmoreDevice supports 10 Mbps half-duplex.
127*386cd274SRobert Mustacchi.It Sy cap_2500fdx
128*386cd274SRobert MustacchiDevice supports 2.5 Gbps.
129*386cd274SRobert Mustacchi.It Sy cap_40gfdx
130*386cd274SRobert MustacchiDevice supports 40 Gpbs.
131*386cd274SRobert Mustacchi.It Sy cap_5000fdx
132*386cd274SRobert MustacchiDevice supports 5 Gbps.
133a7d6e28eSGarrett D'Amore.It Sy cap_asmpause
134a7d6e28eSGarrett D'AmoreDevice supports asymmetric flow control.
135a7d6e28eSGarrett D'Amore.It Sy cap_autoneg
136a7d6e28eSGarrett D'AmoreDevice supports auto-negotiation.
137a7d6e28eSGarrett D'Amore.It Sy cap_pause
138a7d6e28eSGarrett D'AmoreDevice supports symmetric flow control.
139a7d6e28eSGarrett D'Amore.It Sy cap_rem_fault
140a7d6e28eSGarrett D'AmoreDevice supports remote fault notification.
141a7d6e28eSGarrett D'Amore.It Sy carrier_errors
142a7d6e28eSGarrett D'AmoreFrames dropped due to loss of link.
143a7d6e28eSGarrett D'Amore.It Sy collisions
144a7d6e28eSGarrett D'AmoreCollisions.
145a7d6e28eSGarrett D'Amore.It Sy defer_xmts
146a7d6e28eSGarrett D'AmoreTransmits deferred due to link activity.
147a7d6e28eSGarrett D'Amore.It Sy ex_collisions
148a7d6e28eSGarrett D'AmoreFrames dropped due to too many collisions.
149a7d6e28eSGarrett D'Amore.It Sy fcs_errors
150a7d6e28eSGarrett D'AmoreFrames received with bad frame checksum.
151a7d6e28eSGarrett D'Amore.It Sy first_collisions
152a7d6e28eSGarrett D'AmoreFrames with at least one collision.
153a7d6e28eSGarrett D'Amore.It Sy ierrors
154a7d6e28eSGarrett D'AmoreReceive errors.
155a7d6e28eSGarrett D'Amore.It Sy ifspeed
156a7d6e28eSGarrett D'AmoreLink speed in bits per second.
157a7d6e28eSGarrett D'Amore.It Sy ipackets Ns Op Sy 64
158a7d6e28eSGarrett D'AmoreFrames received successfully.
159a7d6e28eSGarrett D'Amore.It Sy jabber_errors
160a7d6e28eSGarrett D'AmoreJabber errors.
161a7d6e28eSGarrett D'Amore.It Sy link_asmpause
162a7d6e28eSGarrett D'AmoreAsymmetric flow control; works together with
163a7d6e28eSGarrett D'Amore.Sy link_pause .
164a7d6e28eSGarrett D'AmoreSee the description for it below.
165a7d6e28eSGarrett D'Amore.It Sy link_autoneg
166a7d6e28eSGarrett D'AmoreLink was auto-negotiated.
167a7d6e28eSGarrett D'Amore.It Sy link_duplex
168a7d6e28eSGarrett D'AmoreLink duplex status, values as follows:
169a7d6e28eSGarrett D'Amore.Bl -column "0" infinity
170a7d6e28eSGarrett D'Amore.It 0 Ta Unknown.
171a7d6e28eSGarrett D'Amore.It 1 Ta Half-duplex.
172a7d6e28eSGarrett D'Amore.It 2 Ta Full-duplex.
173a7d6e28eSGarrett D'Amore.El
174a7d6e28eSGarrett D'Amore.It Sy link_pause
175a7d6e28eSGarrett D'AmoreLink flow control available; works together with
176a7d6e28eSGarrett D'Amore.Sy link_asmpause .
177a7d6e28eSGarrett D'AmoreThe meanings of these bits are:
178a7d6e28eSGarrett D'Amore.Bl -column "pause" "asmpause"
179a7d6e28eSGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning
180a7d6e28eSGarrett D'Amore.It 0 Ta 0 Ta "No flow control."
181a7d6e28eSGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control.
182a7d6e28eSGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames.
183a7d6e28eSGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested.
184a7d6e28eSGarrett D'Amore.El
185a7d6e28eSGarrett D'Amore.It Sy link_state
186a7d6e28eSGarrett D'AmoreLink state; 0 for down, 1 for up.
187a7d6e28eSGarrett D'Amore.It Sy link_up
188a7d6e28eSGarrett D'AmoreLink is up if 1.
189a7d6e28eSGarrett D'Amore.It Sy lp_cap_1000fdx
190a7d6e28eSGarrett D'AmorePeer supports 1000 Mbps full-duplex.
191a7d6e28eSGarrett D'Amore.It Sy lp_cap_1000hdx
192a7d6e28eSGarrett D'AmorePeer supports 1000 Mbps half-duplex.
193a7d6e28eSGarrett D'Amore.It Sy lp_cap_100fdx
194a7d6e28eSGarrett D'AmorePeer supports 100 Mbps full-duplex.
195*386cd274SRobert Mustacchi.It Sy lp_cap_100gfdx
196*386cd274SRobert MustacchiPeer supports 100 Gbps full-duplex.
197a7d6e28eSGarrett D'Amore.It Sy lp_cap_100hdx
198a7d6e28eSGarrett D'AmorePeer supports 100 Mbps half-duplex.
199a7d6e28eSGarrett D'Amore.It Sy lp_cap_100T4
200a7d6e28eSGarrett D'AmorePeer supports 100BASE-T4.
201a7d6e28eSGarrett D'Amore.It Sy lp_cap_10fdx
202a7d6e28eSGarrett D'AmorePeer supports 10 Mbps full-duplex.
203a7d6e28eSGarrett D'Amore.It Sy lp_cap_10gfdx
204a7d6e28eSGarrett D'AmorePeer supports 10 Gbps.
205a7d6e28eSGarrett D'Amore.It Sy lp_cap_10hdx
206a7d6e28eSGarrett D'AmorePeer supports 10 Mbps half-duplex.
207*386cd274SRobert Mustacchi.It Sy lp_cap_2500fdx
208*386cd274SRobert MustacchiPeer supports 2.5 Gbps.
209*386cd274SRobert Mustacchi.It Sy lp_cap_5000fdx
210*386cd274SRobert MustacchiPeer supports 5 Gbps.
211*386cd274SRobert Mustacchi.It Sy lp_cap_40gfdx
212*386cd274SRobert MustacchiPeer supports 40 Gbps.
213a7d6e28eSGarrett D'Amore.It Sy lp_cap_asmpause
214a7d6e28eSGarrett D'AmorePeer supports asymmetric flow control.
215a7d6e28eSGarrett D'Amore.It Sy lp_cap_autoneg
216a7d6e28eSGarrett D'AmorePeer supports auto-negotiation.
217a7d6e28eSGarrett D'Amore.It Sy lp_cap_pause
218a7d6e28eSGarrett D'AmorePeer advertises flow control support.
219a7d6e28eSGarrett D'Amore.It Sy lp_rem_fault
220a7d6e28eSGarrett D'AmorePeer announces a remote fault.
221a7d6e28eSGarrett D'Amore.It Sy macrv_errors
222a7d6e28eSGarrett D'AmoreGeneric receive errors.
223a7d6e28eSGarrett D'Amore.It Sy macxmt_errors
224a7d6e28eSGarrett D'AmoreGeneric transmit errors.
225a7d6e28eSGarrett D'Amore.It Sy multi_collisions
226a7d6e28eSGarrett D'AmoreFrames with more than one collision.
227a7d6e28eSGarrett D'Amore.It Sy multircv
228a7d6e28eSGarrett D'AmoreMulticast frames received.
229a7d6e28eSGarrett D'Amore.It Sy multixmt
230a7d6e28eSGarrett D'AmoreMulticast frames transmitted.
231a7d6e28eSGarrett D'Amore.It Sy norcvbuf
232a7d6e28eSGarrett D'AmoreReceive frames dropped due to lack of resources.
233a7d6e28eSGarrett D'Amore.It Sy noxmtbuf
234a7d6e28eSGarrett D'AmoreTransmit frames dropped due to lack of resources.
235a7d6e28eSGarrett D'Amore.It Sy obytes Ns Op Sy 64
236a7d6e28eSGarrett D'AmoreBytes (octets) transmitted successfully.
237a7d6e28eSGarrett D'Amore.It Sy oerrors
238a7d6e28eSGarrett D'AmoreTransmit errors.
239a7d6e28eSGarrett D'Amore.It Sy oflo
240a7d6e28eSGarrett D'AmoreOverflow errors.
241a7d6e28eSGarrett D'Amore.It Sy opackets Ns Op Sy 64
242a7d6e28eSGarrett D'AmoreFrames successfully transmitted.
243a7d6e28eSGarrett D'Amore.It Sy promisc
244a7d6e28eSGarrett D'AmoreInterface is in promiscuous mode.
245a7d6e28eSGarrett D'Amore.It Sy rbytes Ns Op Sy 64
246a7d6e28eSGarrett D'AmoreBytes (octets) received successfully.
247a7d6e28eSGarrett D'Amore.It Sy runt_errors
248a7d6e28eSGarrett D'AmoreFrames received that were too short.
249a7d6e28eSGarrett D'Amore.It Sy sqe_errors
250a7d6e28eSGarrett D'AmoreSquelch errors.
251a7d6e28eSGarrett D'Amore.It Sy toolong_errors
252a7d6e28eSGarrett D'AmoreFrames received that were too long.
253a7d6e28eSGarrett D'Amore.It Sy tx_late_collisions
254a7d6e28eSGarrett D'AmoreLate collisions on transmit.
255a7d6e28eSGarrett D'Amore.It Sy uflo
256a7d6e28eSGarrett D'AmoreUnderflow errors.
257a7d6e28eSGarrett D'Amore.It Sy unknowns
258a7d6e28eSGarrett D'AmoreFrames received with no local recipient.
259a7d6e28eSGarrett D'Amore.It Sy xcvr_addr
260a7d6e28eSGarrett D'AmoreTransceiver address.
261a7d6e28eSGarrett D'Amore.It Sy xcvr_id
262a7d6e28eSGarrett D'AmoreTransceiver vendor and device ID.
263a7d6e28eSGarrett D'Amore.It Sy xcvr_inuse
264a7d6e28eSGarrett D'AmoreIdentifies the type of transceiver in use.  Values are as follows:
265a7d6e28eSGarrett D'Amore.Bl -column "0"
266a7d6e28eSGarrett D'Amore.It 0 Ta Unknown or undefined.
267a7d6e28eSGarrett D'Amore.It 1 Ta None.
268a7d6e28eSGarrett D'Amore.It 2 Ta 10 Mbps
269a7d6e28eSGarrett D'Amore.It 3 Ta 100BASE-T4
270a7d6e28eSGarrett D'Amore.It 4 Ta 100BASE-X
271a7d6e28eSGarrett D'Amore.It 5 Ta 100BASE-T2
272a7d6e28eSGarrett D'Amore.It 6 Ta 1000BASE-X
273a7d6e28eSGarrett D'Amore.It 7 Ta 1000BASE-T
274a7d6e28eSGarrett D'Amore.El
275a7d6e28eSGarrett D'Amore.El
276a7d6e28eSGarrett D'Amore.Ss Properties
277a7d6e28eSGarrett D'AmoreThe following parameters are accessible with
278a7d6e28eSGarrett D'Amore.Xr dladm 1M .
279a7d6e28eSGarrett D'AmoreSome of these are normally read-only.  Other properties that are not
280a7d6e28eSGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via
281a7d6e28eSGarrett D'Amore.Xr dladm 1M ,
282a7d6e28eSGarrett D'Amoreand are documented in its man page rather than here.
283a7d6e28eSGarrett D'Amore.
284a7d6e28eSGarrett D'Amore.Bl -tag -width adv_1000hdx_cap
285a7d6e28eSGarrett D'Amore.It Sy speed
286a7d6e28eSGarrett D'AmoreLink speed, in Mbps per second (dladm only).
287a7d6e28eSGarrett D'Amore.It Sy duplex
288a7d6e28eSGarrett D'AmoreLink duplex, either "full" or "half".
289a7d6e28eSGarrett D'Amore.It Sy state
290a7d6e28eSGarrett D'AmoreLink state, either "up" or "down".
291a7d6e28eSGarrett D'Amore.It Sy mtu
292a7d6e28eSGarrett D'AmoreMaximum link frame size in bytes. See
293a7d6e28eSGarrett D'Amore.Sx Jumbo Frames .
294a7d6e28eSGarrett D'Amore.It Sy flowctrl
295a7d6e28eSGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq.
296a7d6e28eSGarrett D'AmoreSee
297a7d6e28eSGarrett D'Amore.Sx Flow Control .
298a7d6e28eSGarrett D'Amore.It Sy adv_10gfdx_cap
299a7d6e28eSGarrett D'AmoreAdvertising 10 Gbps support.
300a7d6e28eSGarrett D'Amore.It Sy en_10gfdx_cap
301a7d6e28eSGarrett D'AmoreEnable 10 Gbps support.
302a7d6e28eSGarrett D'Amore.
303a7d6e28eSGarrett D'Amore.It Sy adv_1000fdx_cap
304a7d6e28eSGarrett D'AmoreAdvertising 1000 Mbps full-duplex support.
305a7d6e28eSGarrett D'Amore.It Sy en_1000fdx_cap
306a7d6e28eSGarrett D'AmoreEnable 1000 Mbps full-duplex.
307a7d6e28eSGarrett D'Amore.
308a7d6e28eSGarrett D'Amore.It Sy adv_1000hdx_cap
309a7d6e28eSGarrett D'AmoreAdvertising 1000 Mbps half-duplex support.
310a7d6e28eSGarrett D'Amore.It Sy en_1000hdx_cap
311a7d6e28eSGarrett D'AmoreEnable 1000 Mbps half-duplex.
312a7d6e28eSGarrett D'Amore.
313a7d6e28eSGarrett D'Amore.It Sy adv_100fdx_cap
314a7d6e28eSGarrett D'AmoreAdvertising 100 Mbps full-duplex support.
315a7d6e28eSGarrett D'Amore.It Sy en_100fdx_cap
316a7d6e28eSGarrett D'AmoreEnable 100 Mbps full-duplex.
317a7d6e28eSGarrett D'Amore.
318a7d6e28eSGarrett D'Amore.It Sy adv_100hdx_cap
319a7d6e28eSGarrett D'AmoreAdvertising 100 Mbps half-duplex support.
320a7d6e28eSGarrett D'Amore.It Sy en_100hdx_cap
321a7d6e28eSGarrett D'AmoreEnable 100 Mbps half-duplex.
322a7d6e28eSGarrett D'Amore.
323a7d6e28eSGarrett D'Amore.It Sy adv_10fdx_cap
324a7d6e28eSGarrett D'AmoreAdvertising 10 Mbps full-duplex support.
325a7d6e28eSGarrett D'Amore.It Sy en_10fhdx_cap
326a7d6e28eSGarrett D'AmoreEnable 100 Mbps full-duplex.
327a7d6e28eSGarrett D'Amore.
328a7d6e28eSGarrett D'Amore.It Sy adv_10hdx_cap
329a7d6e28eSGarrett D'AmoreAdvertising 10 Mbps half-duplex support.
330a7d6e28eSGarrett D'Amore.It Sy en_10fhdx_cap
331a7d6e28eSGarrett D'AmoreEnable 10 Mbps half-duplex.
332a7d6e28eSGarrett D'Amore.El
333a7d6e28eSGarrett D'Amore.Ss Auto-negotiation
334a7d6e28eSGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically.  With
335a7d6e28eSGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory.  (10GBASE-T also requires full-duplex
336a7d6e28eSGarrett D'Amoreoperation.) It is also
337a7d6e28eSGarrett D'Amore.Em strongly
338a7d6e28eSGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link
339a7d6e28eSGarrett D'Amorewill usually not operate unless both partners are configured to use the
340a7d6e28eSGarrett D'Amoresame link mode.
341a7d6e28eSGarrett D'Amore.Lp
342a7d6e28eSGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities
343a7d6e28eSGarrett D'Amorethat have been advertised (which must also be supported by the local device),
344a7d6e28eSGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer).
345a7d6e28eSGarrett D'Amore.
346a7d6e28eSGarrett D'AmoreThe first of the following modes that is supported by both partners is
347a7d6e28eSGarrett D'Amoreselected as the link negotiation result:
348a7d6e28eSGarrett D'Amore.Lp
349a7d6e28eSGarrett D'Amore.Bl -bullet -offset indent -compact
350a7d6e28eSGarrett D'Amore.It
351a7d6e28eSGarrett D'Amore10 Gbps (10gfdx)
352a7d6e28eSGarrett D'Amore.It
353a7d6e28eSGarrett D'Amore1000 Mbps full-duplex (1000fdx)
354a7d6e28eSGarrett D'Amore.It
355a7d6e28eSGarrett D'Amore1000 Mbps half-duplex (1000hdx)
356a7d6e28eSGarrett D'Amore.It
357a7d6e28eSGarrett D'Amore100 Mbps full-duplex (100fdx)
358a7d6e28eSGarrett D'Amore.It
359a7d6e28eSGarrett D'Amore100BASE-T4 (100T4)
360a7d6e28eSGarrett D'Amore.It
361a7d6e28eSGarrett D'Amore100 Mbps half-duplex (100hdx)
362a7d6e28eSGarrett D'Amore.It
363a7d6e28eSGarrett D'Amore10 Mbps full-duplex (10fdx)
364a7d6e28eSGarrett D'Amore.It
365a7d6e28eSGarrett D'Amore10 Mbps half-duplex (10hdx)
366a7d6e28eSGarrett D'Amore.El
367a7d6e28eSGarrett D'Amore.Lp
368a7d6e28eSGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the
369a7d6e28eSGarrett D'Amoreappropriate
370a7d6e28eSGarrett D'Amore.Sy en_
371a7d6e28eSGarrett D'Amoreproperty in
372a7d6e28eSGarrett D'Amore.Xr dladm 1M .
373a7d6e28eSGarrett D'Amore.Lp
374a7d6e28eSGarrett D'AmoreAuto-negotation may also be disabled, by setting the
375a7d6e28eSGarrett D'Amore.Sy adv_autoneg_cap
376a7d6e28eSGarrett D'Amoreproperty to 0.  In this case, the highest enabled link mode (using the above
377a7d6e28eSGarrett D'Amorelist) is
378a7d6e28eSGarrett D'Amore.Dq forced
379a7d6e28eSGarrett D'Amorefor the link.
380a7d6e28eSGarrett D'Amore.Ss Flow Control
381a7d6e28eSGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory
382a7d6e28eSGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and
383a7d6e28eSGarrett D'Amorethat the link be full-duplex, in order to function.
384a7d6e28eSGarrett D'Amore.Lp
385a7d6e28eSGarrett D'AmoreFlow control is applied when a receiver becomes congested.  In this case the
386a7d6e28eSGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its
387a7d6e28eSGarrett D'Amorepartner cease transmitting for a short period of time.
388a7d6e28eSGarrett D'Amore.Lp
389a7d6e28eSGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners
390a7d6e28eSGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner
391a7d6e28eSGarrett D'Amoremay not transmit pause frames.
392a7d6e28eSGarrett D'Amore.Lp
393a7d6e28eSGarrett D'AmoreThe flow control mode used is driven by the
394a7d6e28eSGarrett D'Amore.Sy flowctrl
395a7d6e28eSGarrett D'Amoreproperty.  It has the following meanings:
396a7d6e28eSGarrett D'Amore.Lp
397a7d6e28eSGarrett D'Amore.Bl -column -compact -offset indent Dv
398a7d6e28eSGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames.
399a7d6e28eSGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them,
400a7d6e28eSGarrett D'Amorebut do not honor them.
401a7d6e28eSGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames.
402a7d6e28eSGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames.
403a7d6e28eSGarrett D'Amore.El
404a7d6e28eSGarrett D'Amore.Lp
405a7d6e28eSGarrett D'AmoreThe statistics for flow control
406a7d6e28eSGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause ,
407a7d6e28eSGarrett D'Amore.Sy link_pause ,
408a7d6e28eSGarrett D'Amoreand
409a7d6e28eSGarrett D'Amore.Sy link_asmpause
410a7d6e28eSGarrett D'Amore.Pc
411a7d6e28eSGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are
412a7d6e28eSGarrett D'Amoreconfusing as a result.  Administrators are advised to use the
413a7d6e28eSGarrett D'Amore.Sy flowctrl
414a7d6e28eSGarrett D'Amoreproperty instead.
415a7d6e28eSGarrett D'Amore.
416a7d6e28eSGarrett D'Amore.Ss Jumbo Frames
417a7d6e28eSGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes,
418a7d6e28eSGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes
419a7d6e28eSGarrett D'Amoreof payload.  Most devices support larger frame sizes than this, and
420a7d6e28eSGarrett D'Amorewhen all possible parties on the same local network can do so, it may be
421a7d6e28eSGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common
422a7d6e28eSGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while
423a7d6e28eSGarrett D'Amoreleaving room for various link, network, and transport layer headers.
424a7d6e28eSGarrett D'Amore.Lp
425a7d6e28eSGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is
426a7d6e28eSGarrett D'Amorenot standardized, even though it is common practice.
427a7d6e28eSGarrett D'Amore.Lp
428a7d6e28eSGarrett D'AmoreThe
429a7d6e28eSGarrett D'Amore.Sy mtu
430a7d6e28eSGarrett D'Amoreproperty is used to configure the frame size.  Note that this is the size of
431a7d6e28eSGarrett D'Amorethe payload, and excludes the preamble, checksum, and header.  It also excludes
432a7d6e28eSGarrett D'Amorethe tag for devices that support tagging (see
433a7d6e28eSGarrett D'Amore.Sx Virtual LANs
434a7d6e28eSGarrett D'Amorebelow).
435a7d6e28eSGarrett D'Amore.Lp
436a7d6e28eSGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same
437a7d6e28eSGarrett D'Amoresize, or communication may cease to function properly.
438a7d6e28eSGarrett D'Amore.Lp
439a7d6e28eSGarrett D'AmoreNote that the
440a7d6e28eSGarrett D'Amore.Sy mtu
441a7d6e28eSGarrett D'Amoreproperty refers to the link layer property.  It may be necessary to configure
442a7d6e28eSGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes.
443a7d6e28eSGarrett D'AmoreSee
444a7d6e28eSGarrett D'Amore.Xr ifconfig 1M .
445a7d6e28eSGarrett D'Amore.
446a7d6e28eSGarrett D'Amore.Ss Virtual LANs
447a7d6e28eSGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though
448a7d6e28eSGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload.  The
449a7d6e28eSGarrett D'Amoredetails of configuration of this are covered in the
450a7d6e28eSGarrett D'Amore.Xr dladm 1M
451a7d6e28eSGarrett D'Amoremanual.
452a7d6e28eSGarrett D'Amore.
453a7d6e28eSGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details
454a7d6e28eSGarrett D'Amore.
455a7d6e28eSGarrett D'AmoreThe correct method for applications to access Ethernet devices directly
456a7d6e28eSGarrett D'Amoreis to use the DLPI. See
457a7d6e28eSGarrett D'Amore.Xr dlpi 7P
458a7d6e28eSGarrett D'Amoreand
459a7d6e28eSGarrett D'Amore.Xr libdlpi 3LIB
460a7d6e28eSGarrett D'Amorefor further information.
461a7d6e28eSGarrett D'Amore.Lp
462a7d6e28eSGarrett D'AmoreThe following DLPI parameters are presented to applications.
463a7d6e28eSGarrett D'Amore.Bl -column -offset indent "Broadcast address"
464a7d6e28eSGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.)
465a7d6e28eSGarrett D'Amore.It Minimum SDU Ta 0
466a7d6e28eSGarrett D'Amore.It Address length Ta 6
467a7d6e28eSGarrett D'Amore.It MAC type Ta Dv DL_ETHER
468a7d6e28eSGarrett D'Amore.It SAP length Ta \(mi2
469a7d6e28eSGarrett D'Amore.It Service mode Ta Dv DL_CLDLS
470a7d6e28eSGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set)
471a7d6e28eSGarrett D'Amore.El
472a7d6e28eSGarrett D'Amore.Lp
473a7d6e28eSGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3
474a7d6e28eSGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type.
475a7d6e28eSGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered
476a7d6e28eSGarrett D'Amoreto applications that bind to SAP 0.
477a7d6e28eSGarrett D'Amore.Lp
478a7d6e28eSGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation.
479a7d6e28eSGarrett D'AmoreAdditionally, it is possible to configure provide
480a7d6e28eSGarrett D'Amore.Dq vanity
481a7d6e28eSGarrett D'Amorenames to interfaces using the
482a7d6e28eSGarrett D'Amore.Xr dladm 1M
483a7d6e28eSGarrett D'Amore.Sy rename-link
484a7d6e28eSGarrett D'Amoresubcommand.  Such vanity names are only accessible using DLPI style 1.
485a7d6e28eSGarrett D'Amore.Sh NOTES
486a7d6e28eSGarrett D'AmoreThere may be other mechanisms available to configure link layer properties.
487a7d6e28eSGarrett D'AmoreHistorically the
488a7d6e28eSGarrett D'Amore.Xr ndd 1M
489a7d6e28eSGarrett D'Amorecommand, and
490a7d6e28eSGarrett D'Amore.Xr driver.conf 4
491a7d6e28eSGarrett D'Amorefiles could be used to do this.  These methods are deprecated in favor of
492a7d6e28eSGarrett D'Amore.Xr dladm 1M
493a7d6e28eSGarrett D'Amoreproperties.
494a7d6e28eSGarrett D'Amore.
495a7d6e28eSGarrett D'Amore.Sh INTERFACE STABILITY
496a7d6e28eSGarrett D'AmoreWhen present, the statistics and properties presented here
497a7d6e28eSGarrett D'Amoreare
498a7d6e28eSGarrett D'Amore.Sy Committed .
499a7d6e28eSGarrett D'AmoreHowever, note that not every Ethernet device supports all of these,
500a7d6e28eSGarrett D'Amoreand some devices may support additional statistics and properties.
501a7d6e28eSGarrett D'Amore.Lp
502a7d6e28eSGarrett D'AmoreThe DLPI and IEEE 802.3 itself are
503a7d6e28eSGarrett D'Amore.Sy Standard .
504a7d6e28eSGarrett D'Amore.Sh SEE ALSO
505a7d6e28eSGarrett D'Amore.Xr dladm 1M ,
506a7d6e28eSGarrett D'Amore.Xr ifconfig 1M ,
507a7d6e28eSGarrett D'Amore.Xr kstat 1M ,
508a7d6e28eSGarrett D'Amore.Xr netstat 1M ,
509a7d6e28eSGarrett D'Amore.Xr ndd 1M ,
510a7d6e28eSGarrett D'Amore.Xr libdlpi 3LIB ,
511a7d6e28eSGarrett D'Amore.Xr driver.conf 4 ,
512a7d6e28eSGarrett D'Amore.Xr dlpi 7P
513a7d6e28eSGarrett D'Amore.Rs
514a7d6e28eSGarrett D'Amore.%T IEEE 802.3: Ethernet
515a7d6e28eSGarrett D'Amore.%Q IEEE Standards Association
516a7d6e28eSGarrett D'Amore.Re
517a7d6e28eSGarrett D'Amore.Rs
518a7d6e28eSGarrett D'Amore.%B Data Link Provider Interface (DLPI)
519a7d6e28eSGarrett D'Amore.%Q The Open Group
520a7d6e28eSGarrett D'Amore.%D 1997
521a7d6e28eSGarrett D'Amore.Re
522a7d6e28eSGarrett D'Amore.Rs
523a7d6e28eSGarrett D'Amore.%B STREAMs Programming Guide
524a7d6e28eSGarrett D'Amore.%Q Sun Microsystems, Inc.
525a7d6e28eSGarrett D'Amore.%D January 2005
526a7d6e28eSGarrett D'Amore.Re
527