From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexei Starovoitov Subject: Re: [PATCH v2 1/3] bpf: Use 1<<16 as ceiling for immediate alignment in verifier. Date: Fri, 19 May 2017 07:55:16 -0700 Message-ID: References: <20170515.120431.1588221938554447723.davem@davemloft.net> <754f2c39-fdb0-2407-c2f2-aa36d506d202@solarflare.com> <50288778-10f6-7201-c979-bfe4635831fc@solarflare.com> <97910214-213c-c5c6-4a02-adc16cd836aa@fb.com> <739ef342-728c-de57-c2a2-03fa85b3a246@solarflare.com> <17a1c4a2-68d7-0f8f-f009-b97706d67ceb@fb.com> <7402a02c-cb00-d48e-1d2a-ccb03356fb72@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: , To: Edward Cree , David Miller , Daniel Borkmann Return-path: Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:37257 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750817AbdESOzj (ORCPT ); Fri, 19 May 2017 10:55:39 -0400 In-Reply-To: <7402a02c-cb00-d48e-1d2a-ccb03356fb72@solarflare.com> Sender: netdev-owner@vger.kernel.org List-ID: On 5/19/17 7:21 AM, Edward Cree wrote: > I'm currently translating the algos to C. But for the kernel patch, > I'll need to read & understand the existing verifier code, so it > might take a while :) (I don't suppose there's any design document > or hacking-notes you could point me at?) Dave just gave a good overview of the verifier: https://www.spinics.net/lists/xdp-newbies/msg00185.html Few more details in Documentation/networking/filter.txt and in top comments in kernel/bpf/verifier.c General bpf arch overview: http://docs.cilium.io/en/latest/bpf/#instruction-set > But I'll give it a go for sure. Thanks!