c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# CDDL HEADER START
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The contents of this file are subject to the terms of the
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Common Development and Distribution License (the "License").
c869993e79c1eafbec61a56bf6cea848fe754c71xy# You may not use this file except in compliance with the License.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# or http://www.opensolaris.org/os/licensing.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# See the License for the specific language governing permissions
c869993e79c1eafbec61a56bf6cea848fe754c71xy# and limitations under the License.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# When distributing Covered Code, include this CDDL HEADER in each
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# If applicable, add the following below this CDDL HEADER, with the
c869993e79c1eafbec61a56bf6cea848fe754c71xy# fields enclosed by brackets "[]" replaced with your own identifying
c869993e79c1eafbec61a56bf6cea848fe754c71xy# information: Portions Copyright [yyyy] [name of copyright owner]
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# CDDL HEADER END
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# Copyright(c) 2007-2010 Intel Corporation. All rights reserved.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Driver.conf file for Intel 1Gb ethernet driver (igb)
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# -------------------- Link Configuration --------------------
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The parameters of link configuration:
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_autoneg_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of auto-negotiation.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_1000fdx_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of 1000Mbps full duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_100fdx_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of 100Mbps full duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_100hdx_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of 100Mbps half duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_10fdx_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of 10Mbps full duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_10hdx_cap
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Advertise capability of 10Mbps half duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0, 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# There are two methods to configure the link:
c869993e79c1eafbec61a56bf6cea848fe754c71xy# autonegotiation or forced link
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# The parameter "adv_autoneg_cap" is used to enable autonegotiation or disable
c869993e79c1eafbec61a56bf6cea848fe754c71xy# it (forced link mode).
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# If autonegotiation is enabled (the default mode), all the "adv_*_cap"
c869993e79c1eafbec61a56bf6cea848fe754c71xy# parameters control which capabilities are advertised to the partner. The
c869993e79c1eafbec61a56bf6cea848fe754c71xy# default is to advertise all the capabilities that the hardware supports.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The advertised capabilities can also be restricted to a subset. It is not
c869993e79c1eafbec61a56bf6cea848fe754c71xy# possible to advertise a capability that the hardware does not support.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The autonegotiation process will then automatically select the fastest speed/
c869993e79c1eafbec61a56bf6cea848fe754c71xy# duplex mode supported by both partners.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# If autonegotiation is disabled (forced link mode), the link speed/duplex is
c869993e79c1eafbec61a56bf6cea848fe754c71xy# determined by the first link capability that is enabled, in highest-to-lowest
c869993e79c1eafbec61a56bf6cea848fe754c71xy# speed/duplex order.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# For example, if adv_1000fdx_cap is enabled, all other values will be ignored;
c869993e79c1eafbec61a56bf6cea848fe754c71xy# to force 10hdx mode, all the faster modes must be explicitly disabled.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Note:
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 1. 1000M half duplex is not supported with igb.
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 2. 1000M speed is not supported with the forced link mode (the value of
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_1000fdx_cap will be ignored).
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 3. The forced link mode may result in a non-working link or a half duplex
c869993e79c1eafbec61a56bf6cea848fe754c71xy# link. If forced link mode is used, both the partners should be forced to
c869993e79c1eafbec61a56bf6cea848fe754c71xy# the same link/speed mode.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_autoneg_cap = 1;
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_1000fdx_cap = 1;
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_100fdx_cap = 1;
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_100hdx_cap = 1;
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_10fdx_cap = 1;
6d1cdc09693601c358cdcd1bbd6a462920ac89adGuoqing Zhu# adv_10hdx_cap = 1;
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# -------------------- Jumbo Frame --------------------
c869993e79c1eafbec61a56bf6cea848fe754c71xy# default_mtu
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The size of the default MTU (payload without the ethernet header)
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 1500 - 9000
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 1500
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# default_mtu = 1500;
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# -------------------- Flow Control --------------------
c869993e79c1eafbec61a56bf6cea848fe754c71xy# flow_control
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Ethernet flow control
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 0 - Disable
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 1 - Receive only
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 2 - Transmit only
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 3 - Receive and transmit
c869993e79c1eafbec61a56bf6cea848fe754c71xy# 4 - Use NVROM-programmed factory default setting
c869993e79c1eafbec61a56bf6cea848fe754c71xy# default value: 3
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# flow_control = 3;
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# -------------------- Transmit/Receive Queues --------------------
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# tx_ring_size
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The number of the transmit descriptors per transmit queue
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 64 - 4096
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 512
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# rx_ring_size
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The number of the receive descriptors per receive queue
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Allowed values: 64 - 4096
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Default value: 512
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# mr_enable
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Enable multiple rx queues and tx queues
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Allowed values: 0, 1
cf8dcc9bbabedca41ecfee13dec8172104e99968zhefeng xu - Sun Microsystems - Beijing China# Default value: 0
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# rx_group_number
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# The number of the receive ring groups
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Allowed values: 1 - 4
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Default value: 1
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng#
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# Note: If the specified values of the rx_group_number are not supported by
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng# hardware, the rx_group_number will be downgrade to an acceptable value.
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# -------- How to set parameters for a particular interface ---------
c869993e79c1eafbec61a56bf6cea848fe754c71xy# The example below shows how to locate the device path and set a parameter
c869993e79c1eafbec61a56bf6cea848fe754c71xy# for a particular igb interface. (Using flow_control as an example)
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# Use the following command to find out the device paths for igb,
c869993e79c1eafbec61a56bf6cea848fe754c71xy# more /etc/path_to_inst | grep igb
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# For example, if you see,
c869993e79c1eafbec61a56bf6cea848fe754c71xy# "/pci@0,0/pci10de,5d@d/pci8086,0@0" 0 "igb"
c869993e79c1eafbec61a56bf6cea848fe754c71xy# "/pci@0,0/pci10de,5d@d/pci8086,0@0,1" 1 "igb"
c869993e79c1eafbec61a56bf6cea848fe754c71xy#
c869993e79c1eafbec61a56bf6cea848fe754c71xy# name = "pciex8086,10a7" parent = "/pci@0,0/pci10de,5d@d" unit-address = "0"
c869993e79c1eafbec61a56bf6cea848fe754c71xy# flow_control = 1;
c869993e79c1eafbec61a56bf6cea848fe754c71xy# name = "pciex8086,10a7" parent = "/pci@0,0/pci10de,5d@d" unit-address = "0,1"
c869993e79c1eafbec61a56bf6cea848fe754c71xy# flow_control = 3;