xref: /titanic_52/usr/src/man/man5/ieee802.3.5 (revision 422542c189efc4f3182b740c580bb58497805c45)
186635a91SGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2d8d1d7b1SRobert 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*422542c1SRobert Mustacchi.Dd "Nov 23, 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.
77d8d1d7b1SRobert Mustacchi.It Sy adv_cap_100gfdx
78d8d1d7b1SRobert 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.
89d8d1d7b1SRobert Mustacchi.It Sy adv_cap_2500fdx
90d8d1d7b1SRobert MustacchiAdvertises 2.5 Gbps support.
91*422542c1SRobert Mustacchi.It Sy adv_cap_50gfdx
92*422542c1SRobert MustacchiAdvertises 50 Gbps support.
93d8d1d7b1SRobert Mustacchi.It Sy adv_cap_40gfdx
94d8d1d7b1SRobert MustacchiAdvertises 40 Gbps support.
95*422542c1SRobert Mustacchi.It Sy adv_cap_25gfdx
96*422542c1SRobert MustacchiAdvertises 25 Gbps support.
97d8d1d7b1SRobert Mustacchi.It Sy adv_cap_5000fdx
98d8d1d7b1SRobert MustacchiAdvertises 5 Gbps support.
9986635a91SGarrett D'Amore.It Sy adv_cap_autoneg
10086635a91SGarrett D'AmoreAdvertises auto-negotiation support.
10186635a91SGarrett D'Amore.It Sy adv_cap_asmpause
10286635a91SGarrett D'AmoreAdvertises asymmetric flow control support.
10386635a91SGarrett D'Amore.It Sy adv_cap_pause
10486635a91SGarrett D'AmoreAdvertises flow control support.
10586635a91SGarrett D'Amore.It Sy adv_rem_fault
10686635a91SGarrett D'AmoreRemote fault status sent to peer.
10786635a91SGarrett D'Amore.It Sy align_errors
10886635a91SGarrett D'AmoreMis-aligned frames received.
10986635a91SGarrett D'Amore.It Sy brdcstrcv
11086635a91SGarrett D'AmoreBroadcast frames received.
11186635a91SGarrett D'Amore.It Sy brdcstxmt
11286635a91SGarrett D'AmoreBroadcast frames transmitted.
11386635a91SGarrett D'Amore.It Sy cap_1000fdx
11486635a91SGarrett D'AmoreDevice supports 1000 Mbps full-duplex.
11586635a91SGarrett D'Amore.It Sy cap_1000hdx
11686635a91SGarrett D'AmoreDevice supports 1000 Mbps half-duplex.
11786635a91SGarrett D'Amore.It Sy cap_100fdx
11886635a91SGarrett D'AmoreDevice supports 100 Mbps full-duplex.
119d8d1d7b1SRobert Mustacchi.It Sy cap_100gfdx
120d8d1d7b1SRobert MustacchiDevice supports 100 Gbps.
12186635a91SGarrett D'Amore.It Sy cap_100hdx
12286635a91SGarrett D'AmoreDevice supports 100 Mbps half-duplex.
12386635a91SGarrett D'Amore.It Sy cap_100T4
12486635a91SGarrett D'AmoreDevice supports 100BASE-T4.
12586635a91SGarrett D'Amore.It Sy cap_10fdx
12686635a91SGarrett D'AmoreDevice supports 10 Mbps full-duplex.
12786635a91SGarrett D'Amore.It Sy cap_10gfdx
12886635a91SGarrett D'AmoreDevice supports 10 Gpbs.
12986635a91SGarrett D'Amore.It Sy cap_10hdx
13086635a91SGarrett D'AmoreDevice supports 10 Mbps half-duplex.
131d8d1d7b1SRobert Mustacchi.It Sy cap_2500fdx
132d8d1d7b1SRobert MustacchiDevice supports 2.5 Gbps.
133*422542c1SRobert Mustacchi.It Sy cap_50gfdx
134*422542c1SRobert MustacchiDevice supports 50 Gpbs.
135d8d1d7b1SRobert Mustacchi.It Sy cap_40gfdx
136d8d1d7b1SRobert MustacchiDevice supports 40 Gpbs.
137*422542c1SRobert Mustacchi.It Sy cap_25gfdx
138*422542c1SRobert MustacchiDevice supports 25 Gpbs.
139d8d1d7b1SRobert Mustacchi.It Sy cap_5000fdx
140d8d1d7b1SRobert MustacchiDevice supports 5 Gbps.
14186635a91SGarrett D'Amore.It Sy cap_asmpause
14286635a91SGarrett D'AmoreDevice supports asymmetric flow control.
14386635a91SGarrett D'Amore.It Sy cap_autoneg
14486635a91SGarrett D'AmoreDevice supports auto-negotiation.
14586635a91SGarrett D'Amore.It Sy cap_pause
14686635a91SGarrett D'AmoreDevice supports symmetric flow control.
14786635a91SGarrett D'Amore.It Sy cap_rem_fault
14886635a91SGarrett D'AmoreDevice supports remote fault notification.
14986635a91SGarrett D'Amore.It Sy carrier_errors
15086635a91SGarrett D'AmoreFrames dropped due to loss of link.
15186635a91SGarrett D'Amore.It Sy collisions
15286635a91SGarrett D'AmoreCollisions.
15386635a91SGarrett D'Amore.It Sy defer_xmts
15486635a91SGarrett D'AmoreTransmits deferred due to link activity.
15586635a91SGarrett D'Amore.It Sy ex_collisions
15686635a91SGarrett D'AmoreFrames dropped due to too many collisions.
15786635a91SGarrett D'Amore.It Sy fcs_errors
15886635a91SGarrett D'AmoreFrames received with bad frame checksum.
15986635a91SGarrett D'Amore.It Sy first_collisions
16086635a91SGarrett D'AmoreFrames with at least one collision.
16186635a91SGarrett D'Amore.It Sy ierrors
16286635a91SGarrett D'AmoreReceive errors.
16386635a91SGarrett D'Amore.It Sy ifspeed
16486635a91SGarrett D'AmoreLink speed in bits per second.
16586635a91SGarrett D'Amore.It Sy ipackets Ns Op Sy 64
16686635a91SGarrett D'AmoreFrames received successfully.
16786635a91SGarrett D'Amore.It Sy jabber_errors
16886635a91SGarrett D'AmoreJabber errors.
16986635a91SGarrett D'Amore.It Sy link_asmpause
17086635a91SGarrett D'AmoreAsymmetric flow control; works together with
17186635a91SGarrett D'Amore.Sy link_pause .
17286635a91SGarrett D'AmoreSee the description for it below.
17386635a91SGarrett D'Amore.It Sy link_autoneg
17486635a91SGarrett D'AmoreLink was auto-negotiated.
17586635a91SGarrett D'Amore.It Sy link_duplex
17686635a91SGarrett D'AmoreLink duplex status, values as follows:
17786635a91SGarrett D'Amore.Bl -column "0" infinity
17886635a91SGarrett D'Amore.It 0 Ta Unknown.
17986635a91SGarrett D'Amore.It 1 Ta Half-duplex.
18086635a91SGarrett D'Amore.It 2 Ta Full-duplex.
18186635a91SGarrett D'Amore.El
18286635a91SGarrett D'Amore.It Sy link_pause
18386635a91SGarrett D'AmoreLink flow control available; works together with
18486635a91SGarrett D'Amore.Sy link_asmpause .
18586635a91SGarrett D'AmoreThe meanings of these bits are:
18686635a91SGarrett D'Amore.Bl -column "pause" "asmpause"
18786635a91SGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning
18886635a91SGarrett D'Amore.It 0 Ta 0 Ta "No flow control."
18986635a91SGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control.
19086635a91SGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames.
19186635a91SGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested.
19286635a91SGarrett D'Amore.El
19386635a91SGarrett D'Amore.It Sy link_state
19486635a91SGarrett D'AmoreLink state; 0 for down, 1 for up.
19586635a91SGarrett D'Amore.It Sy link_up
19686635a91SGarrett D'AmoreLink is up if 1.
19786635a91SGarrett D'Amore.It Sy lp_cap_1000fdx
19886635a91SGarrett D'AmorePeer supports 1000 Mbps full-duplex.
19986635a91SGarrett D'Amore.It Sy lp_cap_1000hdx
20086635a91SGarrett D'AmorePeer supports 1000 Mbps half-duplex.
20186635a91SGarrett D'Amore.It Sy lp_cap_100fdx
20286635a91SGarrett D'AmorePeer supports 100 Mbps full-duplex.
203d8d1d7b1SRobert Mustacchi.It Sy lp_cap_100gfdx
204d8d1d7b1SRobert MustacchiPeer supports 100 Gbps full-duplex.
20586635a91SGarrett D'Amore.It Sy lp_cap_100hdx
20686635a91SGarrett D'AmorePeer supports 100 Mbps half-duplex.
20786635a91SGarrett D'Amore.It Sy lp_cap_100T4
20886635a91SGarrett D'AmorePeer supports 100BASE-T4.
20986635a91SGarrett D'Amore.It Sy lp_cap_10fdx
21086635a91SGarrett D'AmorePeer supports 10 Mbps full-duplex.
21186635a91SGarrett D'Amore.It Sy lp_cap_10gfdx
21286635a91SGarrett D'AmorePeer supports 10 Gbps.
21386635a91SGarrett D'Amore.It Sy lp_cap_10hdx
21486635a91SGarrett D'AmorePeer supports 10 Mbps half-duplex.
215d8d1d7b1SRobert Mustacchi.It Sy lp_cap_2500fdx
216d8d1d7b1SRobert MustacchiPeer supports 2.5 Gbps.
217d8d1d7b1SRobert Mustacchi.It Sy lp_cap_5000fdx
218d8d1d7b1SRobert MustacchiPeer supports 5 Gbps.
219*422542c1SRobert Mustacchi.It Sy lp_cap_50gfdx
220*422542c1SRobert MustacchiPeer supports 50 Gbps.
221d8d1d7b1SRobert Mustacchi.It Sy lp_cap_40gfdx
222d8d1d7b1SRobert MustacchiPeer supports 40 Gbps.
223*422542c1SRobert Mustacchi.It Sy lp_cap_25gfdx
224*422542c1SRobert MustacchiPeer supports 25 Gbps.
22586635a91SGarrett D'Amore.It Sy lp_cap_asmpause
22686635a91SGarrett D'AmorePeer supports asymmetric flow control.
22786635a91SGarrett D'Amore.It Sy lp_cap_autoneg
22886635a91SGarrett D'AmorePeer supports auto-negotiation.
22986635a91SGarrett D'Amore.It Sy lp_cap_pause
23086635a91SGarrett D'AmorePeer advertises flow control support.
23186635a91SGarrett D'Amore.It Sy lp_rem_fault
23286635a91SGarrett D'AmorePeer announces a remote fault.
23386635a91SGarrett D'Amore.It Sy macrv_errors
23486635a91SGarrett D'AmoreGeneric receive errors.
23586635a91SGarrett D'Amore.It Sy macxmt_errors
23686635a91SGarrett D'AmoreGeneric transmit errors.
23786635a91SGarrett D'Amore.It Sy multi_collisions
23886635a91SGarrett D'AmoreFrames with more than one collision.
23986635a91SGarrett D'Amore.It Sy multircv
24086635a91SGarrett D'AmoreMulticast frames received.
24186635a91SGarrett D'Amore.It Sy multixmt
24286635a91SGarrett D'AmoreMulticast frames transmitted.
24386635a91SGarrett D'Amore.It Sy norcvbuf
24486635a91SGarrett D'AmoreReceive frames dropped due to lack of resources.
24586635a91SGarrett D'Amore.It Sy noxmtbuf
24686635a91SGarrett D'AmoreTransmit frames dropped due to lack of resources.
24786635a91SGarrett D'Amore.It Sy obytes Ns Op Sy 64
24886635a91SGarrett D'AmoreBytes (octets) transmitted successfully.
24986635a91SGarrett D'Amore.It Sy oerrors
25086635a91SGarrett D'AmoreTransmit errors.
25186635a91SGarrett D'Amore.It Sy oflo
25286635a91SGarrett D'AmoreOverflow errors.
25386635a91SGarrett D'Amore.It Sy opackets Ns Op Sy 64
25486635a91SGarrett D'AmoreFrames successfully transmitted.
25586635a91SGarrett D'Amore.It Sy promisc
25686635a91SGarrett D'AmoreInterface is in promiscuous mode.
25786635a91SGarrett D'Amore.It Sy rbytes Ns Op Sy 64
25886635a91SGarrett D'AmoreBytes (octets) received successfully.
25986635a91SGarrett D'Amore.It Sy runt_errors
26086635a91SGarrett D'AmoreFrames received that were too short.
26186635a91SGarrett D'Amore.It Sy sqe_errors
26286635a91SGarrett D'AmoreSquelch errors.
26386635a91SGarrett D'Amore.It Sy toolong_errors
26486635a91SGarrett D'AmoreFrames received that were too long.
26586635a91SGarrett D'Amore.It Sy tx_late_collisions
26686635a91SGarrett D'AmoreLate collisions on transmit.
26786635a91SGarrett D'Amore.It Sy uflo
26886635a91SGarrett D'AmoreUnderflow errors.
26986635a91SGarrett D'Amore.It Sy unknowns
27086635a91SGarrett D'AmoreFrames received with no local recipient.
27186635a91SGarrett D'Amore.It Sy xcvr_addr
27286635a91SGarrett D'AmoreTransceiver address.
27386635a91SGarrett D'Amore.It Sy xcvr_id
27486635a91SGarrett D'AmoreTransceiver vendor and device ID.
27586635a91SGarrett D'Amore.It Sy xcvr_inuse
27686635a91SGarrett D'AmoreIdentifies the type of transceiver in use.  Values are as follows:
27786635a91SGarrett D'Amore.Bl -column "0"
27886635a91SGarrett D'Amore.It 0 Ta Unknown or undefined.
27986635a91SGarrett D'Amore.It 1 Ta None.
28086635a91SGarrett D'Amore.It 2 Ta 10 Mbps
28186635a91SGarrett D'Amore.It 3 Ta 100BASE-T4
28286635a91SGarrett D'Amore.It 4 Ta 100BASE-X
28386635a91SGarrett D'Amore.It 5 Ta 100BASE-T2
28486635a91SGarrett D'Amore.It 6 Ta 1000BASE-X
28586635a91SGarrett D'Amore.It 7 Ta 1000BASE-T
28686635a91SGarrett D'Amore.El
28786635a91SGarrett D'Amore.El
28886635a91SGarrett D'Amore.Ss Properties
28986635a91SGarrett D'AmoreThe following parameters are accessible with
29086635a91SGarrett D'Amore.Xr dladm 1M .
29186635a91SGarrett D'AmoreSome of these are normally read-only.  Other properties that are not
29286635a91SGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via
29386635a91SGarrett D'Amore.Xr dladm 1M ,
29486635a91SGarrett D'Amoreand are documented in its man page rather than here.
29586635a91SGarrett D'Amore.
29686635a91SGarrett D'Amore.Bl -tag -width adv_1000hdx_cap
29786635a91SGarrett D'Amore.It Sy speed
29886635a91SGarrett D'AmoreLink speed, in Mbps per second (dladm only).
29986635a91SGarrett D'Amore.It Sy duplex
30086635a91SGarrett D'AmoreLink duplex, either "full" or "half".
30186635a91SGarrett D'Amore.It Sy state
30286635a91SGarrett D'AmoreLink state, either "up" or "down".
30386635a91SGarrett D'Amore.It Sy mtu
30486635a91SGarrett D'AmoreMaximum link frame size in bytes. See
30586635a91SGarrett D'Amore.Sx Jumbo Frames .
30686635a91SGarrett D'Amore.It Sy flowctrl
30786635a91SGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq.
30886635a91SGarrett D'AmoreSee
30986635a91SGarrett D'Amore.Sx Flow Control .
31086635a91SGarrett D'Amore.It Sy adv_10gfdx_cap
31186635a91SGarrett D'AmoreAdvertising 10 Gbps support.
31286635a91SGarrett D'Amore.It Sy en_10gfdx_cap
31386635a91SGarrett D'AmoreEnable 10 Gbps support.
31486635a91SGarrett D'Amore.
31586635a91SGarrett D'Amore.It Sy adv_1000fdx_cap
31686635a91SGarrett D'AmoreAdvertising 1000 Mbps full-duplex support.
31786635a91SGarrett D'Amore.It Sy en_1000fdx_cap
31886635a91SGarrett D'AmoreEnable 1000 Mbps full-duplex.
31986635a91SGarrett D'Amore.
32086635a91SGarrett D'Amore.It Sy adv_1000hdx_cap
32186635a91SGarrett D'AmoreAdvertising 1000 Mbps half-duplex support.
32286635a91SGarrett D'Amore.It Sy en_1000hdx_cap
32386635a91SGarrett D'AmoreEnable 1000 Mbps half-duplex.
32486635a91SGarrett D'Amore.
32586635a91SGarrett D'Amore.It Sy adv_100fdx_cap
32686635a91SGarrett D'AmoreAdvertising 100 Mbps full-duplex support.
32786635a91SGarrett D'Amore.It Sy en_100fdx_cap
32886635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
32986635a91SGarrett D'Amore.
33086635a91SGarrett D'Amore.It Sy adv_100hdx_cap
33186635a91SGarrett D'AmoreAdvertising 100 Mbps half-duplex support.
33286635a91SGarrett D'Amore.It Sy en_100hdx_cap
33386635a91SGarrett D'AmoreEnable 100 Mbps half-duplex.
33486635a91SGarrett D'Amore.
33586635a91SGarrett D'Amore.It Sy adv_10fdx_cap
33686635a91SGarrett D'AmoreAdvertising 10 Mbps full-duplex support.
33786635a91SGarrett D'Amore.It Sy en_10fhdx_cap
33886635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
33986635a91SGarrett D'Amore.
34086635a91SGarrett D'Amore.It Sy adv_10hdx_cap
34186635a91SGarrett D'AmoreAdvertising 10 Mbps half-duplex support.
34286635a91SGarrett D'Amore.It Sy en_10fhdx_cap
34386635a91SGarrett D'AmoreEnable 10 Mbps half-duplex.
34486635a91SGarrett D'Amore.El
34586635a91SGarrett D'Amore.Ss Auto-negotiation
34686635a91SGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically.  With
34786635a91SGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory.  (10GBASE-T also requires full-duplex
34886635a91SGarrett D'Amoreoperation.) It is also
34986635a91SGarrett D'Amore.Em strongly
35086635a91SGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link
35186635a91SGarrett D'Amorewill usually not operate unless both partners are configured to use the
35286635a91SGarrett D'Amoresame link mode.
35386635a91SGarrett D'Amore.Lp
35486635a91SGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities
35586635a91SGarrett D'Amorethat have been advertised (which must also be supported by the local device),
35686635a91SGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer).
35786635a91SGarrett D'Amore.
35886635a91SGarrett D'AmoreThe first of the following modes that is supported by both partners is
35986635a91SGarrett D'Amoreselected as the link negotiation result:
36086635a91SGarrett D'Amore.Lp
36186635a91SGarrett D'Amore.Bl -bullet -offset indent -compact
36286635a91SGarrett D'Amore.It
36386635a91SGarrett D'Amore10 Gbps (10gfdx)
36486635a91SGarrett D'Amore.It
36586635a91SGarrett D'Amore1000 Mbps full-duplex (1000fdx)
36686635a91SGarrett D'Amore.It
36786635a91SGarrett D'Amore1000 Mbps half-duplex (1000hdx)
36886635a91SGarrett D'Amore.It
36986635a91SGarrett D'Amore100 Mbps full-duplex (100fdx)
37086635a91SGarrett D'Amore.It
37186635a91SGarrett D'Amore100BASE-T4 (100T4)
37286635a91SGarrett D'Amore.It
37386635a91SGarrett D'Amore100 Mbps half-duplex (100hdx)
37486635a91SGarrett D'Amore.It
37586635a91SGarrett D'Amore10 Mbps full-duplex (10fdx)
37686635a91SGarrett D'Amore.It
37786635a91SGarrett D'Amore10 Mbps half-duplex (10hdx)
37886635a91SGarrett D'Amore.El
37986635a91SGarrett D'Amore.Lp
38086635a91SGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the
38186635a91SGarrett D'Amoreappropriate
38286635a91SGarrett D'Amore.Sy en_
38386635a91SGarrett D'Amoreproperty in
38486635a91SGarrett D'Amore.Xr dladm 1M .
38586635a91SGarrett D'Amore.Lp
38686635a91SGarrett D'AmoreAuto-negotation may also be disabled, by setting the
38786635a91SGarrett D'Amore.Sy adv_autoneg_cap
38886635a91SGarrett D'Amoreproperty to 0.  In this case, the highest enabled link mode (using the above
38986635a91SGarrett D'Amorelist) is
39086635a91SGarrett D'Amore.Dq forced
39186635a91SGarrett D'Amorefor the link.
39286635a91SGarrett D'Amore.Ss Flow Control
39386635a91SGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory
39486635a91SGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and
39586635a91SGarrett D'Amorethat the link be full-duplex, in order to function.
39686635a91SGarrett D'Amore.Lp
39786635a91SGarrett D'AmoreFlow control is applied when a receiver becomes congested.  In this case the
39886635a91SGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its
39986635a91SGarrett D'Amorepartner cease transmitting for a short period of time.
40086635a91SGarrett D'Amore.Lp
40186635a91SGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners
40286635a91SGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner
40386635a91SGarrett D'Amoremay not transmit pause frames.
40486635a91SGarrett D'Amore.Lp
40586635a91SGarrett D'AmoreThe flow control mode used is driven by the
40686635a91SGarrett D'Amore.Sy flowctrl
40786635a91SGarrett D'Amoreproperty.  It has the following meanings:
40886635a91SGarrett D'Amore.Lp
40986635a91SGarrett D'Amore.Bl -column -compact -offset indent Dv
41086635a91SGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames.
41186635a91SGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them,
41286635a91SGarrett D'Amorebut do not honor them.
41386635a91SGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames.
41486635a91SGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames.
41586635a91SGarrett D'Amore.El
41686635a91SGarrett D'Amore.Lp
41786635a91SGarrett D'AmoreThe statistics for flow control
41886635a91SGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause ,
41986635a91SGarrett D'Amore.Sy link_pause ,
42086635a91SGarrett D'Amoreand
42186635a91SGarrett D'Amore.Sy link_asmpause
42286635a91SGarrett D'Amore.Pc
42386635a91SGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are
42486635a91SGarrett D'Amoreconfusing as a result.  Administrators are advised to use the
42586635a91SGarrett D'Amore.Sy flowctrl
42686635a91SGarrett D'Amoreproperty instead.
42786635a91SGarrett D'Amore.
42886635a91SGarrett D'Amore.Ss Jumbo Frames
42986635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes,
43086635a91SGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes
43186635a91SGarrett D'Amoreof payload.  Most devices support larger frame sizes than this, and
43286635a91SGarrett D'Amorewhen all possible parties on the same local network can do so, it may be
43386635a91SGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common
43486635a91SGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while
43586635a91SGarrett D'Amoreleaving room for various link, network, and transport layer headers.
43686635a91SGarrett D'Amore.Lp
43786635a91SGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is
43886635a91SGarrett D'Amorenot standardized, even though it is common practice.
43986635a91SGarrett D'Amore.Lp
44086635a91SGarrett D'AmoreThe
44186635a91SGarrett D'Amore.Sy mtu
44286635a91SGarrett D'Amoreproperty is used to configure the frame size.  Note that this is the size of
44386635a91SGarrett D'Amorethe payload, and excludes the preamble, checksum, and header.  It also excludes
44486635a91SGarrett D'Amorethe tag for devices that support tagging (see
44586635a91SGarrett D'Amore.Sx Virtual LANs
44686635a91SGarrett D'Amorebelow).
44786635a91SGarrett D'Amore.Lp
44886635a91SGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same
44986635a91SGarrett D'Amoresize, or communication may cease to function properly.
45086635a91SGarrett D'Amore.Lp
45186635a91SGarrett D'AmoreNote that the
45286635a91SGarrett D'Amore.Sy mtu
45386635a91SGarrett D'Amoreproperty refers to the link layer property.  It may be necessary to configure
45486635a91SGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes.
45586635a91SGarrett D'AmoreSee
45686635a91SGarrett D'Amore.Xr ifconfig 1M .
45786635a91SGarrett D'Amore.
45886635a91SGarrett D'Amore.Ss Virtual LANs
45986635a91SGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though
46086635a91SGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload.  The
46186635a91SGarrett D'Amoredetails of configuration of this are covered in the
46286635a91SGarrett D'Amore.Xr dladm 1M
46386635a91SGarrett D'Amoremanual.
46486635a91SGarrett D'Amore.
46586635a91SGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details
46686635a91SGarrett D'Amore.
46786635a91SGarrett D'AmoreThe correct method for applications to access Ethernet devices directly
46886635a91SGarrett D'Amoreis to use the DLPI. See
46986635a91SGarrett D'Amore.Xr dlpi 7P
47086635a91SGarrett D'Amoreand
47186635a91SGarrett D'Amore.Xr libdlpi 3LIB
47286635a91SGarrett D'Amorefor further information.
47386635a91SGarrett D'Amore.Lp
47486635a91SGarrett D'AmoreThe following DLPI parameters are presented to applications.
47586635a91SGarrett D'Amore.Bl -column -offset indent "Broadcast address"
47686635a91SGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.)
47786635a91SGarrett D'Amore.It Minimum SDU Ta 0
47886635a91SGarrett D'Amore.It Address length Ta 6
47986635a91SGarrett D'Amore.It MAC type Ta Dv DL_ETHER
48086635a91SGarrett D'Amore.It SAP length Ta \(mi2
48186635a91SGarrett D'Amore.It Service mode Ta Dv DL_CLDLS
48286635a91SGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set)
48386635a91SGarrett D'Amore.El
48486635a91SGarrett D'Amore.Lp
48586635a91SGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3
48686635a91SGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type.
48786635a91SGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered
48886635a91SGarrett D'Amoreto applications that bind to SAP 0.
48986635a91SGarrett D'Amore.Lp
49086635a91SGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation.
49186635a91SGarrett D'AmoreAdditionally, it is possible to configure provide
49286635a91SGarrett D'Amore.Dq vanity
49386635a91SGarrett D'Amorenames to interfaces using the
49486635a91SGarrett D'Amore.Xr dladm 1M
49586635a91SGarrett D'Amore.Sy rename-link
49686635a91SGarrett D'Amoresubcommand.  Such vanity names are only accessible using DLPI style 1.
49786635a91SGarrett D'Amore.Sh NOTES
49886635a91SGarrett D'AmoreThere may be other mechanisms available to configure link layer properties.
49986635a91SGarrett D'AmoreHistorically the
50086635a91SGarrett D'Amore.Xr ndd 1M
50186635a91SGarrett D'Amorecommand, and
50286635a91SGarrett D'Amore.Xr driver.conf 4
50386635a91SGarrett D'Amorefiles could be used to do this.  These methods are deprecated in favor of
50486635a91SGarrett D'Amore.Xr dladm 1M
50586635a91SGarrett D'Amoreproperties.
50686635a91SGarrett D'Amore.
50786635a91SGarrett D'Amore.Sh INTERFACE STABILITY
50886635a91SGarrett D'AmoreWhen present, the statistics and properties presented here
50986635a91SGarrett D'Amoreare
51086635a91SGarrett D'Amore.Sy Committed .
51186635a91SGarrett D'AmoreHowever, note that not every Ethernet device supports all of these,
51286635a91SGarrett D'Amoreand some devices may support additional statistics and properties.
51386635a91SGarrett D'Amore.Lp
51486635a91SGarrett D'AmoreThe DLPI and IEEE 802.3 itself are
51586635a91SGarrett D'Amore.Sy Standard .
51686635a91SGarrett D'Amore.Sh SEE ALSO
51786635a91SGarrett D'Amore.Xr dladm 1M ,
51886635a91SGarrett D'Amore.Xr ifconfig 1M ,
51986635a91SGarrett D'Amore.Xr kstat 1M ,
52086635a91SGarrett D'Amore.Xr ndd 1M ,
5213a005aadSYuri Pankov.Xr netstat 1M ,
52286635a91SGarrett D'Amore.Xr libdlpi 3LIB ,
52386635a91SGarrett D'Amore.Xr driver.conf 4 ,
52486635a91SGarrett D'Amore.Xr dlpi 7P
52586635a91SGarrett D'Amore.Rs
52686635a91SGarrett D'Amore.%T IEEE 802.3: Ethernet
52786635a91SGarrett D'Amore.%Q IEEE Standards Association
52886635a91SGarrett D'Amore.Re
52986635a91SGarrett D'Amore.Rs
53086635a91SGarrett D'Amore.%B Data Link Provider Interface (DLPI)
53186635a91SGarrett D'Amore.%Q The Open Group
53286635a91SGarrett D'Amore.%D 1997
53386635a91SGarrett D'Amore.Re
53486635a91SGarrett D'Amore.Rs
53586635a91SGarrett D'Amore.%B STREAMs Programming Guide
53686635a91SGarrett D'Amore.%Q Sun Microsystems, Inc.
53786635a91SGarrett D'Amore.%D January 2005
53886635a91SGarrett D'Amore.Re
539