From owner-freebsd-pf@freebsd.org Tue Mar 21 08:04:15 2017 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 DCDCDD163D4 for ; Tue, 21 Mar 2017 08:04:15 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d: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 99553FC7 for ; Tue, 21 Mar 2017 08:04:15 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-qk0-x231.google.com with SMTP id p64so129126412qke.1 for ; Tue, 21 Mar 2017 01:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=GuysQU+hEeLspqx+nVPFu5dSUL9wMSpHlFN1IvhmEO0=; b=AnSeffs32v/RIlIbA/avcjsPng6abnfir85RNJaA0u5d06OnBv+llm6RWZ7ce9gBuv 5K43Qg8Kbm+GgfuH8p4DnmAOe7Exa0byJNM4xqV4yLU9ZwSkNSBL4YLaP+78q8lMlBQt qsKsBzIG3GP9ScJtNqGH30m3mwE97yHQpGNiAxNTQIqQIsPrNNiUZb1sfxTOYhnSU9q4 xhdFuTSpCu9nnvuaScKYw5/HCE+F/R+mwI2sdmv0g9WHwSSCIgNxlfgPMm8/eCVP8QJY p4qskm5enkGZgrNsV5MH374OXxox4kpnBIkCv3LGuxc2yoiVWEd90UfvMg03sjrItKBW 5gig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=GuysQU+hEeLspqx+nVPFu5dSUL9wMSpHlFN1IvhmEO0=; b=t1HA/pKvThjkM9+aKc4G1Gjy2T605/TZ3E/m5XY5+TqjtjVSnO+kBOie7oE3q0IZRP 0n2NcdyEgzQ44IBwseMwcVkvWbJv1RMz5P1qQd9Iql749Dc8cikygbE2rtefWUdxebLq fkhLZvMQXrrMvoWnpoCmRMnlqGrgbBRj+dQL7PfnzDLRDILeeLTKUf3BR3a6hNe8CfBW r9Mu1RdqDc8vTmDsm/WwmTtRSxtM+MexCcrHJLWHpvqyTFjW7LjBDSnz8oHh9qSi0ONp bCMsJ+qAGQIFHHw5p+h2SCNFux35EhygVWypm7opQCtyytMbXRTMEOu7nY9nAjTxHgau o18Q== X-Gm-Message-State: AFeK/H3fh9NLlJIIVZCcTJRnxei6SCNk6R7vJeYWZxFB0Z2y/qUCH5otHPdc2gcGbNkmlXbSdQycHOkw+5/g9A== X-Received: by 10.55.109.198 with SMTP id i189mr31882915qkc.242.1490083454416; Tue, 21 Mar 2017 01:04:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.179.135 with HTTP; Tue, 21 Mar 2017 01:04:14 -0700 (PDT) From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= Date: Tue, 21 Mar 2017 11:04:14 +0300 Message-ID: Subject: ALTQ on epair not working 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.23 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.23 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: Tue, 21 Mar 2017 08:04:16 -0000 Hello, I'm using FreeBSD 10.3-p17 amd64. epair pseudo device is listed as supperted deviced at the Man page of altq(4). >From man page of altq : *SUPPORTED DEVICES * The driver modifications described in altq(9) are required to use a cer- tain network card with *ALTQ*. They have been applied to the followin= g hardware drivers: ae(4) , age(4) , alc(4) , ale(4) , an(4) , ath(4) , aue(4) , axe(4) , bce(4) , bfe(4) , bge(4) , bxe(4) , cas(4) , cxgbe(4) , dc(4) , de(4) , ed(4) , em(4) , ep(4) , epair(4) , .... But while trying to use it the system says that it's not suppoerted. I tried on FreeBSD 11 also. The output is below: pf.conf : altq on epair0b hfsc bandwidth 1Mb queue { ftp, ssh, icmp, other } queue ftp bandwidth 30% priority 0 hfsc (upperlimit 99%) queue ssh bandwidth 30% priority 2 hfsc (upperlimit 99%) queue icmp bandwidth 10% priority 2 hfsc (upperlimit 99%) queue other bandwidth 30% priority 1 hfsc (default upperlimit 99%) # ifconfig epair0 create # ifconfig epair0a up # ifconfig epair0b up # pfctl -f pf.conf pfctl: epair0b: driver does not support altq # sysctl -a | grep ALTQ options ALTQ_NOPCC options ALTQ_PRIQ options ALTQ_CDNR options ALTQ_HFSC options ALTQ_RIO options ALTQ_RED options ALTQ_CBQ options ALTQ I have a look on /usr/src/sys/net/if_epair.c, and found the ALTQ section: 514 #ifdef ALTQ 515 /* Support ALTQ via the clasic if_start() path. */ 516 IF_LOCK(&ifp->if_snd); 517 if (ALTQ_IS_ENABLED(&ifp->if_snd)) { 518 ALTQ_ENQUEUE(&ifp->if_snd, m, NULL, error); 519 if (error) 520 ifp->if_snd.ifq_drops++; 521 IF_UNLOCK(&ifp->if_snd); 522 if (!error) { 523 ifp->if_obytes +=3D len; 524 if (mflags & (M_BCAST|M_MCAST)) 525 ifp->if_omcasts++; 526 527 if ((ifp->if_drv_flags & IFF_DRV_OACTIVE) =3D= =3D 0) 528 epair_start_locked(ifp); 529 else 530 (void)epair_add_ifp_for_draining(ifp); 531 } 532 return (error); 533 } 534 IF_UNLOCK(&ifp->if_snd); 535 #endif I have no idea that why it says that it doesn't support altq altough the source code contains ALTQ section. Regards =C3=96zkan KIRIK