From owner-freebsd-bugs@FreeBSD.ORG Mon Jan 20 13:40:01 2014 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCF70BD4 for ; Mon, 20 Jan 2014 13:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B88D610CB for ; Mon, 20 Jan 2014 13:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id s0KDe0NI031566 for ; Mon, 20 Jan 2014 13:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id s0KDe0kp031563; Mon, 20 Jan 2014 13:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 20 Jan 2014 13:40:00 GMT Resent-Message-Id: <201401201340.s0KDe0kp031563@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aurelien Rougemont Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2217AAA1 for ; Mon, 20 Jan 2014 13:34:53 +0000 (UTC) Received: from oldred.freebsd.org (oldred.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0EA4F109B for ; Mon, 20 Jan 2014 13:34:53 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id s0KDYq0K021141 for ; Mon, 20 Jan 2014 13:34:52 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id s0KDYq7Z021140; Mon, 20 Jan 2014 13:34:52 GMT (envelope-from nobody) Message-Id: <201401201334.s0KDYq7Z021140@oldred.freebsd.org> Date: Mon, 20 Jan 2014 13:34:52 GMT From: Aurelien Rougemont To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: kern/185909: ALTQ activation problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jan 2014 13:40:01 -0000 >Number: 185909 >Category: kern >Synopsis: ALTQ activation problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jan 20 13:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Aurelien Rougemont >Release: freebsd10 svn://svn0.eu.freebsd.org/base/stable/10 r260830 >Organization: >Environment: FreeBSD syklone2.colorz.lan 10.0-PRERELEASE FreeBSD 10.0-PRERELEASE #1 r260504: Fri Jan 10 12:45:34 UTC 2014 root@syklone2.colorz.lan:/usr/obj/usr/src/sys/COLORZ amd64 >Description: I am trying to build a kernel and its klm with ALTQ support. I did build an amd64 kernel with the good options (cf how to repeat the problem for the exact configuration). The kernel is booting up but pfctl -f /etc/pf.conf reports : # pfctl -f /etc/pf.conf pfctl: igb0: driver does not support altq I dug a bit in the driver code and found this written in the /usr/src/sys/modules/igb/Makefile : # IGB_LEGACY_TX will override the stack if_transmit path and # instead use the older if_start non-multiqueue capable interface. # This might be desireable for testing, or to enable the use of # ALTQ. #CFLAGS += -DIGB_LEGACY_TX I Did try to build the kernel with this CFLAG (at the make.conf level, then modifiying the Makefile just in case). The build failed with this : >How-To-Repeat: Create a kernelconfig like this : include GENERIC ident COLORZ options ALTQ options ALTQ_CBQ # Class Based Queuing (CBQ) options ALTQ_RED # Random Early Detection (RED) options ALTQ_RIO # RED In/Out options ALTQ_HFSC # Hierarchical Packet Scheduler (HFSC) options ALTQ_PRIQ # Priority Queuing (PRIQ) options ALTQ_NOPCC # Required for SMP build and buildkernel gives : # make -s -j5 buildkernel [...] /usr/src/sys/modules/igb/../../dev/e1000/if_igb.c:2383:19: error: unused variable 'txr' [-Werror,-Wunused-variable] struct tx_ring *txr = adapter->tx_rings; ^ 1 error generated. >Fix: N/A >Release-Note: >Audit-Trail: >Unformatted: