e1000g, e1000 - Intel PRO/1000 Gigabit family of network interface controllers
/dev/e1000g
The e1000g Gigabit Ethernet driver is a multi-threaded, loadable, clonable, GLD-based STREAMS driver supporting the Data Link Provider Interface, dlpi(7P) , over Intel PRO/1000 family of Gigabit controllers. This driver supports multiple Intel Gigabit controllers installed within the system. The e1000g driver provides basic support including chip initialization, frame transmit and receive, multicast support, and error recovery and reporting.
The cloning, character-special device /dev/e1000g is used to access all Intel Gigabit devices installed within the system.
The e1000g driver is managed by the dladm(1M) command line utility, which allows VLANs to be defined on top of e1000g instances and for e1000g instances to be aggregated. See dladm(1M) for more details.
You must send an explicit DL_ATTACH_REQ message to associate the opened stream with a particular device (PPA). The PPA ID is interpreted as an unsigned integer data type and indicates the corresponding device instance (unit) number. The driver returns an error (DL_ERROR_ACK) if the PPA field value does not correspond to a valid device instance number.
The values returned by the driver in the DL_INFO_ACK primitive in response to the DL_INFO_REQ are as follows:
The e1000g driver does not support the use of shared RAM on the board.
To configure the e1000g driver:
Configuration File Options
The following e1000g.conf configuration options are supported:
AutoNegAdvertised
This is a bitmap for the speeds advertised during auto-negotiation.
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 Setting| N/A | N/A | 1000F | N/A | 100F | 100H | 10F | 10H
The adapter only auto-negotiates to a speed that is advertised. For example: AutoNegAdvertised = 4 causes an adapter to only advertise auto-negotiation at 100 Mbps, full duplex. No other link speeds are accepted or given during auto-negotiation. AutoNegAdvertised=47 advertises all speeds available, This is the same as using the default setting of 0.
ForceSpeedDuplex
Specify the speed and duplex mode for each instance.
If you set ForceSpeedDuplex=7,4, the e1000g0 is set to auto-negotiate and e1000g1 is set to 100 Mbps, full duplex. Note that fiber optic ethernet adapters ignore this setting.
Allowed values are:
MaxFrameSize
Upper limit on the maximum MTU size the driver allows. All Intel gigabit adapters (except the 82542-based Intel PRO/1000 adapter) allow the configuration of jumbo frames.
The maximum MTU accepted by the MAC is 16128. Use ifconfig(1M) to configure jumbo frames. Use ifconfig with the adapter instance and the mtu argument (ifconfig e1000g0 mtu 16128) configures adapter e1000g0 for the maximum allowable jumbo frame size.
Allowed values are:
FlowControl
Flow control utilizes ethernet XON and unicast and multicast XOFF packets to allow ethernet equipment to slow down the stream of data between two ethernet devices.
Allowed values are:
TbiCompatibilityEnable
You must enable this feature on Intel 82543CG-based copper adapters to operate correctly with TBI mode ethernet hardware.
Allowed values are:
SetMasterSlave
Controls the PHY master/slave setting. Manually forcing master or slave can reduce time needed to link with Planex 08TX and IO data switches. This setting should remain as the hardware default.
Allowed values are:
By default, the following configuration options are not displayed in the e1000g.conf file. Although they are configurable, you should not change these options:
NumRxDescrNiupmtboersof available receive descriptors. Multiple receive descriptors increase receive performance, but decrease available memory.
80-4096 Allowed values.
NumTxDescrNiupmtboersof transmit descriptors available to the driver. Mulitiple transmit descriptors increase transmit performance, but decrease available memory.
80-4096 Allowed values.
NumRxFreeLNiusmtber of pre-allocated buffers that the driver can use for received data. Pre-allocating buffers can improve receive performance but decrease available memory.
60-4096 Allowed values.
MaxNumReceMiavxeiPmaucmkentusmber of receive packets that the driver can handle for each interrupt.
CPU utilization can be lowered through more efficient interrupt
TxInterrupAtmDoeulnaty of time (in 1.024 micro second units) between the time transmit data is queued in a transmit descriptor and the transmit interrupt is sent.
0-65535 Allowed values. A value of 0 completely disables any transmit interrupt delay. Some delay is benefical in reducing CPU utilization by the driver.
Note: The configuration options in e1000g.conf are limited to one value per interface.
Configuration Options Using ndd(1M)
In addition to the e1000g.conf file, you can also use the ndd(1M)
command
to configure the e1000g driver.
To view supported ndd parameters, do the following step:
# ndd -get /dev/e1000g0 ?
Using ndd(1M) , you can set the link speed/duplex using the advertised capability parameters supported by the e1000g device. Each parameter contains a boolean value that determines if the device advertises that mode of operation. The adv_autoneg_cap parameter controls auto-negotiation. When adv_autoneg_cap is set to 1, auto-negotiation is performed and the link speed/duplex is auto-negotiated to the mode determined by the first non-zero parameter in priority order as listed below:
When adv_autoneg_cap is set to 0, the link speed/duplex is forced to the mode specified by force_speed_duplex. The valid values of force_speed_duplex and the corresponding modes are:
Note: Forced 1000Mbps full duplex is not supported.
See attributes(5) for descriptions of the following attributes:
tab() allbox; cw(2.750000i)| cw(2.750000i) lw(2.750000i) lw(2.750000i). ATTRIBUTE TYPEATTRIBUTE VALUE ArchitectureSPARC, X86
dladm(1M) , ifconfig(1M) , kstat(1M) , ndd(1M) , ping(1M) , attributes(5) , dlpi(7P)
Intel PRO/1000 Gigabit Adapter Driver Installation Notes for Solaris
Writing Device Drivers
STREAMS Programming Guide
Network Interfaces Guide