The qfe device driver controls the Sun Quad FastEthernet SBus adapter's SUNW,qfe Ethernet devices. You can manually configure the qfe device driver parameters to customize each SUNW,qfe device in your system. This appendix provides an overview of the internal transceiver used in the adapter, lists the available qfe device driver parameters, and describes how you can configure these parameters.
The four SUNW,qfe channels provide 10BASE-TX or 100BASE-T networking interfaces using the Fast Ethernet Parallel Port SCSI (FEPS) ASIC and an internal transceiver. The driver automatically sets the link speed to 10 or 100 Mbps and conforms to the 100BASE-T IEEE 802.3u Ethernet standard. The FEPS ASIC provides the SBus interface and Media Access Control (MAC) functions. The internal transceiver, which connects to an RJ-45 connector, provides the physical layer functions.
The internal transceiver is capable of all the operating speeds and modes listed in the section "Auto-Negotiation". The internal transceiver performs auto-negotiation with the remote end of the link (link partner) to select a common mode of operation.
The internal transceiver also supports a forced mode of operation. You can select the speed and mode using the ndd utility, by editing the /etc/system file, or creating a qfe.conf file.
This section describes the parameters and settings for the qfe device driver. Table C-1 lists these parameters.
Table C-1 qfe Driver Parameter, Status, and Descriptions
Parameter |
Status |
Description |
---|---|---|
transceiver_inuse |
Read only |
Defines the current status |
link_status |
Read only |
Defines the current status |
link_speed |
Read only |
Defines the current status |
link_mode |
Read only |
Defines the current status |
ipg1 |
Read and write |
Inter-packet gap parameter |
ipg2 |
Read and write |
Inter-packet gap parameter |
use_int_xcvr |
Read and write |
Operational mode parameter |
pace_size |
Read and write |
Operational mode parameter |
adv_autoneg_cap |
Read and write |
Operational mode parameter |
adv_100fdx_cap |
Read and write |
Operational mode parameter |
adv_100hdx_cap |
Read and write |
Operational mode parameter |
adv_10fdx_cap |
Read and write |
Operational mode parameter |
adv_10hdx_cap |
Read and write |
Operational mode parameter |
autoneg_cap |
Read only |
Local transceiver auto negotiation capability |
100fdx_cap |
Read only |
Local transceiver capability of the hardware |
100hdx_cap |
Read only |
Local transceiver capability of the hardware |
10fdx_cap |
Read only |
Local transceiver capability of the hardware |
10hdx_cap |
Read only |
Local transceiver capability of the hardware |
lp_autoneg_cap |
Read only |
Link partner auto negotiation capability |
lp_100fdx_cap |
Read only |
Link partner capability |
lp_100hdx_cap |
Read only |
Link partner capability |
lp_10fdx_cap |
Read only |
Link partner capability |
lp_10hdx_cap |
Read only |
Link partner capability |
instance |
Read and write |
Device instance |
lance_mode |
Read and write |
Additional delay before transmitting a packet |
ipg0 |
Read and write |
Additional delay before transmitting a packet |
The read-only parameters described in Table C-2 explain the operational mode of the interface. These parameters define the current status.
Table C-2 Read-Only Parameters Defining the Current Status
Parameter |
Values |
Description |
---|---|---|
link_status |
0 1 |
Current link status = Link down = Link up |
link_speed |
0 1 |
Valid only if the link is up = 10 Mbps = 100 Mbps |
link_mode
|
0 1 |
Valid only if the link is up = Half duplex = Full duplex |
The Fast Ethernet Parallel Port SCSI (FEPS) ASIC supports the programmable Inter-Packet Gap (IPG) parameters ipg1 and ipg2. The total IPG is the sum of ipg1 and ipg2. The total IPG is 9.6 microseconds when the link speed set, by the auto-negotiation protocol, is 10 Mbps. When the link speed is 100 Mbps, the total IPG is 0.96 microseconds.
Table C-3 lists the default values and allowable values for the inter-packet gap (IPG) parameters ipg1 and ipg2.
Table C-3 Read-Write Inter-Packet Gap Parameter Values and Descriptions
Parameter
|
Values (Byte-time) |
Description
|
---|---|---|
ipg1 |
0, 255 |
ipg1 = 8 (default at initialization) |
ipg2 |
0, 255 |
ipg2 = 4 (default at initialization) |
By default, the driver sets ipg1 to 8-byte time and ipg2 to 4-byte time, which are the standard values. (Byte time is the time it takes to transmit one byte on the link, with a link speed of either 100 Mbps or 10 Mbps.)
If your network has systems that use longer IPG (the sum of ipg1 and ipg2) and if those machines seem to be slow in accessing the network, increase the values of ipg1 and ipg2 to match the longer IPGs of other machines.
The Fast Ethernet Parallel Port SCSI (FEPS) ASIC supports a programmable mode called lance_mode. The ipg0 parameter is associated with lance_mode.
After a packet is received with lance_mode enabled (default) an additional delay is added by setting the ipg0 parameter before transmitting the packet. This delay, set by the ipg0 parameter, is in addition to the delay set by the ipg1 and ipg2 parameters. The additional delay set by ipg0 helps to reduce collisions. Systems that have lance_mode enabled might not have enough time on the network.
If lance_mode is disabled, the value of ipg0 is ignored and no additional delay is set. Only the delays set by ipg1 and ipg2 are used. Disable lance_mode if other systems keep sending a large number of back-to-back packets.
You can add the additional delay by setting the ipg0 parameter from 0 to 31, which is the nibble time delay. Note that nibble time is the time it takes to transfer four bits on the link. If the link speed is 10 Mbps, nibble time is equal to 400 ns. If the link speed is 100 Mbps, nibble time is equal to 40 ns.
For example, if the link speed is 10 Mbps, and you set ipg0 to 20 nibble times, multiply 20 by 400 ns to get 800 ns. If the link speed is 100 Mbps, and you set ipg0 to 30 nibble-times, multiply 30 by 40 ns to get 120 ns.
Table C-4 defines the lance_mode and ipg0 parameters.
Table C-4 Parameters Defining lance_mode and ipg0
Table C-5 describes the operational mode parameters and their default values.
Table C-5 Operational Mode Parameters
The pace_size parameter (see Table C-6) defines the maximum number of back-to-back packets you can transmit at one time. If the value is zero, there is no limit to the number of back-to-back packets that can be transmitted.
Table C-6 Back-to-back Packet Transmission Capability
Parameter |
Values |
Description |
---|---|---|
pace_size |
1 to 255
0 |
= Number of back-to-back packets transmitted at one time
= No limit to the number of back-to-back packets that can be transmitted (default) |
Table C-7 describes the read-only transceiver capabilities. These parameters define the capabilities of the hardware. The internal transceiver can support all of these capabilities.
Table C-7 Read-Only Transceiver Capabilities
Parameter |
Values |
Description |
---|---|---|
autoneg_cap |
0 1 |
Local transceiver capability of the hardware = Not capable of auto-negotiation = Auto negotiation capable |
100fdx_cap |
0 1 |
Local transceiver capability of the hardware; initialized at startup = Not 100Mbit/sec full-duplex capable = 100Mbit/sec full-duplex capable |
100hdx_cap |
0 1 |
Local transceiver capability of the hardware; initialized at startup = Not 100Mbit/sec half-duplex capable = 100Mbit/sec half-duplex capable |
10fdx_cap |
0 1 |
Local transceiver capability of the hardware; initialized at startup = Not 10Mbit/sec full-duplex capable = 10Mbit/sec full-duplex capable |
10hdx_cap |
0 1 |
Local transceiver capability of the hardware; initialized at startup = Not 10Mbit/sec half-duplex capable = 10Mbit/sec half-duplex capable |
Table C-8 describes the read-only link partner capabilities.
Table C-8 Read-Only Link Partner Capabilities
Parameter |
Values |
Description |
---|---|---|
lp_autoneg_cap |
0 1 |
= No auto-negotiation = Auto-negotiation |
lp_100fdx_cap |
0 1 |
= No100Mbit/sec full-duplex transmission = 100Mbit/sec full-duplex |
lp_100hdx_cap |
0 1 |
= No 100Mbit/sec half-duplex transmission = 100Mbit/sec half-duplex |
lp_10fdx_cap |
0 1 |
= No 10Mbit/sec full-duplex transmission = 10Mbit/sec full-duplex |
lp_10hdx_cap |
0 1 |
= No 10Mbit/sec half-duplex transmission = 10Mbit/sec half-duplex |
If the link partner is not capable of auto-negotiation (when lp_autoneg_cap is 0) the information described in Table C-8 is not relevant and the parameter value = 0.
If the link partner is capable of auto-negotiation (when lp_autoneg_cap is 1) then the speed and mode information is displayed when you use auto-negotiation and get the link partner capabilities.
You can set the qfe device driver parameters in three ways (ndd, /etc/system, and qfe.conf), depending on your needs. To set parameters that are valid until you reboot the system, use the ndd utility. Using ndd is a good way to test parameter settings.
To set parameters so they remain in effect after you reboot the system:
Add the parameter values to the /etc/system file when you want to configure parameters for all devices in the system.
Create a /kernel/drv/qfe.conf file and add parameter values to this file when you need to set a particular parameter for a device in the system.
Use the ndd utility to configure parameters that are valid until you reboot the system. The ndd utility supports any networking driver, which implements the Data Link Provider Interface (DLPI).
The following sections describe how you can use the qfe driver and the ndd utility to modify (with the -set option) or display (without the -set option) the parameters for each SUNW,qfe device.
Before you use the ndd utility to get or set a parameter for a qfe device, you must specify the device instance for the utility since there will be at least four SUNW,qfe devices.
Check the /etc/path_to_inst file to identify the instance associated with a particular device.
# grep qfe /etc/path_to_inst "/sbus@1f,0/SUNW,qfe@1,8c10000" 2 "qfe" "/sbus@1f,0/SUNW,qfe@1,8c00000" 1 "qfe" "/sbus@1f,0/SUNW,qfe@1,8c30000" 4 "qfe" "/sbus@1f,0/SUNW,qfe@1,8c20000" 3 "qfe"
In the example above, the four SUNW,qfe@x,1 instances are from a Sun Quad FastEthernet SBus adapter installed in slot 1. For clarity, the instance numbers are bold.
Use the instance number to select the device.
# ndd -set /dev/qfe instance instance#
The device remains selected until you change the selection.
You can use the ndd utility in two modes:
Non-interactive
Interactive
In non-interactive mode, you invoke the utility to execute a specific command. Once the command is executed, you exit the utility. In interactive mode, you can use the utility to get or set more than one parameter value. (Refer to the ndd (1M) man page for more information.)
This section describes how to modify and to display parameter values.
To modify a parameter value, use the -set option.
If you invoke the ndd utility with the -set option, the utility passes value, which must be specified down to the named /dev/qfe driver instance, and assigns it to the parameter:
# ndd -set /dev/qfe parameter value
To display the value of a parameter, specify the parameter name (and omit the value).
When you omit the -set option, a query operation is assumed and the utility queries the named driver instance, retrieves the value associated with the specified parameter, and prints it:
# ndd /dev/qfe parameter
To modify a parameter value in interactive mode, specify ndd /dev/qfe, as shown below.
The ndd utility then prompts you for the name of the parameter:
# ndd /dev/qfe name to get/set? (Enter the parameter name or ? to view all parameters)
After entering the parameter name, the ndd utility prompts you for the parameter value (see Table C-1 through Table C-8).
To list all the parameters supported by the qfe driver, type ndd /dev/qfe \?.
(See Table C-1 through Table C-8 for parameter descriptions.)
# ndd /dev/qfe \? ? (read only) transceiver_inuse (read only) link_status (read only) link_speed (read only) link_mode (read only) ipg1 (read and write) ipg2 (read and write) use_int_xcvr (read and write) pace_size (read and write) adv_autoneg_cap (read and write) adv_100fdx_cap (read and write) adv_100hdx_cap (read and write) adv_10fdx_cap (read and write) adv_10hdx_cap (read and write) autoneg_cap (read only) 100fdx_cap (read only) 100hdx_cap (read only) 10fdx_cap (read only) 10hdx_cap (read only) lp_autoneg_cap (read only) lp_100fdx_cap (read only) lp_100hdx_cap (read only) lp_10fdx_cap (read only) lp_10hdx_cap (read only) instance (read and write) lance_mode (read and write) ipg0 (read and write) #
This section describes how to set forced mode (not capable of auto-negotiation).
Select one of the following capabilities: adv_100fdx_cap, adv_100hdx_cap, adv_10fdx_cap, or adv_10hdx_cap, and set its value to 1.
If you select more than one of the local transceiver capabilities, the driver selects the one that is highest in the priority order (see the footnote from Table C-5).
Set the local transceiver capabilities advertised by the hardware to forced mode = 0, which is not capable of auto-negotiation: adv_autoneg_cap 0
Use the ndd utility as described in "Using the ndd Utility in Interactive Mode".
This section describes how to select at least one of the four local transceiver capabilities and set the mode to auto-negotiation.
Select at least one of the four capabilities (adv_100fdx_cap, adv_100hdx_cap, adv_10fdx_cap, adv_10hdx_cap) that you want to advertise to the remote system, and set its value to 1.
Set the local transceiver capabilities advertised by the hardware to 1, the auto-negotiation setting: adv_autoneg_cap 1
Use the ndd utility as described in "Using the ndd Utility in Interactive Mode".
To configure the qfe driver parameters for all SUNW,qfe devices in the system so that the parameter variables are always effective (even after rebooting the system), enter the parameter variables in the /etc/system file. When you reboot the system, the system reads the /etc/system file and sets these parameter variables in the qfe module in the operating system kernel.
Table C-9 lists the variables you can set in the /etc/system file.
Table C-9 Setting Variables in the /etc/system File
Parameter |
Variable |
---|---|
ipg1 |
qfe_ipg1 |
ipg2 |
qfe_ipg2 |
use_int_xcvr |
qfe_use_int_xcvr |
pace_size |
qfe_pace_size |
adv_autoneg_cap |
qfe_adv_autoneg_cap |
adv_100fdx_cap |
qfe_adv_100fdx_cap |
adv_100hdx_cap |
qfe_adv_100hdx_cap |
adv_10fdx_cap |
qfe_adv_10fdx_cap |
adv_10hdx_cap |
qfe_adv_10hdx_cap |
lance_mode |
qfe_lance_mode |
ipg0 |
qfe_ipg0 |
These parameter values, described in "Driver Parameter Values and Definitions", are applicable to all SUNW,qfe devices on the system. See Table C-1 through Table C-8 for the descriptions of these parameters.
Here's an example of setting parameters in a /etc/system file:
Become superuser.
Add the following lines to the /etc/system file:
set qfe:qfe_ipg1 = 10 set qfe:qfe_ipg2 = 5
Save the /etc/system file.
Save all files and exit all programs, then exit the windowing system.
Reboot the system by typing init 6 at the superuser prompt.
You can also specify the properties described in the section, "Setting Parameters in the /etc/system File"," on a per-device basis by creating a qfe.conf file in the /kernel/drv directory. The properties set in the qfe.conf file will override the parameters set in the /etc/system file. Use a qfe.conf file when you need to set a particular parameter for a device in the system. The parameters you set are read and write parameters that are listed in "Driver Parameter Values and Definitions".
The man pages for prtconf (1M), system (4) and driver.conf (4) include additional details. The next section shows an example of setting parameters in a qfe.conf file.
Invoke the prtconf -v command and pipe the output to the more command ( prtconf -v | more ) or redirect the output of the command to a file name ( prtconf -v > filename) and print the redirected file.
Find the section in the prtconf -v output for SUNW,qfe,instance #0, or SUNW,qfe,instance #1, and so on.
The output for SUNW,qfe,instance #0 for a Sun Ultra 1 Creator Series system follows:
SUNW,qfe, instance #0 Driver software properties: name <pm_norm_pwr> length <4> value <0x00000001>. name <pm_timestamp> length <4> value <0x30743b26>. Register Specifications: Bus Type=0xe, Address=0x8c00000, Size=108 Bus Type=0xe, Address=0x8c02000, Size=2000 Bus Type=0xe, Address=0x8c04000, Size=2000 Bus Type=0xe, Address=0x8c06000, Size=2000 Bus Type=0xe, Address=0x8c07000, Size=20
Become superuser.
Create the qfe.conf file in the /kernel/drv directory using a text editor and add lines similar to the following to the file:
Specify name="qfe" and class="sbus".
Use the reg property to specify the device, 0xe in this case. Use the value following Bus Type in the prtconf -v output.
Type the addresses followed by the specified sizes. Precede each size with 0x and leading zeros, as indicated in the following screen.
Set ipg1 and ipg2. Type a semicolon ( ; ) after the last value.
These parameters are set to 20 and 10, respectively, in this example. The ipg parameters are defined in Chapter 3.
name="qfe" class="sbus" reg=0xe,0x8c00000,0x00000108,0xe,0x8c02000,0x00002000,0xe, 0x8c04000,0x00002000,0xe,0x8c06000,0x00002000,0xe,0x8c07000, 0x00000020 ipg1=20 ipg2=10;
Save the qfe.conf file.
Save and close all files and exit all programs; exit the windowing system.
Halt and reboot the system by typing the init 6 command at the # prompt.