From owner-freebsd-current@FreeBSD.ORG Tue Jul 21 18:53:00 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF1F4106566C for ; Tue, 21 Jul 2009 18:53:00 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id 86CB18FC08 for ; Tue, 21 Jul 2009 18:53:00 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from [172.31.193.10] (cpe-075-177-134-250.nc.res.rr.com [75.177.134.250]) (authenticated bits=0) by duke.cs.duke.edu (8.14.2/8.14.2) with ESMTP id n6LIqxK9020555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 21 Jul 2009 14:52:59 -0400 (EDT) X-DKIM: Sendmail DKIM Filter v2.8.3 duke.cs.duke.edu n6LIqxK9020555 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cs.duke.edu; s=mail; t=1248202379; bh=RNPxJlBsykS9D04+sJdozUPZSlwgRSaXQ0L8XeEzF5k=; h=Message-ID:Date:From:MIME-Version:To:Subject:Content-Type: Content-Transfer-Encoding; b=ALBxdkIdUI18rJC5tLOgKDNLIJXRYQBJb+BKjPp9AluK5P5NW/kfahQAqKrpjl+QP mgEbJ+F8gX6vxNRO1xZcHtJu76BHa/IaCcUEb00UA6F4CbDFKTgIek2bF9TG/L/1BE AOLapaqySZezOFp47fSR8V1oCBL8Slr4CBPb3hv0= Message-ID: <4A660E83.6080004@cs.duke.edu> Date: Tue, 21 Jul 2009 14:52:51 -0400 From: Andrew Gallatin User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: current@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: loader.conf ignores setting variable ending in _type X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2009 18:53:01 -0000 Hi, I maintain the mxge (10GbE) driver. A user complained to me that one of my driver's tunables was ignored when he set it in /boot/loader.conf. I reproduced his problem both on -current and 7.2. I think there may be some quirk which is causing the loader to ignore this variable, but my 4th skills are non-existent, and I'm looking for some help. To reproduce this bug, I used a loader.conf which looks like this: console=comconsole if_mxge_load="YES" mxge_eth_z8e_load="YES" mxge_rss_eth_z8e_load="YES" hw.mxge.rss_hash_type="2" hw.mxge.max_slices="2" After interrupting the boot, I could confirm that rss_hash_type was not set: .................................................................. Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 8 seconds... Type '?' for a list of commands, 'help' for more detailed help. OK show hw.mxge.max_slices 2 OK show hw.mxge.rss_hash_type variable 'hw.mxge.rss_hash_type' not found ................................................................... I have no problem setting hw.mxge.rss_hash_type while the machine is up via kenv. Also, it seems to stick when set manually from the loader. After poking around for quite a while, I noticed that the loader refuses to honor any variable ending in _type loaded from loader.conf. Is this because the suffix "_type" (for module_type) is somehow reserved and I should not be using a tunable ending in _type Or is this a bug in the loader? Thanks, Drew