xref: /titanic_44/usr/src/uts/common/io/nxge/nxge.conf (revision 40e5e17b3361b3eea56a9723071c406894a20b78)
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 2007 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# ------- How to set parameters for a particular interface --------
134# The example below shows how to locate the device path and set a
135# parameter for a particular nxge interface. (Using jumbo support as
136# an example)
137#
138# Use the following command to find out the device paths for nxge,
139#       more /etc/path_to_inst | grep nxge
140#
141# For example, if you see,
142#       "/pci@7c0/pci@0/pci@8/network@0" 0 "nxge"
143#       "/pci@7c0/pci@0/pci@8/network@0,1" 1 "nxge"
144#       "/pci@7c0/pci@0/pci@8/network@0,2" 2 "nxge"
145#       "/pci@7c0/pci@0/pci@8/network@0,3" 3 "nxge"
146#
147# then you can enable jumbo for ports 0 and 1 and disable jumbo for ports 2
148# and 3 as follows,
149#
150# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
151# accept_jumbo = 1;
152# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
153# accept_jumbo = 1;
154# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
155# accept_jumbo = 0;
156# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
157# accept_jumbo = 0;
158