1ff24f054SPyun YongHyeon.\" Copyright (c) 2009 Pyun YongHyeon 2ff24f054SPyun YongHyeon.\" All rights reserved. 3ff24f054SPyun YongHyeon.\" 4ff24f054SPyun YongHyeon.\" Redistribution and use in source and binary forms, with or without 5ff24f054SPyun YongHyeon.\" modification, are permitted provided that the following conditions 6ff24f054SPyun YongHyeon.\" are met: 7ff24f054SPyun YongHyeon.\" 1. Redistributions of source code must retain the above copyright 8ff24f054SPyun YongHyeon.\" notice, this list of conditions and the following disclaimer. 9ff24f054SPyun YongHyeon.\" 2. Redistributions in binary form must reproduce the above copyright 10ff24f054SPyun YongHyeon.\" notice, this list of conditions and the following disclaimer in the 11ff24f054SPyun YongHyeon.\" documentation and/or other materials provided with the distribution. 12ff24f054SPyun YongHyeon.\" 13ff24f054SPyun YongHyeon.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14ff24f054SPyun YongHyeon.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15ff24f054SPyun YongHyeon.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16ff24f054SPyun YongHyeon.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17ff24f054SPyun YongHyeon.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18ff24f054SPyun YongHyeon.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19ff24f054SPyun YongHyeon.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20ff24f054SPyun YongHyeon.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21ff24f054SPyun YongHyeon.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22ff24f054SPyun YongHyeon.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23ff24f054SPyun YongHyeon.\" SUCH DAMAGE. 24ff24f054SPyun YongHyeon.\" 25066d6cbcSPyun YongHyeon.Dd August 22, 2016 26ff24f054SPyun YongHyeon.Dt ALC 4 27ff24f054SPyun YongHyeon.Os 28ff24f054SPyun YongHyeon.Sh NAME 29ff24f054SPyun YongHyeon.Nm alc 30e27bcffdSPyun YongHyeon.Nd Atheros AR813x/AR815x/AR816x/AR817x Gigabit/Fast Ethernet driver 31ff24f054SPyun YongHyeon.Sh SYNOPSIS 32ff24f054SPyun YongHyeonTo compile this driver into the kernel, 33ff24f054SPyun YongHyeonplace the following lines in your 34ff24f054SPyun YongHyeonkernel configuration file: 35ff24f054SPyun YongHyeon.Bd -ragged -offset indent 36ff24f054SPyun YongHyeon.Cd "device miibus" 37ff24f054SPyun YongHyeon.Cd "device alc" 38ff24f054SPyun YongHyeon.Ed 39ff24f054SPyun YongHyeon.Pp 40ff24f054SPyun YongHyeonAlternatively, to load the driver as a 41ff24f054SPyun YongHyeonmodule at boot time, place the following line in 42ff24f054SPyun YongHyeon.Xr loader.conf 5 : 43ff24f054SPyun YongHyeon.Bd -literal -offset indent 44ff24f054SPyun YongHyeonif_alc_load="YES" 45ff24f054SPyun YongHyeon.Ed 46ff24f054SPyun YongHyeon.Sh DESCRIPTION 47ff24f054SPyun YongHyeonThe 48ff24f054SPyun YongHyeon.Nm 49e27bcffdSPyun YongHyeondevice driver provides support for Atheros AR813x, AR815x, AR816x 50e27bcffdSPyun YongHyeonand AR817x PCI Express Gigabit/Fast Ethernet controllers. 51ff24f054SPyun YongHyeon.Pp 52ff24f054SPyun YongHyeonAll LOMs supported by the 53ff24f054SPyun YongHyeon.Nm 54ff24f054SPyun YongHyeondriver have TCP/UDP/IP checksum offload for transmit, TCP 55ff24f054SPyun YongHyeonsegmentation offload (TSO), hardware VLAN tag stripping/insertion 56ff24f054SPyun YongHyeonfeatures, Wake On Lan (WOL) and an interrupt moderation mechanism 57ff24f054SPyun YongHyeonas well as a 64-bit multicast hash filter. 58ff24f054SPyun YongHyeon.Pp 59e27bcffdSPyun YongHyeonThe AR813x, AR815x, AR816x and AR817x supports Jumbo Frames (up to 60e27bcffdSPyun YongHyeon9216, 6144, 9216 and 9216 bytes, respectively), which can be 61e27bcffdSPyun YongHyeonconfigured via the interface MTU setting. 62ff24f054SPyun YongHyeonSelecting an MTU larger than 1500 bytes with the 63ff24f054SPyun YongHyeon.Xr ifconfig 8 64ff24f054SPyun YongHyeonutility configures the adapter to receive and transmit Jumbo Frames. 65ff24f054SPyun YongHyeon.Pp 66ff24f054SPyun YongHyeonThe 67ff24f054SPyun YongHyeon.Nm 68ff24f054SPyun YongHyeondriver supports the following media types: 69ff24f054SPyun YongHyeon.Bl -tag -width ".Cm 10baseT/UTP" 70ff24f054SPyun YongHyeon.It Cm autoselect 71ff24f054SPyun YongHyeonEnable autoselection of the media type and options. 72ff24f054SPyun YongHyeonThe user can manually override 73ff24f054SPyun YongHyeonthe autoselected mode by adding media options to 74ff24f054SPyun YongHyeon.Xr rc.conf 5 . 75ff24f054SPyun YongHyeon.It Cm 10baseT/UTP 76ff24f054SPyun YongHyeonSet 10Mbps operation. 77ff24f054SPyun YongHyeon.It Cm 100baseTX 78ff24f054SPyun YongHyeonSet 100Mbps (Fast Ethernet) operation. 79ff24f054SPyun YongHyeon.It Cm 1000baseTX 80ff24f054SPyun YongHyeonSet 1000baseTX operation over twisted pair. 81ff24f054SPyun YongHyeon.El 82ff24f054SPyun YongHyeon.Pp 83ff24f054SPyun YongHyeonThe 84ff24f054SPyun YongHyeon.Nm 85ff24f054SPyun YongHyeondriver supports the following media options: 86ff24f054SPyun YongHyeon.Bl -tag -width ".Cm full-duplex" 87ff24f054SPyun YongHyeon.It Cm full-duplex 88ff24f054SPyun YongHyeonForce full duplex operation. 89ff24f054SPyun YongHyeon.It Cm half-duplex 90ff24f054SPyun YongHyeonForce half duplex operation. 91ff24f054SPyun YongHyeon.El 92ff24f054SPyun YongHyeon.Pp 93ff24f054SPyun YongHyeonFor more information on configuring this device, see 94ff24f054SPyun YongHyeon.Xr ifconfig 8 . 95ff24f054SPyun YongHyeon.Sh HARDWARE 96ff24f054SPyun YongHyeonThe 97ff24f054SPyun YongHyeon.Nm 98ff24f054SPyun YongHyeondevice driver provides support for the following Ethernet controllers: 99ff24f054SPyun YongHyeon.Pp 100ff24f054SPyun YongHyeon.Bl -bullet -compact 101ff24f054SPyun YongHyeon.It 102ff24f054SPyun YongHyeonAtheros AR8131 PCI Express Gigabit Ethernet controller 103ff24f054SPyun YongHyeon.It 104ff24f054SPyun YongHyeonAtheros AR8132 PCI Express Fast Ethernet controller 105b805efe6SPyun YongHyeon.It 106b805efe6SPyun YongHyeonAtheros AR8151 v1.0 PCI Express Gigabit Ethernet controller 107b805efe6SPyun YongHyeon.It 108b805efe6SPyun YongHyeonAtheros AR8151 v2.0 PCI Express Gigabit Ethernet controller 109b805efe6SPyun YongHyeon.It 110b805efe6SPyun YongHyeonAtheros AR8152 v1.1 PCI Express Fast Ethernet controller 111b805efe6SPyun YongHyeon.It 112b805efe6SPyun YongHyeonAtheros AR8152 v2.0 PCI Express Fast Ethernet controller 113e27bcffdSPyun YongHyeon.It 114e27bcffdSPyun YongHyeonAtheros AR8161 PCI Express Gigabit Ethernet controller 115e27bcffdSPyun YongHyeon.It 116e27bcffdSPyun YongHyeonAtheros AR8162 PCI Express Fast Ethernet controller 117e27bcffdSPyun YongHyeon.It 118e27bcffdSPyun YongHyeonAtheros AR8171 PCI Express Gigabit Ethernet controller 119e27bcffdSPyun YongHyeon.It 120e27bcffdSPyun YongHyeonAtheros AR8172 PCI Express Fast Ethernet controller 121e27bcffdSPyun YongHyeon.It 122e27bcffdSPyun YongHyeonKiller E2200 Gigabit Ethernet controller 123066d6cbcSPyun YongHyeon.It 124066d6cbcSPyun YongHyeonKiller E2400 Gigabit Ethernet controller 1251536a1b8SSepherosa Ziehau.It 1261536a1b8SSepherosa ZiehauKiller E2500 Gigabit Ethernet controller 127ff24f054SPyun YongHyeon.El 128ff24f054SPyun YongHyeon.Sh LOADER TUNABLES 129ff24f054SPyun YongHyeonTunables can be set at the 130ff24f054SPyun YongHyeon.Xr loader 8 131ff24f054SPyun YongHyeonprompt before booting the kernel or stored in 132ff24f054SPyun YongHyeon.Xr loader.conf 5 . 133ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx" 134ff24f054SPyun YongHyeon.It Va hw.alc.msi_disable 135ff24f054SPyun YongHyeonThis tunable disables MSI support on the Ethernet hardware. 136ff24f054SPyun YongHyeonThe default value is 0. 137ff24f054SPyun YongHyeon.It Va hw.alc.msix_disable 138ff24f054SPyun YongHyeonThis tunable disables MSI-X support on the Ethernet hardware. 139*05a95d19SLexi WinterThe default value is 2, which means to enable or disable MSI-X based on the 140*05a95d19SLexi Wintercard type; for "Killer" cards (E2x00) MSI-X will be disabled, while on other 141*05a95d19SLexi Wintercards it will be enabled. 142*05a95d19SLexi WinterSet this to 0 to force MSI-X to be enabled, or 1 to force it to be disabled 143*05a95d19SLexi Winterregardless of card type. 144ff24f054SPyun YongHyeon.El 145ff24f054SPyun YongHyeon.Sh SYSCTL VARIABLES 146ff24f054SPyun YongHyeonThe following variables are available as both 147ff24f054SPyun YongHyeon.Xr sysctl 8 148ff24f054SPyun YongHyeonvariables and 149ff24f054SPyun YongHyeon.Xr loader 8 150ff24f054SPyun YongHyeontunables: 151ff24f054SPyun YongHyeon.Bl -tag -width "xxxxxx" 152ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_rx_mod 153ff24f054SPyun YongHyeonMaximum amount of time to delay receive interrupt processing in 154ff24f054SPyun YongHyeonunits of 1us. 155ff24f054SPyun YongHyeonThe accepted range is 0 to 130000, the default is 100(100us). 156ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation. 157ff24f054SPyun YongHyeon.It Va dev.alc.%d.int_tx_mod 158ff24f054SPyun YongHyeonMaximum amount of time to delay transmit interrupt processing in 159ff24f054SPyun YongHyeonunits of 1us. 16085bac12cSPyun YongHyeonThe accepted range is 0 to 130000, the default is 1000(1ms). 161ff24f054SPyun YongHyeonValue 0 completely disables the interrupt moderation. 162ff24f054SPyun YongHyeon.It Va dev.alc.%d.process_limit 163ff24f054SPyun YongHyeonMaximum amount of Rx frames to be processed in the event loop before 164ff24f054SPyun YongHyeonrescheduling a taskqueue. 165ff24f054SPyun YongHyeonThe accepted range is 32 to 255, the default value is 64 events. 166ff24f054SPyun YongHyeonThe interface does not need to be brought down and up again before 167ff24f054SPyun YongHyeona change takes effect. 168ff24f054SPyun YongHyeon.El 169ff24f054SPyun YongHyeon.Sh SEE ALSO 170ff24f054SPyun YongHyeon.Xr altq 4 , 171ff24f054SPyun YongHyeon.Xr arp 4 , 172ff24f054SPyun YongHyeon.Xr miibus 4 , 173ff24f054SPyun YongHyeon.Xr netintro 4 , 174ff24f054SPyun YongHyeon.Xr ng_ether 4 , 175ff24f054SPyun YongHyeon.Xr vlan 4 , 176ff24f054SPyun YongHyeon.Xr ifconfig 8 177ff24f054SPyun YongHyeon.Sh HISTORY 178ff24f054SPyun YongHyeonThe 179ff24f054SPyun YongHyeon.Nm 180ff24f054SPyun YongHyeondriver was written by 1816c899950SBaptiste Daroussin.An Pyun YongHyeon Aq Mt yongari@FreeBSD.org . 182ff24f054SPyun YongHyeonIt first appeared in 183ff24f054SPyun YongHyeon.Fx 8.0 . 184