From owner-freebsd-pf@freebsd.org Mon Aug 22 19:08:45 2016 Return-Path: Delivered-To: freebsd-pf@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C14ECBC2329 for ; Mon, 22 Aug 2016 19:08:45 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: from mail-yb0-x231.google.com (mail-yb0-x231.google.com [IPv6:2607:f8b0:4002:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7F81C1387 for ; Mon, 22 Aug 2016 19:08:45 +0000 (UTC) (envelope-from ncrogers@gmail.com) Received: by mail-yb0-x231.google.com with SMTP id e31so42920992ybi.3 for ; Mon, 22 Aug 2016 12:08:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=63tfm/vOT3mEJV7SCe9zrnLPRx992PXnoAT3Kuv4qIw=; b=w4F9KEpuYELReSnWm+pxezXh/msdDqKIljlQp88kWieSzdhPhlthNTPAEDHc5K+0EZ +5tAbtD8Y/9vQ6xplFSWTGR+z1CigUkZS4WvIVfq7OnvjJjzTZV1/4IBvA14ziSsCPRm ifMSK7kX/9zcdKJlDqGzOQIvjqxwHp3y8ErrACTy+5Q2wl3FNtIoripTL7hWCfZd5uf5 4p4QE23fUigjy/9CxviP0En2Y/cMB3LCp8GCb4MTk/1GmUtvK1kI4QXqmzbaGjwJufyX IvQIcbV3Xgba6qoTpoItvdvSrXt8ig4T1mygWGWzjDesdJtvT+zP28kdmnS/VNL9pwXe LO1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=63tfm/vOT3mEJV7SCe9zrnLPRx992PXnoAT3Kuv4qIw=; b=dGFcr8HD318ie3Ug6PiAC5y2VFM4E7bTSF+670ABAsaXH6QtzhXOIhhXV6sJccxJzU ttxGDmWlvQCMyRkBYmNeFiILLJFjTEKNR+YgvUHYgnuLtlhLwgGcH14lQlYHT8+w8VFh dHxzG8FDag/KjMnVOUXQAaCq73mTflyswGIwXQsXhzPAF3gIkD2R1UvsKQgOXBguiGjW xUzR46Pqsj3PuEWWNRjAnqwL0cS4OkxeAm++ZIcaTRFzFJOOepji8tB7mDuk80lLFkPJ 7r9QZp4zHmwKX/BpFP96vvSXH1UvRHB02lglbkbWnhVpLUxrE2XrilrlnYMZ9imNg8k1 HW8A== X-Gm-Message-State: AEkooutM/TlxRPEHG8aQSfbdCt9gLQlC+I2qEyRbAuNU9sLbkbcDWnYtgCEeA55gmALjEK19IGDAL8Zw8F/eaA== X-Received: by 10.37.63.132 with SMTP id m126mr17051672yba.153.1471892924744; Mon, 22 Aug 2016 12:08:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.229.65 with HTTP; Mon, 22 Aug 2016 12:08:44 -0700 (PDT) In-Reply-To: References: From: Nick Rogers Date: Mon, 22 Aug 2016 13:08:44 -0600 Message-ID: Subject: Re: pfctl: igb2: driver does not support altq To: =?UTF-8?Q?Andr=C3=A9_S=2E_Almeida?= Cc: freebsd-pf@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2016 19:08:45 -0000 On Mon, Aug 22, 2016 at 6:51 AM, Andr=C3=A9 S. Almeida wrote: > Hello, > > I have 10.3 RELEASE and I am having problem with driver of igb device tha= t > does not support ALTQ. > > I already compiled the kernel with IGB_LEGACY_TX, but when I try to use > ALTQ on igb interface, I get the message below. > > # pfctl -f fw_rules.conf > pfctl: igb2: driver does not support altq > > As you can see below, when I compile the kernel, the driver is compiled > correctly with IGB_LEGACY_TX. > > cc -O2 -pipe -DSMP -DIGB_LEGACY_TX -fno-strict-aliasing -Werror -D_KERNE= L > -DKLD_MODULE -nostdinc -I/usr/src/sys/modules/igb/../../dev/e1000 -I. -I= @ > -I@/contrib/altq -fno-common -fno-omit-frame-pointer > -mno-omit-leaf-frame-pointer -mno-aes -mno-avx -mcmodel=3Dkernel > -mno-red-zone -mno-mmx -mno-sse -msoft-float > -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector > -std=3Diso9899:1999 -Qunused-arguments -fstack-protector -Wall > -Wredundant-decls -Wnested-externs -Wstrict-prototypes > -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef > -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs > -fdiagnostics-show-option -Wno-error-tautological-compare > -Wno-error-empty-body -Wno-error-parentheses-equality > -Wno-error-unused-function -c > /usr/src/sys/modules/igb/../../dev/e1000/e1000_i210.c -o e1000_i210.o > > Is there anything that I can do to solve this? > In my experience there is no way to enable IGB_LEGACY_TX without modifying the driver files directly by adding a #define IGB_LEGACY_TX. I am not sure why, but including it as a compiler option (-DIGB_LEGACY_TX) does not work when building the kernel. I use this basic little script... echo 'Performing IGB_LEGACY_TX mod' cd /usr/src/sys/dev/e1000 for ext in c h do echo '#define IGB_LEGACY_TX' > if_igb.$ext.new cat if_igb.$ext >> if_igb.$ext.new mv -v if_igb.$ext.new if_igb.$ext done echo Here is a related PR to make it a kernel tunable. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D194197 _______________________________________________ > freebsd-pf@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" >