From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.toke.dk (mail.toke.dk [IPv6:2001:470:dc45:1000::1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id A1C8F3BA8E for ; Sat, 28 Jul 2018 14:12:51 -0400 (EDT) Date: Sat, 28 Jul 2018 20:12:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1532801570; bh=ByqiK82GeP+DWNCWI9XFCqQun/WzV5JU2V1vz30GJHw=; h=Date:In-Reply-To:References:Subject:To:CC:From:From; b=ShS9cXOdJilDYw+BorCQDzRvjm1IuoI/vJalhQ2qH1NR0REr2GH/XRPNwU25Zl4Fd hpf97tqan4cYdOufnh9kj9jfJ/fIT3CUFVEdfyE17TxlPq6AUvtFt22UDElD/K1/eE HMB9OOf6bxaTUnZ9okyKnn9VpRxYGQDgMHWgZADsKoeFBE3fMw5kENihYE8JVVjTeC 4JaW2w2xsGbeL3/7wDX3jjED92VNY1DGw3NTqr+A5Msmwph+eL7gxhS0XJt+ztE2YA Uh1G/MO2wgX+engrV77hUq0mbs+PbV2Utj2IlJ8OXMv6eSN32xDkReDbLOQVmom+76 iQ/TaaRk0tOiQ== In-Reply-To: References: <1357421162.31089.1531812291583@webmail.strato.de> <1c323544b3076c0ab31b887d6113f25f572e41ae.camel@coverfire.com> <87woth28rw.fsf@toke.dk> <87tvol1z6h.fsf@toke.dk> <87wotfzql8.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable To: Dave Taht ,Pete Heist CC: Cake List From: =?ISO-8859-1?Q?Toke_H=F8iland-J=F8rgensen?= X-Clacks-Overhead: GNU Terry Pratchett Message-ID: 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 18:12:51 -0000 Priority field sets tin, class sets flow=2E Both need the qdisc is as its m= ajor number, iirc=2E And both can be set from the same bpf filter which can= be run in direct action mode=2E=2E=2E -Toke On 28 July 2018 19:56:35 CEST, Dave Taht wrote: >https://github=2Ecom/iovisor/bcc/blob/master/src/cc/compat/linux/bpf=2Eh#= L2222 >says you can get at the priority field=2E > >On Sat, Jul 28, 2018 at 10:52 AM Dave Taht wrot= e: >> >> 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)=2E >> > >> > >> > Sorry, this just jostled in my brain now that I may be able to >implement member fairness today, based on what you wrote earlier in a >thread that I entirely missed: >https://lists=2Ebufferbloat=2Enet/pipermail/cake/2018-May/003811=2Ehtml >> > >> > George posted an example of assigning packets to a tin: >https://lists=2Ebufferbloat=2Enet/pipermail/cake/2018-May/003809=2Ehtml >> > >> > How does one send packets to a specific flow / queue? >> >> It's essentially above=2E 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=2E The not current version is attached=2E I really need t= o >> finish up some ack related stuff=2E >> 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= at >least per-member fairness might be possible=2E There are 1024(?) queues >available and 800 members, so I=E2=80=99m just speculating that I could m= ap >members to a number from 0 to 800 (active member IDs packed and >zero-based would work) and assign each member to their own flow=2E >Thanks=2E=2E=2E :) >> > >> > _______________________________________________ >> > Cake mailing list >> > Cake@lists=2Ebufferbloat=2Enet >> > https://lists=2Ebufferbloat=2Enet/listinfo/cake >> >> >> -- >> >> Dave T=C3=A4ht >> CEO, TekLibre, LLC >> http://www=2Eteklibre=2Ecom >> Tel: 1-669-226-2619