From owner-freebsd-pf@freebsd.org Wed Aug 24 15:30:58 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 36A0EBC4194 for ; Wed, 24 Aug 2016 15:30:58 +0000 (UTC) (envelope-from andre@andre.adm.br) Received: from mail-ua0-x236.google.com (mail-ua0-x236.google.com [IPv6:2607:f8b0:400c:c08::236]) (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 EBFDB1E1B for ; Wed, 24 Aug 2016 15:30:57 +0000 (UTC) (envelope-from andre@andre.adm.br) Received: by mail-ua0-x236.google.com with SMTP id k90so34512984uak.1 for ; Wed, 24 Aug 2016 08:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andre-adm-br.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=Xxst/774WD1teRLDOg7U5xVLZU+TO2ceglowV3nZNEk=; b=sGkc3ByLGqEvBl3AMYJ66nP6nShzUpv+Va/o2uGj2gEfBX7QCLbpboYSGw/6zHPNdR C9n4JzWVI45InVAEJmjjgmmWet6UOrRXN7Hqa4CofqXIVSfwt77QR2U4s/NP88Xk6dOy crV+M2FDU8EjvrtVlzs0vrCxGW6lm83MvLEmzDA+1O+xHPVZmHjH1Ms4kpxsRGwkC+9G P6mAMlodRJnOjKowFwnNA8/qqStuUTCpJezlIedps4rZnA6BD/M0X7JobwQUNGXAdqOp JQA6PrQEaqX9laSToh8pii2mOqSnKNr2aQE66o3VBkz5NLyVqh77nWEdEHNQZkzft3an 8LjA== 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; bh=Xxst/774WD1teRLDOg7U5xVLZU+TO2ceglowV3nZNEk=; b=QHeYotEOotTLwjjR1PxTbqO25VoLVpn/PUaWxcYF6PRIlENMeXOtvVauTpSxbriCO9 d1WhXHXDVl1OLUHMeAS7M4v4sUgp7/aBxXq4I4CtsIsIw/WKghGkoBGBtGXXKGx55Tjf FrDbVYtsQNKxEQtJWYn2ML9JCrDYUkC/KNDY8EHUt0/KgQZpzacprPKQ+hkqYeV7ZCUs X60cZGp6w1/yiTPhAp6aq88BNs0HvgN8D73W3gXmplXWh6FXPMzWiy7hDCWXL9HdOKOo 3uyVMiNzUyQFgYbS3YRbhwHzN688v3V5sVRpQ1bSvNlSeyHwcetSDR6oMSnS22qLy6Ex fEKw== X-Gm-Message-State: AE9vXwMsZNyFQeWagr9fgXc32Dq6b6q5Wx9OmQbW5p8bPGQXGNVn3Or0L4WICMRZAqYlDL/mamU/rC/8JoBJmg== X-Received: by 10.159.37.106 with SMTP id 97mr2066323uaz.27.1472052656689; Wed, 24 Aug 2016 08:30:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.124.10 with HTTP; Wed, 24 Aug 2016 08:30:56 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?Q?Andr=C3=A9_S=2E_Almeida?= Date: Wed, 24 Aug 2016 12:30:56 -0300 Message-ID: Subject: Re: pfctl: igb2: driver does not support altq To: 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: Wed, 24 Aug 2016 15:30:58 -0000 Hello Rogers, I used your script, compiled the kernel and worked well. Thank you. Andr=C3=A9 S. Almeida http://www.andre.adm.br +55 (48) 8812-3932 2016-08-22 16:08 GMT-03:00 Nick Rogers : > > > 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 th= at >> 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_KERN= EL >> -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 modifyin= g > the driver files directly by adding a #define IGB_LEGACY_TX. I am not su= re > why, but including it as a compiler option (-DIGB_LEGACY_TX) does not wor= k > 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" >> > >