xref: /titanic_41/usr/src/uts/common/io/nxge/nxge.conf (revision a18dc42fc967d11feba9b8be61c6727dc6c56b48)
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 2008 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#ident	"%Z%%M%	%I%	%E% SMI"
27#
28#
29# driver.conf file for Sun NIU 10Gb/1Gb Ethernet Driver (nxge)
30#
31#
32#---------------Link Configuration ----------------------
33#	The link parameters depend on the type of the card
34#	and the port.
35#	10 gigabit related parameters ( i.e adv_10gfdx_cap)
36#	apply only to 10gigabit ports.
37#	Half duplex is not supported on any NIU card.
38#
39# 	adv-autoneg-cap
40#		Advertise auto-negotiation capability.
41#		default is 1
42# adv-autoneg-cap = 1;
43#
44#	adv_10gfdx_cap
45#		Advertise 10gbps Full duplex  capability.
46#		default is 1
47# adv_10gfdx_cap = 1;
48#
49#	adv_1000fdx_cap
50#		Advertise 1gbps Full duplex  capability.
51#		default is 1
52# adv_1000fdx_cap = 1;
53#
54#	adv_100fdx_cap
55#		Advertise 100mbps Full duplex  capability.
56#		default is 1
57# adv_100fdx_cap = 1;
58#
59#	adv_10fdx_cap
60#		Advertise 10mbps Full duplex  capability.
61#		default is 1
62# adv_10fdx_cap = 1;
63#
64#	adv_asmpause_cap
65#		Advertise Asymmetric pause capability.
66#		default is 0
67# adv_asmpause_cap = 0;
68#
69#	adv_pause_cap
70#		Advertise pause capability.
71#		default is 1
72# adv_pause_cap = 1;
73#
74#
75#------- Jumbo frame support ---------------------------------
76# To enable jumbo support for all nxge interfaces,
77# accept_jumbo = 1;
78#
79# To disable jumbo support for all nxge interfaces,
80# accept_jumbo = 0;
81#
82# Default is 0.  See the example at the end of this file for
83# enabling or disabling jumbo for a particular nxge interface.
84#
85#
86#------- Receive DMA Configuration ----------------------------
87#
88#  rxdma-intr-time
89#	Interrupts after this number of NIU hardware ticks have
90#	elapsed since the last packet was received.
91#	A value of zero means no time blanking (Default = 8).
92#
93# rxdma-intr-pkts
94#	Interrupt after this number of packets have arrived since
95#	the last packet was serviced. A value of zero indicates
96#	no packet blanking (Default = 20).
97#
98# Default Interrupt Blanking parameters.
99#
100# rxdma-intr-time = 8;
101# rxdma-intr-pkts = 20;
102#
103#
104#------- Classification and Load Distribution Configuration ------
105#
106# class-opt-****-***
107# 	These variables define how each IP class is configured.
108#	Configuration options range from whether TCAM lookup ie
109#	is enabled to flow hash generation.
110# 	This parameters also control how the flow template is
111#	 constructed and how packet is distributed within RDC
112#	groups.
113#
114#	supported classes:
115#	class-opt-ipv4-tcp class-opt-ipv4-udp class-opt-ipv4-sctp
116#	class-opt-ipv4-ah class-opt-ipv6-tcp class-opt-ipv6-udp
117#	class-opt-ipv6-sctp class-opt-ipv6-ah
118#
119#	Configuration bits (Thes following bits will be decoded
120#	by the driver as hex format).
121#
122# 	0010:		use MAC Port (for flow key)
123#	0020:		use L2DA (for flow key)
124#	0040:		use VLAN (for flow key)
125#	0080:		use proto (for flow key)
126#	0100:		use IP src addr (for flow key)
127#	0200:		use IP dest addr (for flow key)
128#	0400:		use Src Port (for flow key)
129#	0800:		use Dest Port (for flow key)
130#
131# class-opt-ipv4-tcp = fe0;
132#
133#------- Software LSO (large segment offload) support --------
134# To enable software LSO for all nxge interfaces,
135#soft-lso-enable = 1;
136#
137# To disable software LSO for all nxge interfaces,
138#soft-lso-enable = 0;
139#
140# Default software LSO is set to 0.
141# Please refer to examples at the end of this file for
142# enabling or disabling software LSO for a particular nxge interface.
143#
144#
145# ------- How to set parameters for a particular interface --------
146# The example below shows how to locate the device path and set a
147# parameter for a particular nxge interface. (Using jumbo support as
148# an example)
149#
150# Use the following command to find out the device paths for nxge,
151#       more /etc/path_to_inst | grep nxge
152#
153# For example, if you see,
154#       "/pci@7c0/pci@0/pci@8/network@0" 0 "nxge"
155#       "/pci@7c0/pci@0/pci@8/network@0,1" 1 "nxge"
156#       "/pci@7c0/pci@0/pci@8/network@0,2" 2 "nxge"
157#       "/pci@7c0/pci@0/pci@8/network@0,3" 3 "nxge"
158#
159# then you can enable jumbo for ports 0 and 1 and disable jumbo for ports 2
160# and 3 as follows,
161#
162# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
163# accept_jumbo = 1;
164# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
165# accept_jumbo = 1;
166# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
167# accept_jumbo = 0;
168# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
169# accept_jumbo = 0;
170#
171# Use the above path_to_inst file as an example to enable software LSO
172# for port 0 and 1, and disable software LSO for port 2 and 3.
173#
174# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
175# soft-lso-enable = 1;
176# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
177# soft-lso-enable = 1;
178# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
179# soft-lso-enable = 0;
180# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
181# soft-lso-enable = 0;
182#
183#
184# If the path_to_inst file is:
185#
186#	"/niu@80/network@0" 0 "nxge"
187#	"/niu@80/network@1" 1 "nxge"
188#
189# Enable software lso for port 0, and disable software LSO for port 1
190#
191#name="SUNW,niusl" parent="/niu@80" unit-address="0" soft-lso-enable=1;
192#name="SUNW,niusl" parent="/niu@80" unit-address="1" soft-lso-enable=0;
193