xref: /titanic_53/usr/src/man/man5/ieee802.3.5 (revision d8d1d7b1f5cccad3338f48189ecee1a191d0413b)
186635a91SGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2*d8d1d7b1SRobert Mustacchi.\" Copyright 2016 Joyent, Inc.
386635a91SGarrett D'Amore.\" Redistribution and use in source and binary forms, with or without
486635a91SGarrett D'Amore.\" modification, are permitted provided that the following conditions
586635a91SGarrett D'Amore.\" are met:
686635a91SGarrett D'Amore.\" 1. Redistributions of source code must retain the above copyright
786635a91SGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer.
886635a91SGarrett D'Amore.\" 2. Redistributions in binary form must reproduce the above copyright
986635a91SGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer in the
1086635a91SGarrett D'Amore.\"    documentation and/or other materials provided with the distribution.
1186635a91SGarrett D'Amore.\"
1286635a91SGarrett D'Amore.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
1386635a91SGarrett D'Amore.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1486635a91SGarrett D'Amore.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
1586635a91SGarrett D'Amore.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
1686635a91SGarrett D'Amore.\" COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
1786635a91SGarrett D'Amore.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
1886635a91SGarrett D'Amore.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
1986635a91SGarrett D'Amore.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
2086635a91SGarrett D'Amore.\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2186635a91SGarrett D'Amore.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2286635a91SGarrett D'Amore.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
2386635a91SGarrett D'Amore.\"
24*d8d1d7b1SRobert Mustacchi.Dd "Jan 29, 2016"
2586635a91SGarrett D'Amore.Dt IEEE802.3 5
2686635a91SGarrett D'Amore.Os
2786635a91SGarrett D'Amore.Sh NAME
2886635a91SGarrett D'Amore.Nm ieee802.3
2986635a91SGarrett D'Amore.Nd IEEE 802.3 Ethernet parameters and statistics
3086635a91SGarrett D'Amore.Sh DESCRIPTION
3186635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies the details for Ethernet
3286635a91SGarrett D'Amorenetworking.  This page describes the various statistics and tunables
3386635a91SGarrett D'Amorethat device drivers supporting Ethernet commonly offer.
3486635a91SGarrett D'Amore.
3586635a91SGarrett D'AmoreNote that not every device or driver supports every one of these
3686635a91SGarrett D'Amorevalues, and many devices offer additional statistics and tunables that
3786635a91SGarrett D'Amoreare specific to that hardware.  See the device driver's documentation
3886635a91SGarrett D'Amorefor those specific details.
3986635a91SGarrett D'Amore.
4086635a91SGarrett D'Amore.Lp
4186635a91SGarrett D'AmoreValues that are statistics are visible
4286635a91SGarrett D'Amore.Xr kstat 1M ,
4386635a91SGarrett D'Amorewhereas properties are visible using the
4486635a91SGarrett D'Amore.Xr dladm 1M
4586635a91SGarrett D'Amore.Sy show-linkprop
4686635a91SGarrett D'Amoresubcommand.  Tunables are properties that can be changed using the
4786635a91SGarrett D'Amore.Xr dladm 1M
4886635a91SGarrett D'Amore.Sy set-linkprop
4986635a91SGarrett D'Amoresubcommand.  A more useful summary of current operational
5086635a91SGarrett D'Amorestate can be seen with the
5186635a91SGarrett D'Amore.Xr dladm 1M
5286635a91SGarrett D'Amore.Sy show-ether
5386635a91SGarrett D'Amoresubcommand.
5486635a91SGarrett D'Amore.
5586635a91SGarrett D'Amore.Ss Statistics
5686635a91SGarrett D'AmoreThe following statistics are accessible with
5786635a91SGarrett D'Amore.Xr kstat 1M .
5886635a91SGarrett D'AmoreNote that some statistics are available in both 32- and 64-bit counters,
5986635a91SGarrett D'Amorein which case the name of the 64 bit statistic will be the same as the
6086635a91SGarrett D'Amore32-bit, but with
6186635a91SGarrett D'Amore.Dq Sy 64
6286635a91SGarrett D'Amoreappended.  For example,
6386635a91SGarrett D'Amore.Sy ipackets64
6486635a91SGarrett D'Amoreis the 64-bit version of the
6586635a91SGarrett D'Amore.Sy ipackets
6686635a91SGarrett D'Amorestatistic. These are indicated with the special suffix
6786635a91SGarrett D'Amore.Op Sy 64
6886635a91SGarrett D'Amorein the table below.
6986635a91SGarrett D'Amore.
7086635a91SGarrett D'Amore.Bl -tag -width tx_late_collisions
7186635a91SGarrett D'Amore.It Sy adv_cap_1000fdx
7286635a91SGarrett D'AmoreAdvertises 1000 Mbps full-duplex support.
7386635a91SGarrett D'Amore.It Sy adv_cap_1000hdx
7486635a91SGarrett D'AmoreAdvertises 1000 Mbps half-duplex support.
7586635a91SGarrett D'Amore.It Sy adv_cap_100fdx
7686635a91SGarrett D'AmoreAdvertises 100 Mbps full-duplex support.
77*d8d1d7b1SRobert Mustacchi.It Sy adv_cap_100gfdx
78*d8d1d7b1SRobert MustacchiAdvertises 100 Gbps support.
7986635a91SGarrett D'Amore.It Sy adv_cap_100hdx
8086635a91SGarrett D'AmoreAdvertises 100 Mbps half-duplex support.
8186635a91SGarrett D'Amore.It Sy adv_cap_100T4
8286635a91SGarrett D'AmoreAdvertises 100BASE-T4 support.
8386635a91SGarrett D'Amore.It Sy adv_cap_10fdx
8486635a91SGarrett D'AmoreAdvertises 10 Mbps full-duplex support.
8586635a91SGarrett D'Amore.It Sy adv_cap_10gfdx
8686635a91SGarrett D'AmoreAdvertises 10 Gbps support.
8786635a91SGarrett D'Amore.It Sy adv_cap_10hdx
8886635a91SGarrett D'AmoreAdvertises 10 Mbps half-duplex support.
89*d8d1d7b1SRobert Mustacchi.It Sy adv_cap_2500fdx
90*d8d1d7b1SRobert MustacchiAdvertises 2.5 Gbps support.
91*d8d1d7b1SRobert Mustacchi.It Sy adv_cap_40gfdx
92*d8d1d7b1SRobert MustacchiAdvertises 40 Gbps support.
93*d8d1d7b1SRobert Mustacchi.It Sy adv_cap_5000fdx
94*d8d1d7b1SRobert MustacchiAdvertises 5 Gbps support.
9586635a91SGarrett D'Amore.It Sy adv_cap_autoneg
9686635a91SGarrett D'AmoreAdvertises auto-negotiation support.
9786635a91SGarrett D'Amore.It Sy adv_cap_asmpause
9886635a91SGarrett D'AmoreAdvertises asymmetric flow control support.
9986635a91SGarrett D'Amore.It Sy adv_cap_pause
10086635a91SGarrett D'AmoreAdvertises flow control support.
10186635a91SGarrett D'Amore.It Sy adv_rem_fault
10286635a91SGarrett D'AmoreRemote fault status sent to peer.
10386635a91SGarrett D'Amore.It Sy align_errors
10486635a91SGarrett D'AmoreMis-aligned frames received.
10586635a91SGarrett D'Amore.It Sy brdcstrcv
10686635a91SGarrett D'AmoreBroadcast frames received.
10786635a91SGarrett D'Amore.It Sy brdcstxmt
10886635a91SGarrett D'AmoreBroadcast frames transmitted.
10986635a91SGarrett D'Amore.It Sy cap_1000fdx
11086635a91SGarrett D'AmoreDevice supports 1000 Mbps full-duplex.
11186635a91SGarrett D'Amore.It Sy cap_1000hdx
11286635a91SGarrett D'AmoreDevice supports 1000 Mbps half-duplex.
11386635a91SGarrett D'Amore.It Sy cap_100fdx
11486635a91SGarrett D'AmoreDevice supports 100 Mbps full-duplex.
115*d8d1d7b1SRobert Mustacchi.It Sy cap_100gfdx
116*d8d1d7b1SRobert MustacchiDevice supports 100 Gbps.
11786635a91SGarrett D'Amore.It Sy cap_100hdx
11886635a91SGarrett D'AmoreDevice supports 100 Mbps half-duplex.
11986635a91SGarrett D'Amore.It Sy cap_100T4
12086635a91SGarrett D'AmoreDevice supports 100BASE-T4.
12186635a91SGarrett D'Amore.It Sy cap_10fdx
12286635a91SGarrett D'AmoreDevice supports 10 Mbps full-duplex.
12386635a91SGarrett D'Amore.It Sy cap_10gfdx
12486635a91SGarrett D'AmoreDevice supports 10 Gpbs.
12586635a91SGarrett D'Amore.It Sy cap_10hdx
12686635a91SGarrett D'AmoreDevice supports 10 Mbps half-duplex.
127*d8d1d7b1SRobert Mustacchi.It Sy cap_2500fdx
128*d8d1d7b1SRobert MustacchiDevice supports 2.5 Gbps.
129*d8d1d7b1SRobert Mustacchi.It Sy cap_40gfdx
130*d8d1d7b1SRobert MustacchiDevice supports 40 Gpbs.
131*d8d1d7b1SRobert Mustacchi.It Sy cap_5000fdx
132*d8d1d7b1SRobert MustacchiDevice supports 5 Gbps.
13386635a91SGarrett D'Amore.It Sy cap_asmpause
13486635a91SGarrett D'AmoreDevice supports asymmetric flow control.
13586635a91SGarrett D'Amore.It Sy cap_autoneg
13686635a91SGarrett D'AmoreDevice supports auto-negotiation.
13786635a91SGarrett D'Amore.It Sy cap_pause
13886635a91SGarrett D'AmoreDevice supports symmetric flow control.
13986635a91SGarrett D'Amore.It Sy cap_rem_fault
14086635a91SGarrett D'AmoreDevice supports remote fault notification.
14186635a91SGarrett D'Amore.It Sy carrier_errors
14286635a91SGarrett D'AmoreFrames dropped due to loss of link.
14386635a91SGarrett D'Amore.It Sy collisions
14486635a91SGarrett D'AmoreCollisions.
14586635a91SGarrett D'Amore.It Sy defer_xmts
14686635a91SGarrett D'AmoreTransmits deferred due to link activity.
14786635a91SGarrett D'Amore.It Sy ex_collisions
14886635a91SGarrett D'AmoreFrames dropped due to too many collisions.
14986635a91SGarrett D'Amore.It Sy fcs_errors
15086635a91SGarrett D'AmoreFrames received with bad frame checksum.
15186635a91SGarrett D'Amore.It Sy first_collisions
15286635a91SGarrett D'AmoreFrames with at least one collision.
15386635a91SGarrett D'Amore.It Sy ierrors
15486635a91SGarrett D'AmoreReceive errors.
15586635a91SGarrett D'Amore.It Sy ifspeed
15686635a91SGarrett D'AmoreLink speed in bits per second.
15786635a91SGarrett D'Amore.It Sy ipackets Ns Op Sy 64
15886635a91SGarrett D'AmoreFrames received successfully.
15986635a91SGarrett D'Amore.It Sy jabber_errors
16086635a91SGarrett D'AmoreJabber errors.
16186635a91SGarrett D'Amore.It Sy link_asmpause
16286635a91SGarrett D'AmoreAsymmetric flow control; works together with
16386635a91SGarrett D'Amore.Sy link_pause .
16486635a91SGarrett D'AmoreSee the description for it below.
16586635a91SGarrett D'Amore.It Sy link_autoneg
16686635a91SGarrett D'AmoreLink was auto-negotiated.
16786635a91SGarrett D'Amore.It Sy link_duplex
16886635a91SGarrett D'AmoreLink duplex status, values as follows:
16986635a91SGarrett D'Amore.Bl -column "0" infinity
17086635a91SGarrett D'Amore.It 0 Ta Unknown.
17186635a91SGarrett D'Amore.It 1 Ta Half-duplex.
17286635a91SGarrett D'Amore.It 2 Ta Full-duplex.
17386635a91SGarrett D'Amore.El
17486635a91SGarrett D'Amore.It Sy link_pause
17586635a91SGarrett D'AmoreLink flow control available; works together with
17686635a91SGarrett D'Amore.Sy link_asmpause .
17786635a91SGarrett D'AmoreThe meanings of these bits are:
17886635a91SGarrett D'Amore.Bl -column "pause" "asmpause"
17986635a91SGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning
18086635a91SGarrett D'Amore.It 0 Ta 0 Ta "No flow control."
18186635a91SGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control.
18286635a91SGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames.
18386635a91SGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested.
18486635a91SGarrett D'Amore.El
18586635a91SGarrett D'Amore.It Sy link_state
18686635a91SGarrett D'AmoreLink state; 0 for down, 1 for up.
18786635a91SGarrett D'Amore.It Sy link_up
18886635a91SGarrett D'AmoreLink is up if 1.
18986635a91SGarrett D'Amore.It Sy lp_cap_1000fdx
19086635a91SGarrett D'AmorePeer supports 1000 Mbps full-duplex.
19186635a91SGarrett D'Amore.It Sy lp_cap_1000hdx
19286635a91SGarrett D'AmorePeer supports 1000 Mbps half-duplex.
19386635a91SGarrett D'Amore.It Sy lp_cap_100fdx
19486635a91SGarrett D'AmorePeer supports 100 Mbps full-duplex.
195*d8d1d7b1SRobert Mustacchi.It Sy lp_cap_100gfdx
196*d8d1d7b1SRobert MustacchiPeer supports 100 Gbps full-duplex.
19786635a91SGarrett D'Amore.It Sy lp_cap_100hdx
19886635a91SGarrett D'AmorePeer supports 100 Mbps half-duplex.
19986635a91SGarrett D'Amore.It Sy lp_cap_100T4
20086635a91SGarrett D'AmorePeer supports 100BASE-T4.
20186635a91SGarrett D'Amore.It Sy lp_cap_10fdx
20286635a91SGarrett D'AmorePeer supports 10 Mbps full-duplex.
20386635a91SGarrett D'Amore.It Sy lp_cap_10gfdx
20486635a91SGarrett D'AmorePeer supports 10 Gbps.
20586635a91SGarrett D'Amore.It Sy lp_cap_10hdx
20686635a91SGarrett D'AmorePeer supports 10 Mbps half-duplex.
207*d8d1d7b1SRobert Mustacchi.It Sy lp_cap_2500fdx
208*d8d1d7b1SRobert MustacchiPeer supports 2.5 Gbps.
209*d8d1d7b1SRobert Mustacchi.It Sy lp_cap_5000fdx
210*d8d1d7b1SRobert MustacchiPeer supports 5 Gbps.
211*d8d1d7b1SRobert Mustacchi.It Sy lp_cap_40gfdx
212*d8d1d7b1SRobert MustacchiPeer supports 40 Gbps.
21386635a91SGarrett D'Amore.It Sy lp_cap_asmpause
21486635a91SGarrett D'AmorePeer supports asymmetric flow control.
21586635a91SGarrett D'Amore.It Sy lp_cap_autoneg
21686635a91SGarrett D'AmorePeer supports auto-negotiation.
21786635a91SGarrett D'Amore.It Sy lp_cap_pause
21886635a91SGarrett D'AmorePeer advertises flow control support.
21986635a91SGarrett D'Amore.It Sy lp_rem_fault
22086635a91SGarrett D'AmorePeer announces a remote fault.
22186635a91SGarrett D'Amore.It Sy macrv_errors
22286635a91SGarrett D'AmoreGeneric receive errors.
22386635a91SGarrett D'Amore.It Sy macxmt_errors
22486635a91SGarrett D'AmoreGeneric transmit errors.
22586635a91SGarrett D'Amore.It Sy multi_collisions
22686635a91SGarrett D'AmoreFrames with more than one collision.
22786635a91SGarrett D'Amore.It Sy multircv
22886635a91SGarrett D'AmoreMulticast frames received.
22986635a91SGarrett D'Amore.It Sy multixmt
23086635a91SGarrett D'AmoreMulticast frames transmitted.
23186635a91SGarrett D'Amore.It Sy norcvbuf
23286635a91SGarrett D'AmoreReceive frames dropped due to lack of resources.
23386635a91SGarrett D'Amore.It Sy noxmtbuf
23486635a91SGarrett D'AmoreTransmit frames dropped due to lack of resources.
23586635a91SGarrett D'Amore.It Sy obytes Ns Op Sy 64
23686635a91SGarrett D'AmoreBytes (octets) transmitted successfully.
23786635a91SGarrett D'Amore.It Sy oerrors
23886635a91SGarrett D'AmoreTransmit errors.
23986635a91SGarrett D'Amore.It Sy oflo
24086635a91SGarrett D'AmoreOverflow errors.
24186635a91SGarrett D'Amore.It Sy opackets Ns Op Sy 64
24286635a91SGarrett D'AmoreFrames successfully transmitted.
24386635a91SGarrett D'Amore.It Sy promisc
24486635a91SGarrett D'AmoreInterface is in promiscuous mode.
24586635a91SGarrett D'Amore.It Sy rbytes Ns Op Sy 64
24686635a91SGarrett D'AmoreBytes (octets) received successfully.
24786635a91SGarrett D'Amore.It Sy runt_errors
24886635a91SGarrett D'AmoreFrames received that were too short.
24986635a91SGarrett D'Amore.It Sy sqe_errors
25086635a91SGarrett D'AmoreSquelch errors.
25186635a91SGarrett D'Amore.It Sy toolong_errors
25286635a91SGarrett D'AmoreFrames received that were too long.
25386635a91SGarrett D'Amore.It Sy tx_late_collisions
25486635a91SGarrett D'AmoreLate collisions on transmit.
25586635a91SGarrett D'Amore.It Sy uflo
25686635a91SGarrett D'AmoreUnderflow errors.
25786635a91SGarrett D'Amore.It Sy unknowns
25886635a91SGarrett D'AmoreFrames received with no local recipient.
25986635a91SGarrett D'Amore.It Sy xcvr_addr
26086635a91SGarrett D'AmoreTransceiver address.
26186635a91SGarrett D'Amore.It Sy xcvr_id
26286635a91SGarrett D'AmoreTransceiver vendor and device ID.
26386635a91SGarrett D'Amore.It Sy xcvr_inuse
26486635a91SGarrett D'AmoreIdentifies the type of transceiver in use.  Values are as follows:
26586635a91SGarrett D'Amore.Bl -column "0"
26686635a91SGarrett D'Amore.It 0 Ta Unknown or undefined.
26786635a91SGarrett D'Amore.It 1 Ta None.
26886635a91SGarrett D'Amore.It 2 Ta 10 Mbps
26986635a91SGarrett D'Amore.It 3 Ta 100BASE-T4
27086635a91SGarrett D'Amore.It 4 Ta 100BASE-X
27186635a91SGarrett D'Amore.It 5 Ta 100BASE-T2
27286635a91SGarrett D'Amore.It 6 Ta 1000BASE-X
27386635a91SGarrett D'Amore.It 7 Ta 1000BASE-T
27486635a91SGarrett D'Amore.El
27586635a91SGarrett D'Amore.El
27686635a91SGarrett D'Amore.Ss Properties
27786635a91SGarrett D'AmoreThe following parameters are accessible with
27886635a91SGarrett D'Amore.Xr dladm 1M .
27986635a91SGarrett D'AmoreSome of these are normally read-only.  Other properties that are not
28086635a91SGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via
28186635a91SGarrett D'Amore.Xr dladm 1M ,
28286635a91SGarrett D'Amoreand are documented in its man page rather than here.
28386635a91SGarrett D'Amore.
28486635a91SGarrett D'Amore.Bl -tag -width adv_1000hdx_cap
28586635a91SGarrett D'Amore.It Sy speed
28686635a91SGarrett D'AmoreLink speed, in Mbps per second (dladm only).
28786635a91SGarrett D'Amore.It Sy duplex
28886635a91SGarrett D'AmoreLink duplex, either "full" or "half".
28986635a91SGarrett D'Amore.It Sy state
29086635a91SGarrett D'AmoreLink state, either "up" or "down".
29186635a91SGarrett D'Amore.It Sy mtu
29286635a91SGarrett D'AmoreMaximum link frame size in bytes. See
29386635a91SGarrett D'Amore.Sx Jumbo Frames .
29486635a91SGarrett D'Amore.It Sy flowctrl
29586635a91SGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq.
29686635a91SGarrett D'AmoreSee
29786635a91SGarrett D'Amore.Sx Flow Control .
29886635a91SGarrett D'Amore.It Sy adv_10gfdx_cap
29986635a91SGarrett D'AmoreAdvertising 10 Gbps support.
30086635a91SGarrett D'Amore.It Sy en_10gfdx_cap
30186635a91SGarrett D'AmoreEnable 10 Gbps support.
30286635a91SGarrett D'Amore.
30386635a91SGarrett D'Amore.It Sy adv_1000fdx_cap
30486635a91SGarrett D'AmoreAdvertising 1000 Mbps full-duplex support.
30586635a91SGarrett D'Amore.It Sy en_1000fdx_cap
30686635a91SGarrett D'AmoreEnable 1000 Mbps full-duplex.
30786635a91SGarrett D'Amore.
30886635a91SGarrett D'Amore.It Sy adv_1000hdx_cap
30986635a91SGarrett D'AmoreAdvertising 1000 Mbps half-duplex support.
31086635a91SGarrett D'Amore.It Sy en_1000hdx_cap
31186635a91SGarrett D'AmoreEnable 1000 Mbps half-duplex.
31286635a91SGarrett D'Amore.
31386635a91SGarrett D'Amore.It Sy adv_100fdx_cap
31486635a91SGarrett D'AmoreAdvertising 100 Mbps full-duplex support.
31586635a91SGarrett D'Amore.It Sy en_100fdx_cap
31686635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
31786635a91SGarrett D'Amore.
31886635a91SGarrett D'Amore.It Sy adv_100hdx_cap
31986635a91SGarrett D'AmoreAdvertising 100 Mbps half-duplex support.
32086635a91SGarrett D'Amore.It Sy en_100hdx_cap
32186635a91SGarrett D'AmoreEnable 100 Mbps half-duplex.
32286635a91SGarrett D'Amore.
32386635a91SGarrett D'Amore.It Sy adv_10fdx_cap
32486635a91SGarrett D'AmoreAdvertising 10 Mbps full-duplex support.
32586635a91SGarrett D'Amore.It Sy en_10fhdx_cap
32686635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
32786635a91SGarrett D'Amore.
32886635a91SGarrett D'Amore.It Sy adv_10hdx_cap
32986635a91SGarrett D'AmoreAdvertising 10 Mbps half-duplex support.
33086635a91SGarrett D'Amore.It Sy en_10fhdx_cap
33186635a91SGarrett D'AmoreEnable 10 Mbps half-duplex.
33286635a91SGarrett D'Amore.El
33386635a91SGarrett D'Amore.Ss Auto-negotiation
33486635a91SGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically.  With
33586635a91SGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory.  (10GBASE-T also requires full-duplex
33686635a91SGarrett D'Amoreoperation.) It is also
33786635a91SGarrett D'Amore.Em strongly
33886635a91SGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link
33986635a91SGarrett D'Amorewill usually not operate unless both partners are configured to use the
34086635a91SGarrett D'Amoresame link mode.
34186635a91SGarrett D'Amore.Lp
34286635a91SGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities
34386635a91SGarrett D'Amorethat have been advertised (which must also be supported by the local device),
34486635a91SGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer).
34586635a91SGarrett D'Amore.
34686635a91SGarrett D'AmoreThe first of the following modes that is supported by both partners is
34786635a91SGarrett D'Amoreselected as the link negotiation result:
34886635a91SGarrett D'Amore.Lp
34986635a91SGarrett D'Amore.Bl -bullet -offset indent -compact
35086635a91SGarrett D'Amore.It
35186635a91SGarrett D'Amore10 Gbps (10gfdx)
35286635a91SGarrett D'Amore.It
35386635a91SGarrett D'Amore1000 Mbps full-duplex (1000fdx)
35486635a91SGarrett D'Amore.It
35586635a91SGarrett D'Amore1000 Mbps half-duplex (1000hdx)
35686635a91SGarrett D'Amore.It
35786635a91SGarrett D'Amore100 Mbps full-duplex (100fdx)
35886635a91SGarrett D'Amore.It
35986635a91SGarrett D'Amore100BASE-T4 (100T4)
36086635a91SGarrett D'Amore.It
36186635a91SGarrett D'Amore100 Mbps half-duplex (100hdx)
36286635a91SGarrett D'Amore.It
36386635a91SGarrett D'Amore10 Mbps full-duplex (10fdx)
36486635a91SGarrett D'Amore.It
36586635a91SGarrett D'Amore10 Mbps half-duplex (10hdx)
36686635a91SGarrett D'Amore.El
36786635a91SGarrett D'Amore.Lp
36886635a91SGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the
36986635a91SGarrett D'Amoreappropriate
37086635a91SGarrett D'Amore.Sy en_
37186635a91SGarrett D'Amoreproperty in
37286635a91SGarrett D'Amore.Xr dladm 1M .
37386635a91SGarrett D'Amore.Lp
37486635a91SGarrett D'AmoreAuto-negotation may also be disabled, by setting the
37586635a91SGarrett D'Amore.Sy adv_autoneg_cap
37686635a91SGarrett D'Amoreproperty to 0.  In this case, the highest enabled link mode (using the above
37786635a91SGarrett D'Amorelist) is
37886635a91SGarrett D'Amore.Dq forced
37986635a91SGarrett D'Amorefor the link.
38086635a91SGarrett D'Amore.Ss Flow Control
38186635a91SGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory
38286635a91SGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and
38386635a91SGarrett D'Amorethat the link be full-duplex, in order to function.
38486635a91SGarrett D'Amore.Lp
38586635a91SGarrett D'AmoreFlow control is applied when a receiver becomes congested.  In this case the
38686635a91SGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its
38786635a91SGarrett D'Amorepartner cease transmitting for a short period of time.
38886635a91SGarrett D'Amore.Lp
38986635a91SGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners
39086635a91SGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner
39186635a91SGarrett D'Amoremay not transmit pause frames.
39286635a91SGarrett D'Amore.Lp
39386635a91SGarrett D'AmoreThe flow control mode used is driven by the
39486635a91SGarrett D'Amore.Sy flowctrl
39586635a91SGarrett D'Amoreproperty.  It has the following meanings:
39686635a91SGarrett D'Amore.Lp
39786635a91SGarrett D'Amore.Bl -column -compact -offset indent Dv
39886635a91SGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames.
39986635a91SGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them,
40086635a91SGarrett D'Amorebut do not honor them.
40186635a91SGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames.
40286635a91SGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames.
40386635a91SGarrett D'Amore.El
40486635a91SGarrett D'Amore.Lp
40586635a91SGarrett D'AmoreThe statistics for flow control
40686635a91SGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause ,
40786635a91SGarrett D'Amore.Sy link_pause ,
40886635a91SGarrett D'Amoreand
40986635a91SGarrett D'Amore.Sy link_asmpause
41086635a91SGarrett D'Amore.Pc
41186635a91SGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are
41286635a91SGarrett D'Amoreconfusing as a result.  Administrators are advised to use the
41386635a91SGarrett D'Amore.Sy flowctrl
41486635a91SGarrett D'Amoreproperty instead.
41586635a91SGarrett D'Amore.
41686635a91SGarrett D'Amore.Ss Jumbo Frames
41786635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes,
41886635a91SGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes
41986635a91SGarrett D'Amoreof payload.  Most devices support larger frame sizes than this, and
42086635a91SGarrett D'Amorewhen all possible parties on the same local network can do so, it may be
42186635a91SGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common
42286635a91SGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while
42386635a91SGarrett D'Amoreleaving room for various link, network, and transport layer headers.
42486635a91SGarrett D'Amore.Lp
42586635a91SGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is
42686635a91SGarrett D'Amorenot standardized, even though it is common practice.
42786635a91SGarrett D'Amore.Lp
42886635a91SGarrett D'AmoreThe
42986635a91SGarrett D'Amore.Sy mtu
43086635a91SGarrett D'Amoreproperty is used to configure the frame size.  Note that this is the size of
43186635a91SGarrett D'Amorethe payload, and excludes the preamble, checksum, and header.  It also excludes
43286635a91SGarrett D'Amorethe tag for devices that support tagging (see
43386635a91SGarrett D'Amore.Sx Virtual LANs
43486635a91SGarrett D'Amorebelow).
43586635a91SGarrett D'Amore.Lp
43686635a91SGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same
43786635a91SGarrett D'Amoresize, or communication may cease to function properly.
43886635a91SGarrett D'Amore.Lp
43986635a91SGarrett D'AmoreNote that the
44086635a91SGarrett D'Amore.Sy mtu
44186635a91SGarrett D'Amoreproperty refers to the link layer property.  It may be necessary to configure
44286635a91SGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes.
44386635a91SGarrett D'AmoreSee
44486635a91SGarrett D'Amore.Xr ifconfig 1M .
44586635a91SGarrett D'Amore.
44686635a91SGarrett D'Amore.Ss Virtual LANs
44786635a91SGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though
44886635a91SGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload.  The
44986635a91SGarrett D'Amoredetails of configuration of this are covered in the
45086635a91SGarrett D'Amore.Xr dladm 1M
45186635a91SGarrett D'Amoremanual.
45286635a91SGarrett D'Amore.
45386635a91SGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details
45486635a91SGarrett D'Amore.
45586635a91SGarrett D'AmoreThe correct method for applications to access Ethernet devices directly
45686635a91SGarrett D'Amoreis to use the DLPI. See
45786635a91SGarrett D'Amore.Xr dlpi 7P
45886635a91SGarrett D'Amoreand
45986635a91SGarrett D'Amore.Xr libdlpi 3LIB
46086635a91SGarrett D'Amorefor further information.
46186635a91SGarrett D'Amore.Lp
46286635a91SGarrett D'AmoreThe following DLPI parameters are presented to applications.
46386635a91SGarrett D'Amore.Bl -column -offset indent "Broadcast address"
46486635a91SGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.)
46586635a91SGarrett D'Amore.It Minimum SDU Ta 0
46686635a91SGarrett D'Amore.It Address length Ta 6
46786635a91SGarrett D'Amore.It MAC type Ta Dv DL_ETHER
46886635a91SGarrett D'Amore.It SAP length Ta \(mi2
46986635a91SGarrett D'Amore.It Service mode Ta Dv DL_CLDLS
47086635a91SGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set)
47186635a91SGarrett D'Amore.El
47286635a91SGarrett D'Amore.Lp
47386635a91SGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3
47486635a91SGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type.
47586635a91SGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered
47686635a91SGarrett D'Amoreto applications that bind to SAP 0.
47786635a91SGarrett D'Amore.Lp
47886635a91SGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation.
47986635a91SGarrett D'AmoreAdditionally, it is possible to configure provide
48086635a91SGarrett D'Amore.Dq vanity
48186635a91SGarrett D'Amorenames to interfaces using the
48286635a91SGarrett D'Amore.Xr dladm 1M
48386635a91SGarrett D'Amore.Sy rename-link
48486635a91SGarrett D'Amoresubcommand.  Such vanity names are only accessible using DLPI style 1.
48586635a91SGarrett D'Amore.Sh NOTES
48686635a91SGarrett D'AmoreThere may be other mechanisms available to configure link layer properties.
48786635a91SGarrett D'AmoreHistorically the
48886635a91SGarrett D'Amore.Xr ndd 1M
48986635a91SGarrett D'Amorecommand, and
49086635a91SGarrett D'Amore.Xr driver.conf 4
49186635a91SGarrett D'Amorefiles could be used to do this.  These methods are deprecated in favor of
49286635a91SGarrett D'Amore.Xr dladm 1M
49386635a91SGarrett D'Amoreproperties.
49486635a91SGarrett D'Amore.
49586635a91SGarrett D'Amore.Sh INTERFACE STABILITY
49686635a91SGarrett D'AmoreWhen present, the statistics and properties presented here
49786635a91SGarrett D'Amoreare
49886635a91SGarrett D'Amore.Sy Committed .
49986635a91SGarrett D'AmoreHowever, note that not every Ethernet device supports all of these,
50086635a91SGarrett D'Amoreand some devices may support additional statistics and properties.
50186635a91SGarrett D'Amore.Lp
50286635a91SGarrett D'AmoreThe DLPI and IEEE 802.3 itself are
50386635a91SGarrett D'Amore.Sy Standard .
50486635a91SGarrett D'Amore.Sh SEE ALSO
50586635a91SGarrett D'Amore.Xr dladm 1M ,
50686635a91SGarrett D'Amore.Xr ifconfig 1M ,
50786635a91SGarrett D'Amore.Xr kstat 1M ,
50886635a91SGarrett D'Amore.Xr ndd 1M ,
5093a005aadSYuri Pankov.Xr netstat 1M ,
51086635a91SGarrett D'Amore.Xr libdlpi 3LIB ,
51186635a91SGarrett D'Amore.Xr driver.conf 4 ,
51286635a91SGarrett D'Amore.Xr dlpi 7P
51386635a91SGarrett D'Amore.Rs
51486635a91SGarrett D'Amore.%T IEEE 802.3: Ethernet
51586635a91SGarrett D'Amore.%Q IEEE Standards Association
51686635a91SGarrett D'Amore.Re
51786635a91SGarrett D'Amore.Rs
51886635a91SGarrett D'Amore.%B Data Link Provider Interface (DLPI)
51986635a91SGarrett D'Amore.%Q The Open Group
52086635a91SGarrett D'Amore.%D 1997
52186635a91SGarrett D'Amore.Re
52286635a91SGarrett D'Amore.Rs
52386635a91SGarrett D'Amore.%B STREAMs Programming Guide
52486635a91SGarrett D'Amore.%Q Sun Microsystems, Inc.
52586635a91SGarrett D'Amore.%D January 2005
52686635a91SGarrett D'Amore.Re
527