From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-x235.google.com (mail-qt0-x235.google.com [IPv6:2607:f8b0:400d:c0d::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 3C84F3BA8E for ; Sat, 28 Jul 2018 13:56:47 -0400 (EDT) Received: by mail-qt0-x235.google.com with SMTP id h4-v6so8292827qtj.7 for ; Sat, 28 Jul 2018 10:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mjL0hW4pnEz3+mflqXLrnozSxZFOnG4OvmnfDFFqAmQ=; b=eEwe/oMpfstyPl0Ao9Bh27QSoW7/MoPxiLpNQcqVRpDOVrpcNsjr1r/M5XZDdbVkot uS76r26V7ucYQ2C5BmRMUjfGiAaVcBLHXwoAeykNBFzZi1ozT5K4WLUfiIphCPKxCYMZ qBCKTv/HNJ/v+6nqj+t8M6gOOtCbKdrqz7hRXTgn1Q/aeiox59J2Cj1hfy0DOGvT2O1W rFEa+Y+zuyXSUH3vX90ipCJnnUCuIkDvDSc1sAwxJj2U2lIa5YzdXdGa+UwEqHVU2yXx L3h1AQ0ggn/1y3BkTSHk3Vo4fI0vhX4mKcGKa/Qibn2hzWaYZLdnLdwG0f+SoyMscuEc TgpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mjL0hW4pnEz3+mflqXLrnozSxZFOnG4OvmnfDFFqAmQ=; b=dEW9HPBWuRxfgViVCrELN1OgW4P/tL5pEpSuCqBqFi3Zb8kmUVbQSIgj9kkvArev/u LqVH4O/tKEEU/NyMq3qP5cZ1woP5wsTWe/4wQbFkSHiCD8b+oj/FSGQVtllEC1iTMtEu PcHP8OMTQQO4ci2cBzeBH1qR/kWICgyZhjZViC9uEhf1v/pBsfVpm90H1dzeDpOUghMc jP7iT7L59HGZmDvBJmYFOc+dyONqaCddRIGX5mYaCdm+Gj8c3ofeun6JbL0JWRiT6SU1 6c+vCAy4q8c3CPYAtR/vxZ3l4BA2Xlxurxn83rzUzq2SPWQJk9IQcyHY93QNAnw1enKu nR3A== X-Gm-Message-State: AOUpUlGi27E6p2e3mTLFiK6vnrb5UQOcCp6n/5G4ZHUHZ+21d90sAbVb iysWMpExZL9/46/Dj5M/uy1KbF/ryocslERjECx+iesx X-Google-Smtp-Source: AAOMgpf981wUidMUOgWqpcsjEtUkuwFRA3SWvfW34ACN+HsiWb4binIm/KrYtF29dtjpUw3j/3j6S1s8Aaui6/1J2hU= X-Received: by 2002:a0c:bfd8:: with SMTP id u24-v6mr9976552qvj.158.1532800606775; Sat, 28 Jul 2018 10:56:46 -0700 (PDT) MIME-Version: 1.0 References: <1357421162.31089.1531812291583@webmail.strato.de> <1c323544b3076c0ab31b887d6113f25f572e41ae.camel@coverfire.com> <87woth28rw.fsf@toke.dk> <87tvol1z6h.fsf@toke.dk> <87wotfzql8.fsf@toke.dk> In-Reply-To: From: Dave Taht Date: Sat, 28 Jul 2018 10:56:35 -0700 Message-ID: To: Pete Heist Cc: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Cake List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Cake] =?utf-8?q?Using_cake_to_shape_1000=E2=80=99s_of_users=2E?= X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jul 2018 17:56:47 -0000 https://github.com/iovisor/bcc/blob/master/src/cc/compat/linux/bpf.h#L2222 says you can get at the priority field. On Sat, Jul 28, 2018 at 10:52 AM Dave Taht wrote: > > On Sat, Jul 28, 2018 at 10:38 AM Pete Heist wrote: > > > > > > On Jul 28, 2018, at 10:56 AM, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > > > > Note that with the existing tc classifier stuff we already added to > > Cake, we basically have this already (eBPF can map traffic to tin and > > flow however it pleases). > > > > > > Sorry, this just jostled in my brain now that I may be able to implemen= t member fairness today, based on what you wrote earlier in a thread that I= entirely missed: https://lists.bufferbloat.net/pipermail/cake/2018-May/003= 811.html > > > > George posted an example of assigning packets to a tin: https://lists.b= ufferbloat.net/pipermail/cake/2018-May/003809.html > > > > How does one send packets to a specific flow / queue? > > It's essentially above. I think you can actually do it in pure bpf > without skbedit, I'd written a tc bpf flow classifier for acks quite > some time ago. The not current version is attached. I really need to > finish up some ack related stuff. > Using a bpf map to this then setting the flowid directly? > > > > This wouldn=E2=80=99t give both per-member and per-flow fairness, but a= t least per-member fairness might be possible. There are 1024(?) queues ava= ilable and 800 members, so I=E2=80=99m just speculating that I could map me= mbers to a number from 0 to 800 (active member IDs packed and zero-based wo= uld work) and assign each member to their own flow. Thanks... :) > > > > _______________________________________________ > > Cake mailing list > > Cake@lists.bufferbloat.net > > https://lists.bufferbloat.net/listinfo/cake > > > -- > > Dave T=C3=A4ht > CEO, TekLibre, LLC > http://www.teklibre.com > Tel: 1-669-226-2619 --=20 Dave T=C3=A4ht CEO, TekLibre, LLC http://www.teklibre.com Tel: 1-669-226-2619