Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5430640ybl; Tue, 14 Jan 2020 08:49:03 -0800 (PST) X-Google-Smtp-Source: APXvYqxLBN/N80b8YkZQvRMsOGWlIQbw5L5f3URsrNKWOEp0/KNLj/lvehcnF6IywT7/NlYUDy9k X-Received: by 2002:a9d:6b91:: with SMTP id b17mr18016989otq.321.1579020543271; Tue, 14 Jan 2020 08:49:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579020543; cv=none; d=google.com; s=arc-20160816; b=bh4o8uP2nI5WOq4nXpW+qgcGeuWsb2XHcEBSD3i9hGYvj52dBsMEFqbqCVIeHqHeuf CtXDLAIcodrgyJRiEstEVpL5YKmoE1ncK1GOiTQw5V6wQxpc5Lmij5anCNN/f3rM2wFU Spq1zHkOK3i8t8TDNkZKOclG7g3MWAG6DyKR7eMcm5JGxP7WgkOfCdpiGd7vsWpB65uB 6+DA/cQ/dXeWj+6Z6PSDtsX6hZ43f+f2l4V6W/lxtwNn3uwIYsSEMfAYGnFSLtGDVjoF +g+gYYCYSXEmw6fHFNcdiaAv1ejPX17uVj+zq5wznEYoqvpZ0ze9J1vx8jqK/z9wCUhK bFzg== 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=BiNnxHP5VS3cc1sHhReMJL0zkni4FVjXX+zgc3f8E/ZNi4TiNpmnzBRqzBnI8aLjLI rdl48BrAlZDXJaPYpwqV//yTFVEyFOtEGBxbNye6ztwAHunO0FLcnm2CcCkEmjgzEw57 huEuemCbNHb9h8mpipcFCHfVNSe70zDaeO7p9puTwce/c4/PEwOb74/EGE18D9aceEdS kGQaHeFztcpIymNNoiLZVjuqcDPi9TdVYT+VW9Rvph/B6hfcFyfrPHrxxAoZ5kObiSAo DcNaxOpY0fAcAPULW/j5C6c0Ag9o3dudXax2fSh3cECo7vpi0NGzs7ldLVTU5NqQYEcl OJiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=fxhBY6GJ; 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 17si9842114otv.149.2020.01.14.08.48.51; Tue, 14 Jan 2020 08:49:03 -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=fxhBY6GJ; 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 S1729052AbgANQqy (ORCPT + 99 others); Tue, 14 Jan 2020 11:46:54 -0500 Received: from mail-pf1-f202.google.com ([209.85.210.202]:56926 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729031AbgANQqw (ORCPT ); Tue, 14 Jan 2020 11:46:52 -0500 Received: by mail-pf1-f202.google.com with SMTP id h16so9103302pfn.23 for ; Tue, 14 Jan 2020 08:46:52 -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=fxhBY6GJyfZmJR7rTwfsKpKUIE04Kq0SWTO9fSrJydbyqAZ42ZVfBxUf2cZ1MzpoXX HITp9Cai+fr1dHgI3V51RVruG5RorGsWMyN5/CI7b6DOMq9eDOdfUXoxNB7vw3CJp2v0 jcGjw1bpE3K2LG3UQz3ZQoc/7rjuvDUibLkKhQfGlzDsPtd6e7oOT9eD1AdlGH3XYbIS O5xCae37Owl9agHMXCJNt1obzV2ks2PQVaTz5MlrTqAZbop1P4zEZJSozMoJD+PUMbyG GtfhTT943n+DR6wff+3Iy5x13KDeRAiuABvRCE0kTCuKHTmnXut7e24JHadrdTVFomMJ OJqg== 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=tuzFcB1YeXtBxIEQrSl+M3rpie0BVxyny7h+9lMLyvOGkisgvCDwIANHz2aaM2h1lJ WKpiF4d5ihQs7MpfZoUvTVTfCbaMpsTa/tUa5uBy6I706CYx2IHN3xI3l5YoisOQdzIB CM9fcuA0WN6muy1hihWgm2OMqKk6kCTqoZ1uqUhpp2XPa9kDbNuYFcpqu9nwt+vmdME6 4pCLw4UXZgUnSwQ341DH4fU0q2KSUaY8WDevVJpfNozGrT9CPAcAeRxkp0xRu7I2itkA 7XuWlIClC3KRBaafP6TnrH+NqdcmNKb47O4eUyq5GtKcWBaYXXfrsCLK2guCGykPnEW+ EbcQ== X-Gm-Message-State: APjAAAXsPCH7Z5nH7Xt5FJ2v5hlTuCagvL8CciPEtV9pF+iAf5eBeW1R FtHQi+y6V93MsatGU/1JYSNFJUgU7ro1 X-Received: by 2002:a63:4a1c:: with SMTP id x28mr27353866pga.7.1579020411670; Tue, 14 Jan 2020 08:46:51 -0800 (PST) Date: Tue, 14 Jan 2020 08:46:11 -0800 In-Reply-To: <20200114164614.47029-1-brianvv@google.com> Message-Id: <20200114164614.47029-8-brianvv@google.com> Mime-Version: 1.0 References: <20200114164614.47029-1-brianvv@google.com> X-Mailer: git-send-email 2.25.0.rc1.283.g88dfdc4193-goog Subject: [PATCH v4 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