Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3572710ybc; Mon, 18 Nov 2019 17:49:38 -0800 (PST) X-Google-Smtp-Source: APXvYqyHjRI6J/ZPDKr/dUaBA7zCIe62sPkkkNzB0Ypv8j4FGvt2dIbxMKu0Z7FDuc7aZ3qzG2fp X-Received: by 2002:a17:906:8307:: with SMTP id j7mr29793146ejx.171.1574128178386; Mon, 18 Nov 2019 17:49:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574128178; cv=none; d=google.com; s=arc-20160816; b=eQWJszuDuQsu7RrFSbFH+sQIqE5OiuMiO9MZ+1nk4jr0RAY1grSPoGHgMGbAAykniK Vf/Voca2616oND7NuD6BANJKTQaLmeIZAxEVWSWg7dylDBBw8RPEjKk53/kfexhP9XyU cZOeB8CEwcKazYyPuOt1QAdGwJsR/RdtrK/jAGGuoiC2y+rxzWlQJXTNrfUzQ6LH5gTN 1oQTXpA28Fo3W4+n3REcO2FgtkWCtFd5uv0pLP3RaHuv03dlYe/7QiFcywqF17o+I1A8 9VeGs03PddYk/HcV/xWv/aVPXqxawEEsPdtUCP601S9gU8Bg/RibzzYr9XTh20+hjZ5T ncFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=tEe8RAW7MBg1zO9sfZasncxQxqg/PBFYBgYuXX6ANOY=; b=RB4jjRdUThm3Iq9MozomU7SzL7/FtlNLtKa5XdyCrG9B3BQOtibwdHpDdNse/d68no 2ApkhGz0C2aSV+NaIsdkhBSVt0RFYSPjd+HbouiKwUMBlH59u1TDwgzESFjKy6ug/Pc/ 9FQM5rkgtj/SnXDr+O+rc8LqAN/4BNBQs0ENrNiDuDeO3qnAZaKmmY4hZNm2CQOXmkTF 0eF7SyrkAU4B6xif31lyCy8HRyzd1b/Vs02CigInQbSy+TWtGWQSj1fd2KcaqFC33j20 wuwohv7ZeDom61y+NtewcK2e0Sx3cL50y4InXz7j85cGenCfd0Fcg5PRkr7CsK9JiKtd P8CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=K8RhSk35; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id br3si12814734ejb.436.2019.11.18.17.49.14; Mon, 18 Nov 2019 17:49:38 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=K8RhSk35; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727509AbfKSBoz (ORCPT + 99 others); Mon, 18 Nov 2019 20:44:55 -0500 Received: from mail-pg1-f201.google.com ([209.85.215.201]:34323 "EHLO mail-pg1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbfKSBo3 (ORCPT ); Mon, 18 Nov 2019 20:44:29 -0500 Received: by mail-pg1-f201.google.com with SMTP id w9so14559700pgl.1 for ; Mon, 18 Nov 2019 17:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=tEe8RAW7MBg1zO9sfZasncxQxqg/PBFYBgYuXX6ANOY=; b=K8RhSk35hlwM4iwGeJGgh9tHYrYu24g+thHVrOM7cbaoj90XYuZ58wrRrHjYhJjnoK 8FgzQrrWE5qvlelyBxxgg64bf3n1OwVDso0Cuf0r5aMXsiZcTqsurHAIrv3On2w3Sw8n SEX9mRdn2sfbOihaGzZntl3akYu7MmAhZe/eIVFoIJ2Ro6I+bju0nXSOmPJPq9ipGlJU LGPttvtIsETOnjAOUREOqjDzBamwNX2TdRYvUknKBzUaWjbe8PdoBhipodsJS8z520D5 RtIEHNuqm+7jitIuO35ludXmuhie2vcVlnBTWtIcoxDj7C8cGTNZBdE298UedqMuePo5 nWdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=tEe8RAW7MBg1zO9sfZasncxQxqg/PBFYBgYuXX6ANOY=; b=guM0stVUB55BVMmZi3N7cU5VQ3aHdiAGwsWpaM5CIuOpRQsj7q0Z96StiozHGgYGRh 3n1VAG8zRjEuXiOVmfWtbDYeo2OpZCzP4UpmQPnpwATst347WOw/ZHp9p3rCvOirF9FI I1aiZBYguqbMKSeOAyDl9D+d30A+ZJWEdRbXj0YkAERERKRFo0a7wvC31nyQQ8V67DWn cjXYf2YTSuFIB3U4ZpJC0Pq68msbh2IP8mGBUQ/1vthDsfSeic9mxz+MHMVvQeinkNGs CG7UrzjYFisQY1gXYhNFZcsBkOdkvfZ5CNZK+cGipTOyHfV81lW6k1kLUxVHuG+x0amr Mk/w== X-Gm-Message-State: APjAAAVVJaK4xBbaKm9bBOOUPxNmqallacbxsFLldEFdaLGATHSk7wxz 3Dv70MuCAmwYAlx49BTT/HJXALWwbjni X-Received: by 2002:a65:4381:: with SMTP id m1mr2637901pgp.43.1574127869013; Mon, 18 Nov 2019 17:44:29 -0800 (PST) Date: Mon, 18 Nov 2019 17:43:54 -0800 In-Reply-To: <20191119014357.98465-1-brianvv@google.com> Message-Id: <20191119014357.98465-7-brianvv@google.com> Mime-Version: 1.0 References: <20191119014357.98465-1-brianvv@google.com> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH bpf-next 6/9] tools/bpf: sync uapi header bpf.h From: Brian Vazquez To: Brian Vazquez , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" Cc: Yonghong Song , Stanislav Fomichev , Petar Penkov , Willem de Bruijn , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, Brian Vazquez Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sync uapi header include/uapi/linux/bpf.h to tools/include/uapi/linux/bpf.h Signed-off-by: Brian Vazquez Signed-off-by: Yonghong Song --- tools/include/uapi/linux/bpf.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 4842a134b202a..0f6ff0c4d79dd 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -107,6 +107,10 @@ enum bpf_cmd { BPF_MAP_LOOKUP_AND_DELETE_ELEM, BPF_MAP_FREEZE, BPF_BTF_GET_NEXT_ID, + BPF_MAP_LOOKUP_BATCH, + BPF_MAP_LOOKUP_AND_DELETE_BATCH, + BPF_MAP_UPDATE_BATCH, + BPF_MAP_DELETE_BATCH, }; enum bpf_map_type { @@ -400,6 +404,23 @@ union bpf_attr { __u64 flags; }; + struct { /* struct used by BPF_MAP_*_BATCH commands */ + __aligned_u64 in_batch; /* start batch, + * NULL to start from beginning + */ + __aligned_u64 out_batch; /* output: next start batch */ + __aligned_u64 keys; + __aligned_u64 values; + __u32 count; /* input/output: + * input: # of key/value + * elements + * output: # of filled elements + */ + __u32 map_fd; + __u64 elem_flags; + __u64 flags; + } batch; + struct { /* anonymous struct used by BPF_PROG_LOAD command */ __u32 prog_type; /* one of enum bpf_prog_type */ __u32 insn_cnt; -- 2.24.0.432.g9d3f5f5b63-goog