Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1333439ybl; Wed, 18 Dec 2019 16:56:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxRfucVJcqyRLujREauD0rkTXZEzcu7ZtHN/wCslZG8nE4xi2MbpYdxHVdOCUA25Df/J5v/ X-Received: by 2002:a9d:4d8d:: with SMTP id u13mr5614394otk.299.1576716983709; Wed, 18 Dec 2019 16:56:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576716983; cv=none; d=google.com; s=arc-20160816; b=VYNENv0WHHHu4M8p5gkVhm0ohh/7+ESKS17d1rFp8OyWu71T25diUOmRSrvPlEGni8 +wQtgnfKmOJBoUXa+oDyyXweHAPVnOzAPenyAUysidy0WtKpzVYlt98ecWxvALudNimt o5RTmWuotb9huwBrru0hhe/5bEHdcO4hQv9FsV+J0i4Tqs92ewW5objXgrKg4LFllLMR /MeO64+G95MiCArSli7iiw2b/x+UTBtikVrO3JRPrk4ZITwA5pV1BimT87HDnWW6frtY ZCBIEuETim2P/mRaCEx5b4CejQ8KZNq4X0fy9rmkWcyD+6q4E+6qFOkDVBXkV9F7DZGa ENGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=A1Urs4RsdGYBrM/Z6psT6VFuLwM10wg/j95CYysxehQ=; b=QwsCoDjNfLwmhyihbfhRaDa3q7tP5TiFponM9t0nYpjm/COsJaZXLtP5QvaM6Rd1LH YjW6IyALWUy/PwynRtN5WL3ujZ8LS2ENQqX+S+f9OKfUffK/H4FBNekuhUDAGh1RyDTZ P5aCSZ2UUMmpohgEtaUfQHJMc9m9axd3EzSlvGX1GRaaviQ8VmDJ+avm05G72KCuGU8c MtSztmxjyQ23n85JyEIKB3hGsReeGLK9fkAeTQaNtboa/yS2GXSbQXCA5HWVpNizWYot NXAfqBA/+MWHqNmci4qZgCH4YC0KUdObsm1Uuqz3IGD2v3w7/wJFK9FMvXE50ZD0qX3C /HSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QafT74dz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1si2368078otq.322.2019.12.18.16.56.12; Wed, 18 Dec 2019 16:56:23 -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=@gmail.com header.s=20161025 header.b=QafT74dz; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726721AbfLSAyk (ORCPT + 99 others); Wed, 18 Dec 2019 19:54:40 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:45463 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726518AbfLSAyk (ORCPT ); Wed, 18 Dec 2019 19:54:40 -0500 Received: by mail-qt1-f196.google.com with SMTP id l12so3542480qtq.12; Wed, 18 Dec 2019 16:54:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=A1Urs4RsdGYBrM/Z6psT6VFuLwM10wg/j95CYysxehQ=; b=QafT74dzFrnd5FdUc7ZzJZlaKDob9h1sLpE+XITJl54ZNHghpJtwWE7dcAkDiPKqhX lbx2ass0Ebil/RJsJijTZP3Js7drMaUnjPbmxgFL73QBDCWFkHtn8OnDLO7T2pW41HaO nPio5pHds+vJOAx6gQvrzuGJzL+qNvKkFbJWykiaU1K1mEuKaGQG3t4zi8vdh6XGuiH8 ypLnvN3hshsvmwhleq2fcjUpOqWlbaAbajNsGYxNtjdDW5RmWuUhZYXkTQHWs8eDVOTT MGsQrBruQfvqqAkjtR3vXomeOsANkyO9SBKlLxmJq+BKIo4lj4y7nlZPQGHhrrLkQvtV 3yhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=A1Urs4RsdGYBrM/Z6psT6VFuLwM10wg/j95CYysxehQ=; b=oZItB2ygC0o5F3mWiVDgyWz6NPeCRL5UaBjJJQ9vuXKBm4qLLtpWFDkiSBuZpy+ls6 qGcpg4LsYNzArxP1WZAAI0hxEqcy5Ni8sG/8DVdRM7nax4hqM9A3DxsP1+3CGFNf3IvV 9os9N2OSHx0IseynNSnTve2eC9QmN/IPBVJYQ+WjXZ9HtM8ZiK/UpOoPRCLYidmDxeCS i+Dl5VLY1e0C+UNUfTApaUgG0XZrletARbniOUOnDWrlSHu4VD/GXLQFxs/26wgzJdM2 KNPeV18mx4mgqyEEAVUNGZxySGvSSUIW/M42xOZhuN6L4MyA8Z6D1kBSUIxhssv7O76+ cbUw== X-Gm-Message-State: APjAAAWHNDtrueTMU6ZEgEFAq9nRow6hjQaCQ6RxOoEQguewxlVrlX/q RcABIhZfkIbqKgCQgtwKEq/+Ob6sJOo9HIR2Atc= X-Received: by 2002:ac8:4050:: with SMTP id j16mr4757783qtl.171.1576716879274; Wed, 18 Dec 2019 16:54:39 -0800 (PST) MIME-Version: 1.0 References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-9-brianvv@google.com> In-Reply-To: <20191211223344.165549-9-brianvv@google.com> From: Andrii Nakryiko Date: Wed, 18 Dec 2019 16:54:28 -0800 Message-ID: Subject: Re: [PATCH v3 bpf-next 08/11] libbpf: add libbpf support to batch ops To: Brian Vazquez Cc: Brian Vazquez , Alexei Starovoitov , Daniel Borkmann , "David S . Miller" , Yonghong Song , Stanislav Fomichev , Petar Penkov , Willem de Bruijn , open list , Networking , bpf 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 On Wed, Dec 11, 2019 at 2:35 PM Brian Vazquez wrote: > > From: Yonghong Song > > Added four libbpf API functions to support map batch operations: > . int bpf_map_delete_batch( ... ) > . int bpf_map_lookup_batch( ... ) > . int bpf_map_lookup_and_delete_batch( ... ) > . int bpf_map_update_batch( ... ) > > Signed-off-by: Yonghong Song > --- These libbpf APIs should use _opts approach from the get go to make them extensible, but preserving backwards/forward compatibility. Please take a look at one of few that are already using them (or follow Andrey's bpf_prog_attach work, as he's adding opts-based one at the moment). > tools/lib/bpf/bpf.c | 61 ++++++++++++++++++++++++++++++++++++++++ > tools/lib/bpf/bpf.h | 14 +++++++++ > tools/lib/bpf/libbpf.map | 4 +++ > 3 files changed, 79 insertions(+) > [...]