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