Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp928056ybc; Tue, 19 Nov 2019 11:33:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwCYMNEoEU8WoOw0nhtzTaqiL8eaNzooC0Lychzl8xPa3nU3QndKanfHzAvQCcrwKXZC1NF X-Received: by 2002:a5d:4609:: with SMTP id t9mr40306625wrq.178.1574191991490; Tue, 19 Nov 2019 11:33:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574191991; cv=none; d=google.com; s=arc-20160816; b=zJQNJF+wKT7NQgd1iwxbrkS9VUYSDtGML+FOMhnAJnARZeHDCtWMl7s0eMtbu2Zvt+ hxGYgf4nxc5jiV//BFUWZypcYPKy3u+urq0rP1zKW1TVxLAiPleWdFKOzA89GU5w0t9e 2C0/ZQGg+QAyx2hhjmAYnFAn7q8ijy+12Ez4t/j4cFRDEC3teonA+A/GR16tVUC86at5 MWgFv4YnbtdK3xMdqadSsN4LKLu6ghF5UKVGbqGAAdMJwNxM9B+ETXYcDjdi7b7N8nmo 1839t0SswVJjWkGTAKfRfFEnBKr8BqoRQi52pE1TMo0xNoxwjxYRrZhsQFRbJvzKDiQw alZw== 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=jXrWlSvxSIV7SLutAc92WU1LozEt5/o5gmsENSdeMlw=; b=MkSMBxWQFrTGmCFGg+ux8ttYk0HTF+x8P1iYCTCjHB8wKRaLLvK3a4ysmKJ3P09/WR G6O0HuDIN3SBBEgfl0e6tUoBW5HSWubnQT9yGmreVtMdkyS0BtykbwToZJUDeRwopuTB ZiXAsq/as5RfgN9lg20mSMGUbPh/a9DRZ07caveo/SLLD38q2Lz18uHesqueaUOQY0sY 8yp9MMS3wlnNJcYr+DBXoXVCcDPySptwEeb3anE2MqcGPWnNeuGGY+tNd8rO4ApoB7li kJBqJZNYKYY4Hy7Q0wM4zkkGAHgj4yNHVn192CqG4TlP6kT3Nuya5wVhh2DWb8OrykvN H+5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qRnAj9sL; 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 j9si17017691edf.35.2019.11.19.11.32.46; Tue, 19 Nov 2019 11:33:11 -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=qRnAj9sL; 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 S1727653AbfKSTbW (ORCPT + 99 others); Tue, 19 Nov 2019 14:31:22 -0500 Received: from mail-pf1-f202.google.com ([209.85.210.202]:46290 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727450AbfKSTa7 (ORCPT ); Tue, 19 Nov 2019 14:30:59 -0500 Received: by mail-pf1-f202.google.com with SMTP id 187so17529442pfu.13 for ; Tue, 19 Nov 2019 11:30:59 -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=jXrWlSvxSIV7SLutAc92WU1LozEt5/o5gmsENSdeMlw=; b=qRnAj9sLFjfyidZkY77ZuLNvqnfOM2c7OsFHowTq1B61urCpWGgj83PZqUwv5U68j9 nmbEI+CVIVaMsYYe7ObuAZuMsvdEgJcWUcmUpWqODQKgoVp4beMP4FHCd/GVTG5XMZ/f Dg8ad+YPlG7acNGLIInEzKl2qcrLhEYv0aIIWJ7hUcnXBaGP2yBNDg9GRZc4eNNhWMmB nbvi4sxTJTtMIcGb+pnb7UEcsm5lMb6mPQB1eShne6yUnHElJDYs2tPrnrSnvEtZlRCj dt1iusYpASeJ8MG0scyYp1twH2lT10O1Xa13zwoRQ1RBfonUk3C0quB6b2pe1QhIDQwI diEg== 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=jXrWlSvxSIV7SLutAc92WU1LozEt5/o5gmsENSdeMlw=; b=FU8ZzwSaWkbKJXdQ0RBFwgB6UEodYVYe6QnFp+84Z0tShTZRwilNC8pI+PZZcAbsMI HbVF8Sp+S1LIivSrFOKzR7Y9xyR3l8pKdCi+TVdAijOr03gKmXh7zbJiYURj6ILoesrH lwXmWhX59x+zelOvLF3iB06i9FultiiHuZyrkkMt57zZc6DwsfZc9yUXiBtR4Y6/oHF2 H/a7P0qWbO9J7AoXsrA/X7hHZLHMgVekKFY0+gtR9FjZlvwIDSBtaw3Qp9sQ2pmPhrD0 gYKWA0V/iV/R11k5vDfY0/xEFaPgHgKGfYWxpsTScG4dBLMUrAX0OW+PuXz7EU80z7Sk ZJyA== X-Gm-Message-State: APjAAAXL7hVU4+XYzyuoH/0SpFrYkMqUc2n5TIJsjd2S/y9YlNuQodI6 +w4VaQMMwfcoaPpcrvjrdtAhGr6pv0II X-Received: by 2002:a63:ff66:: with SMTP id s38mr7329802pgk.84.1574191858436; Tue, 19 Nov 2019 11:30:58 -0800 (PST) Date: Tue, 19 Nov 2019 11:30:33 -0800 In-Reply-To: <20191119193036.92831-1-brianvv@google.com> Message-Id: <20191119193036.92831-7-brianvv@google.com> Mime-Version: 1.0 References: <20191119193036.92831-1-brianvv@google.com> X-Mailer: git-send-email 2.24.0.432.g9d3f5f5b63-goog Subject: [PATCH v2 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 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 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