From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 93891A0093; Mon, 18 May 2020 17:53:05 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3CE661D446; Mon, 18 May 2020 17:53:05 +0200 (CEST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 28D501D423 for ; Mon, 18 May 2020 17:53:02 +0200 (CEST) IronPort-SDR: sUg5CnzdVw9LLPPJ5XFGgEkpRfKIzBeNY5lyEVzVpjs8GnDPZsUfEBoyGePxJnanU986xwZXDJ wSupeUrmZqcg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 May 2020 08:53:01 -0700 IronPort-SDR: Tx8JafdvJLcafcWM2CcdWNJr3WbGRqfSNTy6star1HJaP76Bg2IblmHfxJ1Q7K2Kd9kLgo6akI qnTbrwm5UrOQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,407,1583222400"; d="scan'208";a="373426179" Received: from sivswdev08.ir.intel.com ([10.237.217.47]) by fmsmga001.fm.intel.com with ESMTP; 18 May 2020 08:53:00 -0700 From: Konstantin Ananyev To: dev@dpdk.org Cc: stephen@networkplumber.org, jerinj@marvell.com, Konstantin Ananyev Date: Mon, 18 May 2020 16:52:40 +0100 Message-Id: <20200518155245.11380-1-konstantin.ananyev@intel.com> X-Mailer: git-send-email 2.18.0 Subject: [dpdk-dev] [PATCH 0/5] bpf: add support for BPF_ABS/BPF_IND instructions X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" To fill the gap with linux kernel eBPF implementation, add support for two non-generic instructions: (BPF_ABS | | BPF_LD) and (BPF_IND | | BPF_LD) which are used to access packet data. Make necessary changes in BPF verifier, interpreter and x86 JIT code. Konstantin Ananyev (5): test/bpf: fix few small issues bpf: fix add/sub min/max estimations bpf: add support for packet data load instructions test/bpf: add new test cases for mbuf load instructions bpf: x86 JIT support for packet data load instructions app/test/test_bpf.c | 504 ++++++++++++++++++++++++++++-- doc/guides/prog_guide/bpf_lib.rst | 30 +- lib/librte_bpf/bpf_exec.c | 57 ++++ lib/librte_bpf/bpf_jit_x86.c | 181 +++++++++++ lib/librte_bpf/bpf_validate.c | 104 +++++- 5 files changed, 843 insertions(+), 33 deletions(-) -- 2.17.1