xref: /titanic_41/usr/src/man/man5/ieee802.3.5 (revision f8cad4941c772dbfb48b3a9446f336b524ea3b3d)
1a7d6e28eSGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2386cd274SRobert 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*f8cad494SRobert Mustacchi.Dd "Nov 23, 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.
77386cd274SRobert Mustacchi.It Sy adv_cap_100gfdx
78386cd274SRobert 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.
89386cd274SRobert Mustacchi.It Sy adv_cap_2500fdx
90386cd274SRobert MustacchiAdvertises 2.5 Gbps support.
91*f8cad494SRobert Mustacchi.It Sy adv_cap_50gfdx
92*f8cad494SRobert MustacchiAdvertises 50 Gbps support.
93386cd274SRobert Mustacchi.It Sy adv_cap_40gfdx
94386cd274SRobert MustacchiAdvertises 40 Gbps support.
95*f8cad494SRobert Mustacchi.It Sy adv_cap_25gfdx
96*f8cad494SRobert MustacchiAdvertises 25 Gbps support.
97386cd274SRobert Mustacchi.It Sy adv_cap_5000fdx
98386cd274SRobert MustacchiAdvertises 5 Gbps support.
99a7d6e28eSGarrett D'Amore.It Sy adv_cap_autoneg
100a7d6e28eSGarrett D'AmoreAdvertises auto-negotiation support.
101a7d6e28eSGarrett D'Amore.It Sy adv_cap_asmpause
102a7d6e28eSGarrett D'AmoreAdvertises asymmetric flow control support.
103a7d6e28eSGarrett D'Amore.It Sy adv_cap_pause
104a7d6e28eSGarrett D'AmoreAdvertises flow control support.
105a7d6e28eSGarrett D'Amore.It Sy adv_rem_fault
106a7d6e28eSGarrett D'AmoreRemote fault status sent to peer.
107a7d6e28eSGarrett D'Amore.It Sy align_errors
108a7d6e28eSGarrett D'AmoreMis-aligned frames received.
109a7d6e28eSGarrett D'Amore.It Sy brdcstrcv
110a7d6e28eSGarrett D'AmoreBroadcast frames received.
111a7d6e28eSGarrett D'Amore.It Sy brdcstxmt
112a7d6e28eSGarrett D'AmoreBroadcast frames transmitted.
113a7d6e28eSGarrett D'Amore.It Sy cap_1000fdx
114a7d6e28eSGarrett D'AmoreDevice supports 1000 Mbps full-duplex.
115a7d6e28eSGarrett D'Amore.It Sy cap_1000hdx
116a7d6e28eSGarrett D'AmoreDevice supports 1000 Mbps half-duplex.
117a7d6e28eSGarrett D'Amore.It Sy cap_100fdx
118a7d6e28eSGarrett D'AmoreDevice supports 100 Mbps full-duplex.
119386cd274SRobert Mustacchi.It Sy cap_100gfdx
120386cd274SRobert MustacchiDevice supports 100 Gbps.
121a7d6e28eSGarrett D'Amore.It Sy cap_100hdx
122a7d6e28eSGarrett D'AmoreDevice supports 100 Mbps half-duplex.
123a7d6e28eSGarrett D'Amore.It Sy cap_100T4
124a7d6e28eSGarrett D'AmoreDevice supports 100BASE-T4.
125a7d6e28eSGarrett D'Amore.It Sy cap_10fdx
126a7d6e28eSGarrett D'AmoreDevice supports 10 Mbps full-duplex.
127a7d6e28eSGarrett D'Amore.It Sy cap_10gfdx
128a7d6e28eSGarrett D'AmoreDevice supports 10 Gpbs.
129a7d6e28eSGarrett D'Amore.It Sy cap_10hdx
130a7d6e28eSGarrett D'AmoreDevice supports 10 Mbps half-duplex.
131386cd274SRobert Mustacchi.It Sy cap_2500fdx
132386cd274SRobert MustacchiDevice supports 2.5 Gbps.
133*f8cad494SRobert Mustacchi.It Sy cap_50gfdx
134*f8cad494SRobert MustacchiDevice supports 50 Gpbs.
135386cd274SRobert Mustacchi.It Sy cap_40gfdx
136386cd274SRobert MustacchiDevice supports 40 Gpbs.
137*f8cad494SRobert Mustacchi.It Sy cap_25gfdx
138*f8cad494SRobert MustacchiDevice supports 25 Gpbs.
139386cd274SRobert Mustacchi.It Sy cap_5000fdx
140386cd274SRobert MustacchiDevice supports 5 Gbps.
141a7d6e28eSGarrett D'Amore.It Sy cap_asmpause
142a7d6e28eSGarrett D'AmoreDevice supports asymmetric flow control.
143a7d6e28eSGarrett D'Amore.It Sy cap_autoneg
144a7d6e28eSGarrett D'AmoreDevice supports auto-negotiation.
145a7d6e28eSGarrett D'Amore.It Sy cap_pause
146a7d6e28eSGarrett D'AmoreDevice supports symmetric flow control.
147a7d6e28eSGarrett D'Amore.It Sy cap_rem_fault
148a7d6e28eSGarrett D'AmoreDevice supports remote fault notification.
149a7d6e28eSGarrett D'Amore.It Sy carrier_errors
150a7d6e28eSGarrett D'AmoreFrames dropped due to loss of link.
151a7d6e28eSGarrett D'Amore.It Sy collisions
152a7d6e28eSGarrett D'AmoreCollisions.
153a7d6e28eSGarrett D'Amore.It Sy defer_xmts
154a7d6e28eSGarrett D'AmoreTransmits deferred due to link activity.
155a7d6e28eSGarrett D'Amore.It Sy ex_collisions
156a7d6e28eSGarrett D'AmoreFrames dropped due to too many collisions.
157a7d6e28eSGarrett D'Amore.It Sy fcs_errors
158a7d6e28eSGarrett D'AmoreFrames received with bad frame checksum.
159a7d6e28eSGarrett D'Amore.It Sy first_collisions
160a7d6e28eSGarrett D'AmoreFrames with at least one collision.
161a7d6e28eSGarrett D'Amore.It Sy ierrors
162a7d6e28eSGarrett D'AmoreReceive errors.
163a7d6e28eSGarrett D'Amore.It Sy ifspeed
164a7d6e28eSGarrett D'AmoreLink speed in bits per second.
165a7d6e28eSGarrett D'Amore.It Sy ipackets Ns Op Sy 64
166a7d6e28eSGarrett D'AmoreFrames received successfully.
167a7d6e28eSGarrett D'Amore.It Sy jabber_errors
168a7d6e28eSGarrett D'AmoreJabber errors.
169a7d6e28eSGarrett D'Amore.It Sy link_asmpause
170a7d6e28eSGarrett D'AmoreAsymmetric flow control; works together with
171a7d6e28eSGarrett D'Amore.Sy link_pause .
172a7d6e28eSGarrett D'AmoreSee the description for it below.
173a7d6e28eSGarrett D'Amore.It Sy link_autoneg
174a7d6e28eSGarrett D'AmoreLink was auto-negotiated.
175a7d6e28eSGarrett D'Amore.It Sy link_duplex
176a7d6e28eSGarrett D'AmoreLink duplex status, values as follows:
177a7d6e28eSGarrett D'Amore.Bl -column "0" infinity
178a7d6e28eSGarrett D'Amore.It 0 Ta Unknown.
179a7d6e28eSGarrett D'Amore.It 1 Ta Half-duplex.
180a7d6e28eSGarrett D'Amore.It 2 Ta Full-duplex.
181a7d6e28eSGarrett D'Amore.El
182a7d6e28eSGarrett D'Amore.It Sy link_pause
183a7d6e28eSGarrett D'AmoreLink flow control available; works together with
184a7d6e28eSGarrett D'Amore.Sy link_asmpause .
185a7d6e28eSGarrett D'AmoreThe meanings of these bits are:
186a7d6e28eSGarrett D'Amore.Bl -column "pause" "asmpause"
187a7d6e28eSGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning
188a7d6e28eSGarrett D'Amore.It 0 Ta 0 Ta "No flow control."
189a7d6e28eSGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control.
190a7d6e28eSGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames.
191a7d6e28eSGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested.
192a7d6e28eSGarrett D'Amore.El
193a7d6e28eSGarrett D'Amore.It Sy link_state
194a7d6e28eSGarrett D'AmoreLink state; 0 for down, 1 for up.
195a7d6e28eSGarrett D'Amore.It Sy link_up
196a7d6e28eSGarrett D'AmoreLink is up if 1.
197a7d6e28eSGarrett D'Amore.It Sy lp_cap_1000fdx
198a7d6e28eSGarrett D'AmorePeer supports 1000 Mbps full-duplex.
199a7d6e28eSGarrett D'Amore.It Sy lp_cap_1000hdx
200a7d6e28eSGarrett D'AmorePeer supports 1000 Mbps half-duplex.
201a7d6e28eSGarrett D'Amore.It Sy lp_cap_100fdx
202a7d6e28eSGarrett D'AmorePeer supports 100 Mbps full-duplex.
203386cd274SRobert Mustacchi.It Sy lp_cap_100gfdx
204386cd274SRobert MustacchiPeer supports 100 Gbps full-duplex.
205a7d6e28eSGarrett D'Amore.It Sy lp_cap_100hdx
206a7d6e28eSGarrett D'AmorePeer supports 100 Mbps half-duplex.
207a7d6e28eSGarrett D'Amore.It Sy lp_cap_100T4
208a7d6e28eSGarrett D'AmorePeer supports 100BASE-T4.
209a7d6e28eSGarrett D'Amore.It Sy lp_cap_10fdx
210a7d6e28eSGarrett D'AmorePeer supports 10 Mbps full-duplex.
211a7d6e28eSGarrett D'Amore.It Sy lp_cap_10gfdx
212a7d6e28eSGarrett D'AmorePeer supports 10 Gbps.
213a7d6e28eSGarrett D'Amore.It Sy lp_cap_10hdx
214a7d6e28eSGarrett D'AmorePeer supports 10 Mbps half-duplex.
215386cd274SRobert Mustacchi.It Sy lp_cap_2500fdx
216386cd274SRobert MustacchiPeer supports 2.5 Gbps.
217386cd274SRobert Mustacchi.It Sy lp_cap_5000fdx
218386cd274SRobert MustacchiPeer supports 5 Gbps.
219*f8cad494SRobert Mustacchi.It Sy lp_cap_50gfdx
220*f8cad494SRobert MustacchiPeer supports 50 Gbps.
221386cd274SRobert Mustacchi.It Sy lp_cap_40gfdx
222386cd274SRobert MustacchiPeer supports 40 Gbps.
223*f8cad494SRobert Mustacchi.It Sy lp_cap_25gfdx
224*f8cad494SRobert MustacchiPeer supports 25 Gbps.
225a7d6e28eSGarrett D'Amore.It Sy lp_cap_asmpause
226a7d6e28eSGarrett D'AmorePeer supports asymmetric flow control.
227a7d6e28eSGarrett D'Amore.It Sy lp_cap_autoneg
228a7d6e28eSGarrett D'AmorePeer supports auto-negotiation.
229a7d6e28eSGarrett D'Amore.It Sy lp_cap_pause
230a7d6e28eSGarrett D'AmorePeer advertises flow control support.
231a7d6e28eSGarrett D'Amore.It Sy lp_rem_fault
232a7d6e28eSGarrett D'AmorePeer announces a remote fault.
233a7d6e28eSGarrett D'Amore.It Sy macrv_errors
234a7d6e28eSGarrett D'AmoreGeneric receive errors.
235a7d6e28eSGarrett D'Amore.It Sy macxmt_errors
236a7d6e28eSGarrett D'AmoreGeneric transmit errors.
237a7d6e28eSGarrett D'Amore.It Sy multi_collisions
238a7d6e28eSGarrett D'AmoreFrames with more than one collision.
239a7d6e28eSGarrett D'Amore.It Sy multircv
240a7d6e28eSGarrett D'AmoreMulticast frames received.
241a7d6e28eSGarrett D'Amore.It Sy multixmt
242a7d6e28eSGarrett D'AmoreMulticast frames transmitted.
243a7d6e28eSGarrett D'Amore.It Sy norcvbuf
244a7d6e28eSGarrett D'AmoreReceive frames dropped due to lack of resources.
245a7d6e28eSGarrett D'Amore.It Sy noxmtbuf
246a7d6e28eSGarrett D'AmoreTransmit frames dropped due to lack of resources.
247a7d6e28eSGarrett D'Amore.It Sy obytes Ns Op Sy 64
248a7d6e28eSGarrett D'AmoreBytes (octets) transmitted successfully.
249a7d6e28eSGarrett D'Amore.It Sy oerrors
250a7d6e28eSGarrett D'AmoreTransmit errors.
251a7d6e28eSGarrett D'Amore.It Sy oflo
252a7d6e28eSGarrett D'AmoreOverflow errors.
253a7d6e28eSGarrett D'Amore.It Sy opackets Ns Op Sy 64
254a7d6e28eSGarrett D'AmoreFrames successfully transmitted.
255a7d6e28eSGarrett D'Amore.It Sy promisc
256a7d6e28eSGarrett D'AmoreInterface is in promiscuous mode.
257a7d6e28eSGarrett D'Amore.It Sy rbytes Ns Op Sy 64
258a7d6e28eSGarrett D'AmoreBytes (octets) received successfully.
259a7d6e28eSGarrett D'Amore.It Sy runt_errors
260a7d6e28eSGarrett D'AmoreFrames received that were too short.
261a7d6e28eSGarrett D'Amore.It Sy sqe_errors
262a7d6e28eSGarrett D'AmoreSquelch errors.
263a7d6e28eSGarrett D'Amore.It Sy toolong_errors
264a7d6e28eSGarrett D'AmoreFrames received that were too long.
265a7d6e28eSGarrett D'Amore.It Sy tx_late_collisions
266a7d6e28eSGarrett D'AmoreLate collisions on transmit.
267a7d6e28eSGarrett D'Amore.It Sy uflo
268a7d6e28eSGarrett D'AmoreUnderflow errors.
269a7d6e28eSGarrett D'Amore.It Sy unknowns
270a7d6e28eSGarrett D'AmoreFrames received with no local recipient.
271a7d6e28eSGarrett D'Amore.It Sy xcvr_addr
272a7d6e28eSGarrett D'AmoreTransceiver address.
273a7d6e28eSGarrett D'Amore.It Sy xcvr_id
274a7d6e28eSGarrett D'AmoreTransceiver vendor and device ID.
275a7d6e28eSGarrett D'Amore.It Sy xcvr_inuse
276a7d6e28eSGarrett D'AmoreIdentifies the type of transceiver in use.  Values are as follows:
277a7d6e28eSGarrett D'Amore.Bl -column "0"
278a7d6e28eSGarrett D'Amore.It 0 Ta Unknown or undefined.
279a7d6e28eSGarrett D'Amore.It 1 Ta None.
280a7d6e28eSGarrett D'Amore.It 2 Ta 10 Mbps
281a7d6e28eSGarrett D'Amore.It 3 Ta 100BASE-T4
282a7d6e28eSGarrett D'Amore.It 4 Ta 100BASE-X
283a7d6e28eSGarrett D'Amore.It 5 Ta 100BASE-T2
284a7d6e28eSGarrett D'Amore.It 6 Ta 1000BASE-X
285a7d6e28eSGarrett D'Amore.It 7 Ta 1000BASE-T
286a7d6e28eSGarrett D'Amore.El
287a7d6e28eSGarrett D'Amore.El
288a7d6e28eSGarrett D'Amore.Ss Properties
289a7d6e28eSGarrett D'AmoreThe following parameters are accessible with
290a7d6e28eSGarrett D'Amore.Xr dladm 1M .
291a7d6e28eSGarrett D'AmoreSome of these are normally read-only.  Other properties that are not
292a7d6e28eSGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via
293a7d6e28eSGarrett D'Amore.Xr dladm 1M ,
294a7d6e28eSGarrett D'Amoreand are documented in its man page rather than here.
295a7d6e28eSGarrett D'Amore.
296a7d6e28eSGarrett D'Amore.Bl -tag -width adv_1000hdx_cap
297a7d6e28eSGarrett D'Amore.It Sy speed
298a7d6e28eSGarrett D'AmoreLink speed, in Mbps per second (dladm only).
299a7d6e28eSGarrett D'Amore.It Sy duplex
300a7d6e28eSGarrett D'AmoreLink duplex, either "full" or "half".
301a7d6e28eSGarrett D'Amore.It Sy state
302a7d6e28eSGarrett D'AmoreLink state, either "up" or "down".
303a7d6e28eSGarrett D'Amore.It Sy mtu
304a7d6e28eSGarrett D'AmoreMaximum link frame size in bytes. See
305a7d6e28eSGarrett D'Amore.Sx Jumbo Frames .
306a7d6e28eSGarrett D'Amore.It Sy flowctrl
307a7d6e28eSGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq.
308a7d6e28eSGarrett D'AmoreSee
309a7d6e28eSGarrett D'Amore.Sx Flow Control .
310a7d6e28eSGarrett D'Amore.It Sy adv_10gfdx_cap
311a7d6e28eSGarrett D'AmoreAdvertising 10 Gbps support.
312a7d6e28eSGarrett D'Amore.It Sy en_10gfdx_cap
313a7d6e28eSGarrett D'AmoreEnable 10 Gbps support.
314a7d6e28eSGarrett D'Amore.
315a7d6e28eSGarrett D'Amore.It Sy adv_1000fdx_cap
316a7d6e28eSGarrett D'AmoreAdvertising 1000 Mbps full-duplex support.
317a7d6e28eSGarrett D'Amore.It Sy en_1000fdx_cap
318a7d6e28eSGarrett D'AmoreEnable 1000 Mbps full-duplex.
319a7d6e28eSGarrett D'Amore.
320a7d6e28eSGarrett D'Amore.It Sy adv_1000hdx_cap
321a7d6e28eSGarrett D'AmoreAdvertising 1000 Mbps half-duplex support.
322a7d6e28eSGarrett D'Amore.It Sy en_1000hdx_cap
323a7d6e28eSGarrett D'AmoreEnable 1000 Mbps half-duplex.
324a7d6e28eSGarrett D'Amore.
325a7d6e28eSGarrett D'Amore.It Sy adv_100fdx_cap
326a7d6e28eSGarrett D'AmoreAdvertising 100 Mbps full-duplex support.
327a7d6e28eSGarrett D'Amore.It Sy en_100fdx_cap
328a7d6e28eSGarrett D'AmoreEnable 100 Mbps full-duplex.
329a7d6e28eSGarrett D'Amore.
330a7d6e28eSGarrett D'Amore.It Sy adv_100hdx_cap
331a7d6e28eSGarrett D'AmoreAdvertising 100 Mbps half-duplex support.
332a7d6e28eSGarrett D'Amore.It Sy en_100hdx_cap
333a7d6e28eSGarrett D'AmoreEnable 100 Mbps half-duplex.
334a7d6e28eSGarrett D'Amore.
335a7d6e28eSGarrett D'Amore.It Sy adv_10fdx_cap
336a7d6e28eSGarrett D'AmoreAdvertising 10 Mbps full-duplex support.
337a7d6e28eSGarrett D'Amore.It Sy en_10fhdx_cap
338a7d6e28eSGarrett D'AmoreEnable 100 Mbps full-duplex.
339a7d6e28eSGarrett D'Amore.
340a7d6e28eSGarrett D'Amore.It Sy adv_10hdx_cap
341a7d6e28eSGarrett D'AmoreAdvertising 10 Mbps half-duplex support.
342a7d6e28eSGarrett D'Amore.It Sy en_10fhdx_cap
343a7d6e28eSGarrett D'AmoreEnable 10 Mbps half-duplex.
344a7d6e28eSGarrett D'Amore.El
345a7d6e28eSGarrett D'Amore.Ss Auto-negotiation
346a7d6e28eSGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically.  With
347a7d6e28eSGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory.  (10GBASE-T also requires full-duplex
348a7d6e28eSGarrett D'Amoreoperation.) It is also
349a7d6e28eSGarrett D'Amore.Em strongly
350a7d6e28eSGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link
351a7d6e28eSGarrett D'Amorewill usually not operate unless both partners are configured to use the
352a7d6e28eSGarrett D'Amoresame link mode.
353a7d6e28eSGarrett D'Amore.Lp
354a7d6e28eSGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities
355a7d6e28eSGarrett D'Amorethat have been advertised (which must also be supported by the local device),
356a7d6e28eSGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer).
357a7d6e28eSGarrett D'Amore.
358a7d6e28eSGarrett D'AmoreThe first of the following modes that is supported by both partners is
359a7d6e28eSGarrett D'Amoreselected as the link negotiation result:
360a7d6e28eSGarrett D'Amore.Lp
361a7d6e28eSGarrett D'Amore.Bl -bullet -offset indent -compact
362a7d6e28eSGarrett D'Amore.It
363a7d6e28eSGarrett D'Amore10 Gbps (10gfdx)
364a7d6e28eSGarrett D'Amore.It
365a7d6e28eSGarrett D'Amore1000 Mbps full-duplex (1000fdx)
366a7d6e28eSGarrett D'Amore.It
367a7d6e28eSGarrett D'Amore1000 Mbps half-duplex (1000hdx)
368a7d6e28eSGarrett D'Amore.It
369a7d6e28eSGarrett D'Amore100 Mbps full-duplex (100fdx)
370a7d6e28eSGarrett D'Amore.It
371a7d6e28eSGarrett D'Amore100BASE-T4 (100T4)
372a7d6e28eSGarrett D'Amore.It
373a7d6e28eSGarrett D'Amore100 Mbps half-duplex (100hdx)
374a7d6e28eSGarrett D'Amore.It
375a7d6e28eSGarrett D'Amore10 Mbps full-duplex (10fdx)
376a7d6e28eSGarrett D'Amore.It
377a7d6e28eSGarrett D'Amore10 Mbps half-duplex (10hdx)
378a7d6e28eSGarrett D'Amore.El
379a7d6e28eSGarrett D'Amore.Lp
380a7d6e28eSGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the
381a7d6e28eSGarrett D'Amoreappropriate
382a7d6e28eSGarrett D'Amore.Sy en_
383a7d6e28eSGarrett D'Amoreproperty in
384a7d6e28eSGarrett D'Amore.Xr dladm 1M .
385a7d6e28eSGarrett D'Amore.Lp
386a7d6e28eSGarrett D'AmoreAuto-negotation may also be disabled, by setting the
387a7d6e28eSGarrett D'Amore.Sy adv_autoneg_cap
388a7d6e28eSGarrett D'Amoreproperty to 0.  In this case, the highest enabled link mode (using the above
389a7d6e28eSGarrett D'Amorelist) is
390a7d6e28eSGarrett D'Amore.Dq forced
391a7d6e28eSGarrett D'Amorefor the link.
392a7d6e28eSGarrett D'Amore.Ss Flow Control
393a7d6e28eSGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory
394a7d6e28eSGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and
395a7d6e28eSGarrett D'Amorethat the link be full-duplex, in order to function.
396a7d6e28eSGarrett D'Amore.Lp
397a7d6e28eSGarrett D'AmoreFlow control is applied when a receiver becomes congested.  In this case the
398a7d6e28eSGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its
399a7d6e28eSGarrett D'Amorepartner cease transmitting for a short period of time.
400a7d6e28eSGarrett D'Amore.Lp
401a7d6e28eSGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners
402a7d6e28eSGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner
403a7d6e28eSGarrett D'Amoremay not transmit pause frames.
404a7d6e28eSGarrett D'Amore.Lp
405a7d6e28eSGarrett D'AmoreThe flow control mode used is driven by the
406a7d6e28eSGarrett D'Amore.Sy flowctrl
407a7d6e28eSGarrett D'Amoreproperty.  It has the following meanings:
408a7d6e28eSGarrett D'Amore.Lp
409a7d6e28eSGarrett D'Amore.Bl -column -compact -offset indent Dv
410a7d6e28eSGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames.
411a7d6e28eSGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them,
412a7d6e28eSGarrett D'Amorebut do not honor them.
413a7d6e28eSGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames.
414a7d6e28eSGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames.
415a7d6e28eSGarrett D'Amore.El
416a7d6e28eSGarrett D'Amore.Lp
417a7d6e28eSGarrett D'AmoreThe statistics for flow control
418a7d6e28eSGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause ,
419a7d6e28eSGarrett D'Amore.Sy link_pause ,
420a7d6e28eSGarrett D'Amoreand
421a7d6e28eSGarrett D'Amore.Sy link_asmpause
422a7d6e28eSGarrett D'Amore.Pc
423a7d6e28eSGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are
424a7d6e28eSGarrett D'Amoreconfusing as a result.  Administrators are advised to use the
425a7d6e28eSGarrett D'Amore.Sy flowctrl
426a7d6e28eSGarrett D'Amoreproperty instead.
427a7d6e28eSGarrett D'Amore.
428a7d6e28eSGarrett D'Amore.Ss Jumbo Frames
429a7d6e28eSGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes,
430a7d6e28eSGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes
431a7d6e28eSGarrett D'Amoreof payload.  Most devices support larger frame sizes than this, and
432a7d6e28eSGarrett D'Amorewhen all possible parties on the same local network can do so, it may be
433a7d6e28eSGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common
434a7d6e28eSGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while
435a7d6e28eSGarrett D'Amoreleaving room for various link, network, and transport layer headers.
436a7d6e28eSGarrett D'Amore.Lp
437a7d6e28eSGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is
438a7d6e28eSGarrett D'Amorenot standardized, even though it is common practice.
439a7d6e28eSGarrett D'Amore.Lp
440a7d6e28eSGarrett D'AmoreThe
441a7d6e28eSGarrett D'Amore.Sy mtu
442a7d6e28eSGarrett D'Amoreproperty is used to configure the frame size.  Note that this is the size of
443a7d6e28eSGarrett D'Amorethe payload, and excludes the preamble, checksum, and header.  It also excludes
444a7d6e28eSGarrett D'Amorethe tag for devices that support tagging (see
445a7d6e28eSGarrett D'Amore.Sx Virtual LANs
446a7d6e28eSGarrett D'Amorebelow).
447a7d6e28eSGarrett D'Amore.Lp
448a7d6e28eSGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same
449a7d6e28eSGarrett D'Amoresize, or communication may cease to function properly.
450a7d6e28eSGarrett D'Amore.Lp
451a7d6e28eSGarrett D'AmoreNote that the
452a7d6e28eSGarrett D'Amore.Sy mtu
453a7d6e28eSGarrett D'Amoreproperty refers to the link layer property.  It may be necessary to configure
454a7d6e28eSGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes.
455a7d6e28eSGarrett D'AmoreSee
456a7d6e28eSGarrett D'Amore.Xr ifconfig 1M .
457a7d6e28eSGarrett D'Amore.
458a7d6e28eSGarrett D'Amore.Ss Virtual LANs
459a7d6e28eSGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though
460a7d6e28eSGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload.  The
461a7d6e28eSGarrett D'Amoredetails of configuration of this are covered in the
462a7d6e28eSGarrett D'Amore.Xr dladm 1M
463a7d6e28eSGarrett D'Amoremanual.
464a7d6e28eSGarrett D'Amore.
465a7d6e28eSGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details
466a7d6e28eSGarrett D'Amore.
467a7d6e28eSGarrett D'AmoreThe correct method for applications to access Ethernet devices directly
468a7d6e28eSGarrett D'Amoreis to use the DLPI. See
469a7d6e28eSGarrett D'Amore.Xr dlpi 7P
470a7d6e28eSGarrett D'Amoreand
471a7d6e28eSGarrett D'Amore.Xr libdlpi 3LIB
472a7d6e28eSGarrett D'Amorefor further information.
473a7d6e28eSGarrett D'Amore.Lp
474a7d6e28eSGarrett D'AmoreThe following DLPI parameters are presented to applications.
475a7d6e28eSGarrett D'Amore.Bl -column -offset indent "Broadcast address"
476a7d6e28eSGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.)
477a7d6e28eSGarrett D'Amore.It Minimum SDU Ta 0
478a7d6e28eSGarrett D'Amore.It Address length Ta 6
479a7d6e28eSGarrett D'Amore.It MAC type Ta Dv DL_ETHER
480a7d6e28eSGarrett D'Amore.It SAP length Ta \(mi2
481a7d6e28eSGarrett D'Amore.It Service mode Ta Dv DL_CLDLS
482a7d6e28eSGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set)
483a7d6e28eSGarrett D'Amore.El
484a7d6e28eSGarrett D'Amore.Lp
485a7d6e28eSGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3
486a7d6e28eSGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type.
487a7d6e28eSGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered
488a7d6e28eSGarrett D'Amoreto applications that bind to SAP 0.
489a7d6e28eSGarrett D'Amore.Lp
490a7d6e28eSGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation.
491a7d6e28eSGarrett D'AmoreAdditionally, it is possible to configure provide
492a7d6e28eSGarrett D'Amore.Dq vanity
493a7d6e28eSGarrett D'Amorenames to interfaces using the
494a7d6e28eSGarrett D'Amore.Xr dladm 1M
495a7d6e28eSGarrett D'Amore.Sy rename-link
496a7d6e28eSGarrett D'Amoresubcommand.  Such vanity names are only accessible using DLPI style 1.
497a7d6e28eSGarrett D'Amore.Sh NOTES
498a7d6e28eSGarrett D'AmoreThere may be other mechanisms available to configure link layer properties.
499a7d6e28eSGarrett D'AmoreHistorically the
500a7d6e28eSGarrett D'Amore.Xr ndd 1M
501a7d6e28eSGarrett D'Amorecommand, and
502a7d6e28eSGarrett D'Amore.Xr driver.conf 4
503a7d6e28eSGarrett D'Amorefiles could be used to do this.  These methods are deprecated in favor of
504a7d6e28eSGarrett D'Amore.Xr dladm 1M
505a7d6e28eSGarrett D'Amoreproperties.
506a7d6e28eSGarrett D'Amore.
507a7d6e28eSGarrett D'Amore.Sh INTERFACE STABILITY
508a7d6e28eSGarrett D'AmoreWhen present, the statistics and properties presented here
509a7d6e28eSGarrett D'Amoreare
510a7d6e28eSGarrett D'Amore.Sy Committed .
511a7d6e28eSGarrett D'AmoreHowever, note that not every Ethernet device supports all of these,
512a7d6e28eSGarrett D'Amoreand some devices may support additional statistics and properties.
513a7d6e28eSGarrett D'Amore.Lp
514a7d6e28eSGarrett D'AmoreThe DLPI and IEEE 802.3 itself are
515a7d6e28eSGarrett D'Amore.Sy Standard .
516a7d6e28eSGarrett D'Amore.Sh SEE ALSO
517a7d6e28eSGarrett D'Amore.Xr dladm 1M ,
518a7d6e28eSGarrett D'Amore.Xr ifconfig 1M ,
519a7d6e28eSGarrett D'Amore.Xr kstat 1M ,
520a7d6e28eSGarrett D'Amore.Xr netstat 1M ,
521a7d6e28eSGarrett D'Amore.Xr ndd 1M ,
522a7d6e28eSGarrett D'Amore.Xr libdlpi 3LIB ,
523a7d6e28eSGarrett D'Amore.Xr driver.conf 4 ,
524a7d6e28eSGarrett D'Amore.Xr dlpi 7P
525a7d6e28eSGarrett D'Amore.Rs
526a7d6e28eSGarrett D'Amore.%T IEEE 802.3: Ethernet
527a7d6e28eSGarrett D'Amore.%Q IEEE Standards Association
528a7d6e28eSGarrett D'Amore.Re
529a7d6e28eSGarrett D'Amore.Rs
530a7d6e28eSGarrett D'Amore.%B Data Link Provider Interface (DLPI)
531a7d6e28eSGarrett D'Amore.%Q The Open Group
532a7d6e28eSGarrett D'Amore.%D 1997
533a7d6e28eSGarrett D'Amore.Re
534a7d6e28eSGarrett D'Amore.Rs
535a7d6e28eSGarrett D'Amore.%B STREAMs Programming Guide
536a7d6e28eSGarrett D'Amore.%Q Sun Microsystems, Inc.
537a7d6e28eSGarrett D'Amore.%D January 2005
538a7d6e28eSGarrett D'Amore.Re
539