xref: /titanic_51/usr/src/uts/common/io/nxge/nxge.conf (revision 63251bc7f1ca38259078c48e316fee4ed66d4e93)
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#
73#------- Jumbo frame support ---------------------------------
74# To enable jumbo support for all nxge interfaces,
75# accept_jumbo = 1;
76#
77# To disable jumbo support for all nxge interfaces,
78# accept_jumbo = 0;
79#
80# Default is 0.  See the example at the end of this file for
81# enabling or disabling jumbo for a particular nxge interface.
82#
83#
84#------- Receive DMA Configuration ----------------------------
85#
86#  rxdma-intr-time
87#	Interrupts after this number of NIU hardware ticks have
88#	elapsed since the last packet was received.
89#	(Default = 8, Minimum = 1).
90#
91# rxdma-intr-pkts
92#	Interrupt after this number of packets have arrived since
93#	the last packet was serviced.
94#	(Default = 32, Minimum = 8).
95#
96# Default Interrupt Blanking parameters:
97#
98# rxdma-intr-time = 8;
99# rxdma-intr-pkts = 32;
100#
101# To turn off interrupt blanking, use the minimum values for both
102# rxdma-intr-time and rxdma-intr-pkts.
103#
104#
105#------- Classification and Load Distribution Configuration ------
106#
107# class-opt-****-***
108# 	These parameters define how each IP class is configured.
109# 	They control how the flow template is constructed and how
110#	packets are distributed within RDC groups.
111#
112#	supported classes:
113#	class-opt-ipv4-tcp class-opt-ipv4-udp class-opt-ipv4-sctp
114#	class-opt-ipv4-ah class-opt-ipv6-tcp class-opt-ipv6-udp
115#	class-opt-ipv6-sctp class-opt-ipv6-ah
116#
117#	Configuration bits (Thes following bits will be decoded
118#	by the driver as hex format).
119#
120# 	0010:		use MAC Port (for flow key)
121#	0020:		use L2DA (for flow key)
122#	0040:		use VLAN (for flow key)
123#	0080:		use proto (for flow key)
124#	0100:		use IP src addr (for flow key)
125#	0200:		use IP dest addr (for flow key)
126#	0400:		use Src Port (for flow key)
127#	0800:		use Dest Port (for flow key)
128#
129# The following uses L2DA, VLAN, IP proto, IP src and dest and TCP
130# src and dest port for computing the flow key for IPv4 TCP packets.
131#
132# class-opt-ipv4-tcp = 0xfe0;
133#
134#------- Software LSO (large segment offload) support --------
135# To enable software LSO for all nxge interfaces,
136#soft-lso-enable = 1;
137#
138# To disable software LSO for all nxge interfaces,
139#soft-lso-enable = 0;
140#
141# Default software LSO is set to 0.
142# Please refer to examples at the end of this file for
143# enabling or disabling software LSO for a particular nxge interface.
144#
145#
146# ------- How to set parameters for a particular interface --------
147# The example below shows how to locate the device path and set a
148# parameter for a particular nxge interface. (Using jumbo support as
149# an example)
150#
151# Use the following command to find out the device paths for nxge,
152#       more /etc/path_to_inst | grep nxge
153#
154# For example, if you see,
155#       "/pci@7c0/pci@0/pci@8/network@0" 0 "nxge"
156#       "/pci@7c0/pci@0/pci@8/network@0,1" 1 "nxge"
157#       "/pci@7c0/pci@0/pci@8/network@0,2" 2 "nxge"
158#       "/pci@7c0/pci@0/pci@8/network@0,3" 3 "nxge"
159#
160# then you can enable jumbo for ports 0 and 1 and disable jumbo for ports 2
161# and 3 as follows,
162#
163# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
164# accept_jumbo = 1;
165# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
166# accept_jumbo = 1;
167# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
168# accept_jumbo = 0;
169# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
170# accept_jumbo = 0;
171#
172# Use the above path_to_inst file as an example to enable software LSO
173# for port 0 and 1, and disable software LSO for port 2 and 3.
174#
175# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0"
176# soft-lso-enable = 1;
177# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1"
178# soft-lso-enable = 1;
179# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2"
180# soft-lso-enable = 0;
181# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3"
182# soft-lso-enable = 0;
183#
184#
185# If the path_to_inst file is:
186#
187#	"/niu@80/network@0" 0 "nxge"
188#	"/niu@80/network@1" 1 "nxge"
189#
190# Enable software lso for port 0, and disable software LSO for port 1
191#
192#name="SUNW,niusl" parent="/niu@80" unit-address="0" soft-lso-enable=1;
193#name="SUNW,niusl" parent="/niu@80" unit-address="1" soft-lso-enable=0;
194