xref: /titanic_41/usr/src/uts/common/io/nxge/nxge.conf (revision 6d24d8e5e4f6a2d14992d9392981d8a16d695aec)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#########################################################################
22#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#
27# driver.conf file for Sun NIU 10Gb/1Gb Ethernet Driver (nxge)
28#
29#
30#---------------Link Configuration ----------------------
31#	The link parameters depend on the type of the card
32#	and the port.
33#	10 gigabit related parameters ( i.e adv_10gfdx_cap)
34#	apply only to 10gigabit ports.
35#	Half duplex is not supported on any NIU card.
36#
37# 	adv-autoneg-cap
38#		Advertise auto-negotiation capability.
39#		default is 1
40# adv-autoneg-cap = 1;
41#
42#	adv_10gfdx_cap
43#		Advertise 10gbps Full duplex  capability.
44#		default is 1
45# adv_10gfdx_cap = 1;
46#
47#	adv_1000fdx_cap
48#		Advertise 1gbps Full duplex  capability.
49#		default is 1
50# adv_1000fdx_cap = 1;
51#
52#	adv_100fdx_cap
53#		Advertise 100mbps Full duplex  capability.
54#		default is 1
55# adv_100fdx_cap = 1;
56#
57#	adv_10fdx_cap
58#		Advertise 10mbps Full duplex  capability.
59#		default is 1
60# adv_10fdx_cap = 1;
61#
62#	adv_asmpause_cap
63#		Advertise Asymmetric pause capability.
64#		default is 0
65# adv_asmpause_cap = 0;
66#
67#	adv_pause_cap
68#		Advertise pause capability.
69#		default is 1
70# adv_pause_cap = 1;
71#
72#------- Receive DMA Configuration ----------------------------
73#
74#  rxdma-intr-time
75#	Interrupts after this number of NIU hardware ticks have
76#	elapsed since the last packet was received.
77#	(Default = 8, Minimum = 1).
78#
79# rxdma-intr-pkts
80#	Interrupt after this number of packets have arrived since
81#	the last packet was serviced.
82#	(Default = 32, Minimum = 8).
83#
84# Default Interrupt Blanking parameters:
85#
86# rxdma-intr-time = 8;
87# rxdma-intr-pkts = 32;
88#
89# To turn off interrupt blanking, use the minimum values for both
90# rxdma-intr-time and rxdma-intr-pkts.
91#
92#
93#------- Classification and Load Distribution Configuration ------
94#
95# class-opt-****-***
96# 	These parameters define how each IP class is configured.
97# 	They control how the flow template is constructed and how
98#	packets are distributed within RDC groups.
99#
100#	supported classes:
101#	class-opt-ipv4-tcp class-opt-ipv4-udp class-opt-ipv4-sctp
102#	class-opt-ipv4-ah class-opt-ipv6-tcp class-opt-ipv6-udp
103#	class-opt-ipv6-sctp class-opt-ipv6-ah
104#
105#	Configuration bits (Thes following bits will be decoded
106#	by the driver as hex format).
107#
108# 	0010:		use MAC Port (for flow key)
109#	0020:		use L2DA (for flow key)
110#	0040:		use VLAN (for flow key)
111#	0080:		use proto (for flow key)
112#	0100:		use IP src addr (for flow key)
113#	0200:		use IP dest addr (for flow key)
114#	0400:		use Src Port (for flow key)
115#	0800:		use Dest Port (for flow key)
116#
117# The following uses L2DA, VLAN, IP proto, IP src and dest and TCP
118# src and dest port for computing the flow key for IPv4 TCP packets.
119#
120# class-opt-ipv4-tcp = 0xfe0;
121#
122#------- Software LSO (large segment offload) support --------
123# To enable software LSO for all nxge interfaces,
124#soft-lso-enable = 1;
125#
126# To disable software LSO for all nxge interfaces,
127#soft-lso-enable = 0;
128#
129# Default software LSO is set to 0.
130# Please refer to examples at the end of this file for
131# enabling or disabling software LSO for a particular nxge interface.
132#
133#
134# ------- How to set parameters for a particular interface --------
135# The example below shows how to locate the device path and set a
136# parameter for a particular nxge interface. (Using jumbo support as
137# an example)
138#
139# Use the following command to find out the device paths for nxge,
140#       more /etc/path_to_inst | grep nxge
141#
142# For example, if you see,
143#       "/pci@7c0/pci@0/pci@8/network@0" 0 "nxge"
144#       "/pci@7c0/pci@0/pci@8/network@0,1" 1 "nxge"
145#       "/pci@7c0/pci@0/pci@8/network@0,2" 2 "nxge"
146#       "/pci@7c0/pci@0/pci@8/network@0,3" 3 "nxge"
147#
148# Use the above path_to_inst file as an example to enable software LSO
149# for port 0 and 1, and disable software LSO for port 2 and 3.
150#
151# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
152# soft-lso-enable = 1;
153# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
154# soft-lso-enable = 1;
155# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
156# soft-lso-enable = 0;
157# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
158# soft-lso-enable = 0;
159#
160#
161# If the path_to_inst file is:
162#
163#	"/niu@80/network@0" 0 "nxge"
164#	"/niu@80/network@1" 1 "nxge"
165#
166# Enable software lso for port 0, and disable software LSO for port 1
167#
168#name="SUNW,niusl" parent="/niu@80" unit-address="0" soft-lso-enable=1;
169#name="SUNW,niusl" parent="/niu@80" unit-address="1" soft-lso-enable=0;
170