From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.toke.dk (mail.toke.dk [52.28.52.200]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 1840E3B29E for ; Thu, 2 Aug 2018 16:04:28 -0400 (EDT) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1533240266; bh=5dmvBXDU509hQ0jJ5l8uo7iqo3IO4IdKV6XSCSTS9hE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=aDt/WN01hWeIfIPAWZPyozwlbVAwZJ0jXkVvm/GhQHV+jyc49AHu/7TAPYQgvlZKB BE85mOlZuSou+480fO6njDlp8Qw7ZJLb8Co51U4bl1Eh55KE/ene8JwK4ORUlokY8d 012cGa3NooIZ0dimbzERxr+iyHbpA08gLX1OTTFv6N3G+BgGm0aWcb8uFsVDQBIhFX IkWOf9QULrBN+YirPDPaiNxhbYS1wG15rzW6x9kelpudz5sTWGI8xo9wQFUwYVDuzr YIZFxbXQWCLMEKdo69NukD5YvRKGJXu0VsiwwRIQSxP7EP7wxMygY6dxlWoNdsJEQ6 4Q1OZ8mONt2CQ== To: Dave Taht , Jonathan Morton Cc: Cake List In-Reply-To: References: Date: Thu, 02 Aug 2018 22:04:27 +0200 X-Clacks-Overhead: GNU Terry Pratchett Message-ID: <87ftzwy1pw.fsf@toke.dk> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Cake] codel in ebpf? 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: Thu, 02 Aug 2018 20:04:28 -0000 Dave Taht writes: > On Wed, Aug 1, 2018 at 10:25 AM Dave Taht wrote: >> >> I wonder if ebpf has opcode space for an invsqrt? > > bpf_ktime_get_ns() exists... > > one thing that I don't know if bpf can do is read/write the > skb->tstamp field. The plan would be to rigorously write it (if not > supplied by hw) on all ingress ports and check it on all egress ports. An XDP eBPF program (run at earliest possible ingress) has access to a buffer of arbitrary data that is attached to the skb and that can be read from later eBPF programs. So it doesn't need to muck with skb->tstamp for this. > That said, every time I've tried to do something in ebpf I hit a > limitation I'd not thunk of yet. Yeah, the whole XDP/eBPF system is somewhat of a work in progress ;) > For example, where can you attach the egress filter? > > My thought would be to use a bfifo > bpf -> bql, but from what little > I understand, it's bpf -> bfifo -> bql Yeah, it is. Don't think there's a way to run an eBPF program after the qdisc... -Toke