From owner-freebsd-net@freebsd.org Tue Mar 21 12:26:51 2017 Return-Path: <owner-freebsd-net@freebsd.org> Delivered-To: freebsd-net@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 4FA9FD14B9D for <freebsd-net@mailman.ysv.freebsd.org>; Tue, 21 Mar 2017 12:26:51 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: from mail-qt0-x22b.google.com (mail-qt0-x22b.google.com [IPv6:2607:f8b0:400d:c0d::22b]) (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 0B794F78 for <freebsd-net@freebsd.org>; Tue, 21 Mar 2017 12:26:51 +0000 (UTC) (envelope-from ozkan.kirik@gmail.com) Received: by mail-qt0-x22b.google.com with SMTP id n21so129320231qta.1 for <freebsd-net@freebsd.org>; Tue, 21 Mar 2017 05:26:51 -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=RKSSrweFfXFqkGPGQWDHXp2eKJ1FJpWZaSG3CubvHdU=; b=tetBdOUVYzA/rOVtD0ESt/c3zOYlvcpnxS939dMVlc7nKjB9cxErV1J3J2gjILPWTV IOZ5p4UbGF4ZIfqQK6zlYK9O2xpkZQ7EP4U2wHuiS8t1zWZyxVVC09NNWd2lI/XJQGr9 lzNxuLbqIqsd/NnTCFcyxBGTQTkP/V0CoDWebu6Av6/ZJJ/f99GfWuuav+TYcJ4PZDDf h5GgVQ1SHNHP97NzRo72+mqeJniKN6wwN+aNlSy2PDJO9+z0zu7cCfkaDLCBfkWsUMgx Iw42r9JVth+u4Mp/gD4QUG093myCnJ0bva25HMJPPbX81X6kng5c1sIRcDf8OPrHTpAD 3Wqg== 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=RKSSrweFfXFqkGPGQWDHXp2eKJ1FJpWZaSG3CubvHdU=; b=RZr3HIoZKC+ifQ/AlRDvlsNnPaAq8vBgMUHOOjIEJg/mM0AImAzEV4XnLtrTKKFipc oR0AuNhD+n8MmRbJgzbyllXIRc/3I2/qLqDePX3chgB6sYsHlaOTkvMpkI8tA7pyfayf Gc3YlPNbr3wBaNDy1mbm+AyUN3YGpnb2WhWETH8sMtJ2uLxHGf660BkBO2ohh1k9+vOl w93RZZXWfpxNtZtN5LjQEk4ZRLt62KscsHvh99G+mrUAdu/SobTerEVapOXwWdwmsCd7 gck5axyiw2cs6Uj6hRVH5yXwWcKiy2orlN+Fh04g2tWRVbKdGU4mEGpDVCWKRHE3enPK 6Oew== X-Gm-Message-State: AFeK/H0Iu2ARyB5kibkUvDHG4sY8G1plgO2OimzuXjkBU2HkQ7DUQkAxwyrE95f/qHrpZmhdg4l6FeVUSmXc6w== X-Received: by 10.237.48.66 with SMTP id 60mr16211551qte.25.1490099209707; Tue, 21 Mar 2017 05:26:49 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.179.135 with HTTP; Tue, 21 Mar 2017 05:26:49 -0700 (PDT) From: =?UTF-8?B?w5Z6a2FuIEtJUklL?= <ozkan.kirik@gmail.com> Date: Tue, 21 Mar 2017 15:26:49 +0300 Message-ID: <CAAcX-AFJ4mmFQt2k3gdsG4c8g3d-ypzSFpypQLQF_3Jdw0W3ew@mail.gmail.com> Subject: if_epair altq support problem To: "freebsd-net@freebsd.org" <freebsd-net@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-net@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/> List-Post: <mailto:freebsd-net@freebsd.org> List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>, <mailto:freebsd-net-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 21 Mar 2017 12:26:51 -0000 Hello, I sent this email also to freebsd-pf list. But I think that the main problem is belongs to sys/net/if_epair.c. 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 <https://www.freebsd.org/cgi/man.cgi?query=3Daltq#end>* The driver modifications described in altq(9) <https://www.freebsd.org/cgi/man.cgi?query=3Daltq&sektion=3D9&apropos=3D0&m= anpath=3DFreeBSD+11.0-RELEASE+and+Ports> are required to use a cer- tain network card with *ALTQ*. They have been applied to the followin= g hardware drivers: ae(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dae&sektion=3D4&apropos=3D0&man= path=3DFreeBSD+11.0-RELEASE+and+Ports>, age(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dage&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, alc(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dalc&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, ale(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dale&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, an(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dan&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, ath(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dath&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, aue(4) <https://www.freebsd.org/cgi/man.cgi?query=3Daue&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, axe(4) <https://www.freebsd.org/cgi/man.cgi?query=3Daxe&sektion=3D4&ap= ropos=3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, bce(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dbce&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, bfe(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dbfe&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, bge(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dbge&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, bxe(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dbxe&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, cas(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dcas&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, cxgbe(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dcxgbe&sektion=3D4&apr= opos=3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, dc(4) <https://www.freebsd.org/cgi/man.cgi?query=3Ddc&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, de(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dde&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, ed(4) <https://www.freebsd.org/cgi/man.cgi?query=3Ded&sektion=3D4&apro= pos=3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, em(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dem&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, ep(4) <https://www.freebsd.org/cgi/man.cgi?query=3Dep&sektion=3D4&apropos= =3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, epair(4) <https://www.freebsd.org/cgi/man.cgi?query=3Depair&sektion=3D4&apr= opos=3D0&manpath=3DFreeBSD+11.0-RELEASE+and+Ports>, .... 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