Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754011AbdFNAE5 (ORCPT ); Tue, 13 Jun 2017 20:04:57 -0400 Received: from www62.your-server.de ([213.133.104.62]:38361 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752643AbdFNAE4 (ORCPT ); Tue, 13 Jun 2017 20:04:56 -0400 Message-ID: <59407DA3.8050206@iogearbox.net> Date: Wed, 14 Jun 2017 02:04:51 +0200 From: Daniel Borkmann User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: David Daney , Alexei Starovoitov , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, ralf@linux-mips.org CC: Markos Chandras , Matt Redfearn Subject: Re: [PATCH v2 4/5] MIPS: Add support for eBPF JIT. References: <20170613222847.7122-1-david.daney@cavium.com> <20170613222847.7122-5-david.daney@cavium.com> In-Reply-To: <20170613222847.7122-5-david.daney@cavium.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 946 Lines: 28 On 06/14/2017 12:28 AM, David Daney wrote: > Since the eBPF machine has 64-bit registers, we only support this in > 64-bit kernels. As of the writing of this commit log test-bpf is showing: > > test_bpf: Summary: 316 PASSED, 0 FAILED, [308/308 JIT'ed] > > All current test cases are successfully compiled. > > Many examples in samples/bpf are usable, specifically tracex5 which > uses tail calls works. > > Signed-off-by: David Daney Awesome work, David! The bits interacting with core BPF look good to me. Fyi, when Ralf merges this and it goes later on to Linus, there will be two minor (silent) merge conflicts with net-next tree (depending which one gets there first): 1) In bpf_int_jit_compile(), below the jited = 1 assignment, there needs to come a prog->jited_len = image_size. 2) The internal tail call opcode changed from BPF_JMP | BPF_CALL | BPF_X into BPF_JMP | BPF_TAIL_CALL. Cheers, Daniel