Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp601216img; Wed, 20 Mar 2019 07:11:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqzy8p99wGRj6k0dg+md/SLQ/RxMMt0D2alwxm8V2FJOo7HDmE+SCCtPz9p3aEu4PVoh738v X-Received: by 2002:a17:902:127:: with SMTP id 36mr8314143plb.268.1553091104211; Wed, 20 Mar 2019 07:11:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553091104; cv=none; d=google.com; s=arc-20160816; b=NljrOkvi1Myo69G9hBGvqK2Uip6PUB76Z4dv88ygwQ4v8Lfo+POxbb6Ivhh6wK1glZ SH9Kqz2MlmJAt6T77iEOHxzCcF/55kEsAwqbLFDzA7nQqCOWnptWTJLnCuMAZjDssPTr 5mFepnv+CF0cSNVUbFxeHGPEY7mEEdgo9QEVLffNDa2BDyDino1wqxlPU1xG+n+4xFtC scJEVcF4gJvRzTcICEm4eCOWjsJZHLax2yYNExqI/QbgvmMgvxqx8hd2UQsfPcvZockt htLDY4kmBuQYTQFGyGX+G892/XP4HHPFDAa40rMyaGlySkgPTcm8azV4XWdT2uC9W+JV oqbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=qTk6YS1/oy9GpL1EIES/poBAFZbkylD7lMgZGBS4Vok=; b=jQfzwUWW06FCoGNMgZEo1ZLwERCabMcMV0yKWz3J8r+HNlHgCCrNXGLZpddcQTba+w YdliNfhk8EV5qAgw0t5cEN3WJ4XjpdkFFb7POCNhX9cJikV9sa3Ltla/FmPCBCDhXZ4j MjmgASmkmX+0pIeePo70WlSSiHT/ncyGtHaDUN7kkeUuEb++FAlfWqkT4FRu3T1QOL4e UOt8gtifzHJyhCqvqqZoTbylvMY6ZdnhR7ei3bxDLDUaBUX73JpJLCzUh3kPlPCSWpgQ neDN4G4sOMsygQEvAK56uYsFMsNMMmtULBzhLfmvhp9mZZKgGsN6vrdVxMS/U9uwRINU 97lA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3si2111495plb.230.2019.03.20.07.11.28; Wed, 20 Mar 2019 07:11:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727942AbfCTOH1 (ORCPT + 99 others); Wed, 20 Mar 2019 10:07:27 -0400 Received: from www62.your-server.de ([213.133.104.62]:51188 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfCTOH1 (ORCPT ); Wed, 20 Mar 2019 10:07:27 -0400 Received: from [78.46.172.2] (helo=sslproxy05.your-server.de) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1h6bsH-0007ia-T6; Wed, 20 Mar 2019 15:07:22 +0100 Received: from [2a02:120b:c3fc:feb0:dda7:bd28:a848:50e2] (helo=linux.home) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1h6bsH-000Kmj-Ma; Wed, 20 Mar 2019 15:07:21 +0100 Subject: Re: [PATCH v2 3/3] MIPS: eBPF: Initial eBPF support for MIPS32 architecture. To: Hassan Naveed , Paul Burton Cc: "kafai@fb.com" , "songliubraving@fb.com" , "yhs@fb.com" , "netdev@vger.kernel.org" , "bpf@vger.kernel.org" , "linux-mips@vger.kernel.org" , Ralf Baechle , James Hogan , Alexei Starovoitov , "open list:MIPS" , open list References: <20190312224706.6121-1-hnaveed@wavecomp.com> <20190312224706.6121-3-hnaveed@wavecomp.com> From: Daniel Borkmann Message-ID: <98323a41-2851-d000-c928-242d055a5bc1@iogearbox.net> Date: Wed, 20 Mar 2019 15:07:20 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20190312224706.6121-3-hnaveed@wavecomp.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.100.2/25394/Wed Mar 20 08:52:02 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/12/2019 11:48 PM, Hassan Naveed wrote: > Currently MIPS32 supports a JIT for classic BPF only, not extended BPF. > This patch adds JIT support for extended BPF on MIPS32, so code is > actually JIT'ed instead of being only interpreted. Instructions with > 64-bit operands are not supported at this point. > We can delete classic BPF because the kernel will translate classic BPF > programs into extended BPF and JIT them, eliminating the need for > classic BPF. > > Signed-off-by: Hassan Naveed Nice! Did you check BPF test suite (lib/test_bpf.ko) that both before/after the same number of cBPF programs could be JITed? Please also follow-up to update Documentation/sysctl/net.txt, bpf_jit_enable section, and adding yourself as co-maintainer for 'BPF JIT for MIPS' wouldn't hurt either if Paul would be good with that, too. Any plans on completing eBPF support for mips32? Thanks, Daniel