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