Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp6823974ybl; Wed, 15 Jan 2020 10:45:29 -0800 (PST) X-Google-Smtp-Source: APXvYqzkGf9iZHvtyQQaMCiWzQnAfcS0uo5mj2tAN9Jx0O3XxKBKyIqZp/2xKN425OCH5jHT1i3L X-Received: by 2002:a05:6808:150:: with SMTP id h16mr971161oie.130.1579113929601; Wed, 15 Jan 2020 10:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579113929; cv=none; d=google.com; s=arc-20160816; b=weY9n425nGlD6LoWI+i4NhCaXE1v4tBgShZsnJbogbedAN9V7z2g5rKph54T1ewNcI cp3NCFDPrjCbIBUUXulncoB45BcbGB3VsxO2uHlc+H13Jml7rvwNQmVsuTe/N6Vd7/B0 yXE8be3ohU1+wjcaM5jIJy7fpKAMSpv/qCH1Yu8n799I/LHhhY8UmpiiOHbSvA9Bawqv MrnFEueQYuzoa65FPi0glcbje17JwPGu5qePvggRvWmJCq9wXbzrFoWCD71xGjLWMN0T vgY3gIjh77t95swVr6ffalsdBVeg4b7pLWAoFttnEn8EVD82I17h0CoNN+DHki9MPuVA aSOA== 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=xQls5+iJi5Kqz7m3pR6x7QjrYUU6eZohn0NALbSGdKM=; b=lsTOvCsoTKnxRTpGVUIZaGE9i6Fin3H0+e1IhuamsedGg+tjvLc+h3/AvOL4bgCqY7 Xi0jIlis5ApRR49HfV9Pwi9mfxVQMoc3ll+ZSVkadXhQ18sY3YIGVmqoizxDo05Gee0b B6kolMdxCm9CbIw94KLCPBUWpSszH2d1pSxFMjC1NPg+q6miuPSilhpfJ2NZ5cglvFxp 2WyldN84es7lPNrojylupEuvbJs9YLkaHCMN4wZjn+2QrFywX/2Ju14wQW/fGiaJCMIE lzVD7HptO/80zocPfhUEQ+boim9+kBT/rscnNFf3sCiGgDIS0aAmenR2Zbte9GLDJ070 bjZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=uRu8Ql4O; 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 u188si10288120oia.80.2020.01.15.10.45.17; Wed, 15 Jan 2020 10:45:29 -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=uRu8Ql4O; 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 S1729437AbgAOSnn (ORCPT + 99 others); Wed, 15 Jan 2020 13:43:43 -0500 Received: from mail-pl1-f201.google.com ([209.85.214.201]:38544 "EHLO mail-pl1-f201.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729387AbgAOSnh (ORCPT ); Wed, 15 Jan 2020 13:43:37 -0500 Received: by mail-pl1-f201.google.com with SMTP id t17so7334904ply.5 for ; Wed, 15 Jan 2020 10:43:37 -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=xQls5+iJi5Kqz7m3pR6x7QjrYUU6eZohn0NALbSGdKM=; b=uRu8Ql4OQe2tRaLyN4BrE2DzO8IeVWLi2wpeas1c8W1cbwT50VQ4hrVy7LBKcfIDne kbAGW11znsVoK9quuUOlLQ0elOv7VjBCiXAfr6BresyWbkaGuazrWHb+leZly2Ph3DZI O6mDiFPggpkCo+c1kyW6hySnLvFvMCP2sK1liTK0B1Krkycm4prBumLGlVIsfTkVLxZF AbD6D2M4jpR2guEvJrYljDLBvS540vq03Wd32exylK90h+AOlHeOc1a+Q1GaRIugverK Mg5oSJUGhqrWgHoCvlIIB7seQwLdKPFBPRRniyH3BZj0OHNvS1z2Xdjqn8rE6neaiFK1 qVbQ== 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=xQls5+iJi5Kqz7m3pR6x7QjrYUU6eZohn0NALbSGdKM=; b=Im8JvLpY7EsJWF23FkGt8SESBkeN6nhleKPAjwhEPy+WIJzIlux71VNtMZmxSq3Hvc 0w5LQSUB3g27tbM6/8W3SybwBviozFWTFsn6jhfquTGg2HyUO4pH2f7edWo224VjJpY3 ftEh0qNnzFfA0ZzHD8PZDoWNmkG0+F7t2/X2zEiruQFzvjWu9UCbOvSgJzUuDGbnycc+ c+c2YUG0GyAFtDIf3dSugzhiv5Pt+jOO91wA2q7jPGEIZizZvW9hwE/qNGqnzsHTNivF DTlugeQkn4Imvc2O2YMm9n9RwAS1VmhHGcy0psJMTAl6B1YpZj868PErPdiI4p2BD0jr 0PKA== X-Gm-Message-State: APjAAAUVo6Y4j160MPMMozAnS6e38QEA1wqsCli56xfwm5IlfhLHhgqh 8p9k9eUYD1m0jaZFz7MD1yrwdVYey5wT X-Received: by 2002:a63:a34b:: with SMTP id v11mr33495694pgn.229.1579113816781; Wed, 15 Jan 2020 10:43:36 -0800 (PST) Date: Wed, 15 Jan 2020 10:43:05 -0800 In-Reply-To: <20200115184308.162644-1-brianvv@google.com> Message-Id: <20200115184308.162644-7-brianvv@google.com> Mime-Version: 1.0 References: <20200115184308.162644-1-brianvv@google.com> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog Subject: [PATCH v5 bpf-next 6/9] 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 , Andrii Nakryiko , 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 52966e758fe59..9536729a03d57 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 { @@ -420,6 +424,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.25.0.rc1.283.g88dfdc4193-goog