From owner-freebsd-net@freebsd.org Tue Mar 21 12:26:51 2017 Return-Path: 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 ; 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 ; 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 ; 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?= Date: Tue, 21 Mar 2017 15:26:49 +0300 Message-ID: Subject: if_epair altq support problem To: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 * 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