13859Sml29623# 23859Sml29623# CDDL HEADER START 33859Sml29623# 43859Sml29623# The contents of this file are subject to the terms of the 53859Sml29623# Common Development and Distribution License (the "License"). 63859Sml29623# You may not use this file except in compliance with the License. 73859Sml29623# 83859Sml29623# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 93859Sml29623# or http://www.opensolaris.org/os/licensing. 103859Sml29623# See the License for the specific language governing permissions 113859Sml29623# and limitations under the License. 123859Sml29623# 133859Sml29623# When distributing Covered Code, include this CDDL HEADER in each 143859Sml29623# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 153859Sml29623# If applicable, add the following below this CDDL HEADER, with the 163859Sml29623# fields enclosed by brackets "[]" replaced with your own identifying 173859Sml29623# information: Portions Copyright [yyyy] [name of copyright owner] 183859Sml29623# 193859Sml29623# CDDL HEADER END 203859Sml29623# 213859Sml29623######################################################################### 223859Sml29623# 238661SSantwona.Behera@Sun.COM# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 243859Sml29623# Use is subject to license terms. 253859Sml29623# 263859Sml29623# 273859Sml29623# driver.conf file for Sun NIU 10Gb/1Gb Ethernet Driver (nxge) 283859Sml29623# 293859Sml29623# 303859Sml29623#---------------Link Configuration ---------------------- 313859Sml29623# The link parameters depend on the type of the card 323859Sml29623# and the port. 333859Sml29623# 10 gigabit related parameters ( i.e adv_10gfdx_cap) 343859Sml29623# apply only to 10gigabit ports. 353859Sml29623# Half duplex is not supported on any NIU card. 363859Sml29623# 373859Sml29623# adv-autoneg-cap 383859Sml29623# Advertise auto-negotiation capability. 393859Sml29623# default is 1 403859Sml29623# adv-autoneg-cap = 1; 413859Sml29623# 423859Sml29623# adv_10gfdx_cap 433859Sml29623# Advertise 10gbps Full duplex capability. 443859Sml29623# default is 1 453859Sml29623# adv_10gfdx_cap = 1; 463859Sml29623# 473859Sml29623# adv_1000fdx_cap 483859Sml29623# Advertise 1gbps Full duplex capability. 493859Sml29623# default is 1 503859Sml29623# adv_1000fdx_cap = 1; 513859Sml29623# 523859Sml29623# adv_100fdx_cap 533859Sml29623# Advertise 100mbps Full duplex capability. 543859Sml29623# default is 1 553859Sml29623# adv_100fdx_cap = 1; 563859Sml29623# 573859Sml29623# adv_10fdx_cap 583859Sml29623# Advertise 10mbps Full duplex capability. 593859Sml29623# default is 1 603859Sml29623# adv_10fdx_cap = 1; 613859Sml29623# 623859Sml29623# adv_asmpause_cap 633859Sml29623# Advertise Asymmetric pause capability. 643859Sml29623# default is 0 653859Sml29623# adv_asmpause_cap = 0; 663859Sml29623# 673859Sml29623# adv_pause_cap 683859Sml29623# Advertise pause capability. 693859Sml29623# default is 1 703859Sml29623# adv_pause_cap = 1; 713859Sml29623# 723859Sml29623#------- Receive DMA Configuration ---------------------------- 733859Sml29623# 743859Sml29623# rxdma-intr-time 753859Sml29623# Interrupts after this number of NIU hardware ticks have 763859Sml29623# elapsed since the last packet was received. 778661SSantwona.Behera@Sun.COM# (Default = 8, Minimum = 1). 783859Sml29623# 793859Sml29623# rxdma-intr-pkts 803859Sml29623# Interrupt after this number of packets have arrived since 818661SSantwona.Behera@Sun.COM# the last packet was serviced. 828661SSantwona.Behera@Sun.COM# (Default = 32, Minimum = 8). 833859Sml29623# 848661SSantwona.Behera@Sun.COM# Default Interrupt Blanking parameters: 853859Sml29623# 863859Sml29623# rxdma-intr-time = 8; 878661SSantwona.Behera@Sun.COM# rxdma-intr-pkts = 32; 888661SSantwona.Behera@Sun.COM# 898661SSantwona.Behera@Sun.COM# To turn off interrupt blanking, use the minimum values for both 908661SSantwona.Behera@Sun.COM# rxdma-intr-time and rxdma-intr-pkts. 913859Sml29623# 923859Sml29623# 933859Sml29623#------- Classification and Load Distribution Configuration ------ 943859Sml29623# 953859Sml29623# class-opt-****-*** 96*9005SSantwona.Behera@Sun.COM# These parameters define how each IP class is configured. 97*9005SSantwona.Behera@Sun.COM# They control how the flow template is constructed and how 98*9005SSantwona.Behera@Sun.COM# packets are distributed within RDC groups. 993859Sml29623# 1003859Sml29623# supported classes: 1013859Sml29623# class-opt-ipv4-tcp class-opt-ipv4-udp class-opt-ipv4-sctp 1023859Sml29623# class-opt-ipv4-ah class-opt-ipv6-tcp class-opt-ipv6-udp 1033859Sml29623# class-opt-ipv6-sctp class-opt-ipv6-ah 1043859Sml29623# 1053859Sml29623# Configuration bits (Thes following bits will be decoded 1063859Sml29623# by the driver as hex format). 1073859Sml29623# 1083859Sml29623# 0010: use MAC Port (for flow key) 1093859Sml29623# 0020: use L2DA (for flow key) 1103859Sml29623# 0040: use VLAN (for flow key) 1113859Sml29623# 0080: use proto (for flow key) 1123859Sml29623# 0100: use IP src addr (for flow key) 1133859Sml29623# 0200: use IP dest addr (for flow key) 1143859Sml29623# 0400: use Src Port (for flow key) 1153859Sml29623# 0800: use Dest Port (for flow key) 1163859Sml29623# 117*9005SSantwona.Behera@Sun.COM# The following uses L2DA, VLAN, IP proto, IP src and dest and TCP 118*9005SSantwona.Behera@Sun.COM# src and dest port for computing the flow key for IPv4 TCP packets. 119*9005SSantwona.Behera@Sun.COM# 120*9005SSantwona.Behera@Sun.COM# class-opt-ipv4-tcp = 0xfe0; 1213859Sml29623# 1226003Sml29623#------- Software LSO (large segment offload) support -------- 1236003Sml29623# To enable software LSO for all nxge interfaces, 1246003Sml29623#soft-lso-enable = 1; 1256003Sml29623# 1266003Sml29623# To disable software LSO for all nxge interfaces, 1276003Sml29623#soft-lso-enable = 0; 1286003Sml29623# 1296003Sml29623# Default software LSO is set to 0. 1306003Sml29623# Please refer to examples at the end of this file for 1316003Sml29623# enabling or disabling software LSO for a particular nxge interface. 1326003Sml29623# 1336003Sml29623# 1343859Sml29623# ------- How to set parameters for a particular interface -------- 1353859Sml29623# The example below shows how to locate the device path and set a 1363859Sml29623# parameter for a particular nxge interface. (Using jumbo support as 1373859Sml29623# an example) 1383859Sml29623# 1393859Sml29623# Use the following command to find out the device paths for nxge, 1403859Sml29623# more /etc/path_to_inst | grep nxge 1413859Sml29623# 1423859Sml29623# For example, if you see, 1433859Sml29623# "/pci@7c0/pci@0/pci@8/network@0" 0 "nxge" 1443859Sml29623# "/pci@7c0/pci@0/pci@8/network@0,1" 1 "nxge" 1453859Sml29623# "/pci@7c0/pci@0/pci@8/network@0,2" 2 "nxge" 1463859Sml29623# "/pci@7c0/pci@0/pci@8/network@0,3" 3 "nxge" 1473859Sml29623# 1486003Sml29623# Use the above path_to_inst file as an example to enable software LSO 1496003Sml29623# for port 0 and 1, and disable software LSO for port 2 and 3. 1506003Sml29623# 1516003Sml29623# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0" 1526003Sml29623# soft-lso-enable = 1; 1536003Sml29623# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,1" 1546003Sml29623# soft-lso-enable = 1; 1556003Sml29623# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,2" 1566003Sml29623# soft-lso-enable = 0; 1576003Sml29623# name = "pciex108e,abcd" parent = "/pci@7c0/pci@0/pci@8" unit-address = "0,3" 1586003Sml29623# soft-lso-enable = 0; 1596003Sml29623# 1606003Sml29623# 1616003Sml29623# If the path_to_inst file is: 1626003Sml29623# 1636003Sml29623# "/niu@80/network@0" 0 "nxge" 1646003Sml29623# "/niu@80/network@1" 1 "nxge" 1656003Sml29623# 1666003Sml29623# Enable software lso for port 0, and disable software LSO for port 1 1676003Sml29623# 1686003Sml29623#name="SUNW,niusl" parent="/niu@80" unit-address="0" soft-lso-enable=1; 1696003Sml29623#name="SUNW,niusl" parent="/niu@80" unit-address="1" soft-lso-enable=0; 170