Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp92799ybl; Wed, 11 Dec 2019 14:35:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzfr2izQh7v37LJH7NtO4rpmSW+uxpJf0WTQVNXZNvrJof+d4L+QOTw/hU8i0lRQvPYSyc+ X-Received: by 2002:aca:da06:: with SMTP id r6mr4325814oig.82.1576103744663; Wed, 11 Dec 2019 14:35:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576103744; cv=none; d=google.com; s=arc-20160816; b=jX0bn7j5OH883iu/iexHhtYwoqeqYtbfbhwghmOz+Qgd5GoYLbYU3JE3p49Ai6iShd Fm5NRkioEhZcN8Qq6qhImzg7kVp8YfPGlJVrmyBgX/fg3kHOVIApBc4MnKUoiKt2W0Am kAakcH8U4fcUGZ9xFsNtx1VlO5Y6kk0aXqg3pgNO9xQJGjhDkmz37wFgBQND06zlpIKc DCHQXpgV1kMf6pfN68w1CB58qUECbuWLDrk+UKEV8GrpwnoHMWeki/LkVEa0FLYHhkkQ HzNgOmhD+8HbFp5HpDiEn0Mv+mF86ayhxYYbrzkOUzhTSPUBcvOM9McpIkI2J3M8izJ2 pH3Q== 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=9RMTraS0Zyi1z70WafFMEjChZMSkEcb6BYR/zMAVpRk=; b=k9U1qFL4CXw+3M5KL0lGBbKIlDb6MRL/V4zkQdTnEnf1c+tnz/K5pILsIsr4OJlgcH 2dTv6qq7BWljJQlZIcgwF3x6bmp8+XzUXmSD/EqnDfbTnrTF9QmMqnXKnKr+TcnZqwLc f/uotd1zT561UB2ECPqFlTzxhV9Ifnh3/UUfhr6/tfi7iqsgqR+51L00RGz5+R/J7EhI bA8hSkU/jrpSE/R8ZmBb9Mwo0wiJCP4Kbn/9gh5wJPA3ymiqtiGP6eihyeNKF36weL79 9ts/S6BzysWSODohTyLY6u4MhDRZiGk9Oyd35IYro9stjrpPINYuH1Jritm/Yp9oF78X f+fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Zug62ED/"; 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 t23si2074725oij.23.2019.12.11.14.35.32; Wed, 11 Dec 2019 14:35:44 -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="Zug62ED/"; 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 S1727137AbfLKWep (ORCPT + 99 others); Wed, 11 Dec 2019 17:34:45 -0500 Received: from mail-yw1-f74.google.com ([209.85.161.74]:43972 "EHLO mail-yw1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727109AbfLKWel (ORCPT ); Wed, 11 Dec 2019 17:34:41 -0500 Received: by mail-yw1-f74.google.com with SMTP id e124so391186ywc.10 for ; Wed, 11 Dec 2019 14:34:40 -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=9RMTraS0Zyi1z70WafFMEjChZMSkEcb6BYR/zMAVpRk=; b=Zug62ED/rZ6MU18zqHoC2AZP8SDrH5cGX100lu0Z2eD5T/Li+NQTurecemxrmPyix4 fO5JP1aafPiRtXqcCAd1fXvnqC2t+l+vhGQAcx/Pj0XoLQa5N4jl9jfW9xL2brOngDdT FustuWSs2UGUDABRbXjhK+vGP1pQ+HDWlvMNVCeUt+J+bj1EPpa64+TnfhtyGklWYt0W OyxghJBnHhef7hXeraIAA2cSSVkM5w2gczpr9PRlYu64Fq/3BAYuqxzPABqXyj+7I8wS yvDT22/puKvl1/Bc0P2CC32tcrSTLM+Z2h1nTB83/Ks03PqDbW+2t0yGXuguCvU9b6o/ U9IA== 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=9RMTraS0Zyi1z70WafFMEjChZMSkEcb6BYR/zMAVpRk=; b=bDITko0plL108dfofyIONWQw8wisn3dBUBOX0fxNwPgdXYtkjXf4ukYmDMB92Fottg JbK405JRgztw6oJSes0MZZsHEKD/jUSKJUfldDHa5ywMCxnWDOHkPHQ5lakxn036ssGq dGFzzI8+fhU4AWsiD802j6gDjxMV7+YBtyI3pedjPAQyh1ACCBkt63vB/7EQGVqU2sm7 MCGsmLCUBG136jbQMhkjd/Nk19gFgWmPyL2WZ+x75Bk7cBe3+NfNIFrI5aAa7qtHKRYd WHe2yrCQ0lbH3PKYlKw13c16M5XQyJeoFUV26QI+HwfZJVgyjueu1lVAC+BFaHiADvCo WaNg== X-Gm-Message-State: APjAAAVNvL9s+NIwccFWq3iga7XGea9FZIjWlfsDZoPMA6GxxynJaDcP 3DNn3V/5/z5e4C8MjXhHIq4gMd9nVCCb X-Received: by 2002:a81:6344:: with SMTP id x65mr1665232ywb.271.1576103680204; Wed, 11 Dec 2019 14:34:40 -0800 (PST) Date: Wed, 11 Dec 2019 14:33:40 -0800 In-Reply-To: <20191211223344.165549-1-brianvv@google.com> Message-Id: <20191211223344.165549-8-brianvv@google.com> Mime-Version: 1.0 References: <20191211223344.165549-1-brianvv@google.com> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog Subject: [PATCH v3 bpf-next 07/11] tools/bpf: sync uapi header bpf.h From: Brian Vazquez To: Brian Vazquez , 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 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 From: Yonghong Song sync uapi header include/uapi/linux/bpf.h to tools/include/uapi/linux/bpf.h 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 dbbcf0b02970b..dab24a763e4bb 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 { @@ -403,6 +407,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.1.735.g03f4e72817-goog