Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp22275397ybl; Mon, 6 Jan 2020 22:52:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzRpS2m1KIws5x1fcmicPPq9gKeL62s7QAm4Sd5K1yoU33fqsQfYcS0/tC0llqUkAEp4Q1Z X-Received: by 2002:a9d:2028:: with SMTP id n37mr124981879ota.127.1578379973479; Mon, 06 Jan 2020 22:52:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578379973; cv=none; d=google.com; s=arc-20160816; b=nuU5cJfJNooG5hG7fcXl97HaYp/BBb0jiA4/lcsS0msWLLoOfMpmAW04AMPVnX5EDd xJVd1gXtZfoWdcdEE5ce66CUiKDh1jzwH+qQNzXl765e369NZZ3E8XBo+rqBiVc0CTfr WICRRzULP3E57ij1WuL4johiPjtHIyzzDOZxydKWecAVkHvaxUKY81EpB9WxbDJBob// d2H1h4hrKdJCXZBjKdOzcy/fbMpSN9KCd2i6TrD+iOjQt7iPILqRlyuyWZ5FWkrrMf3c pvEsReyri0wWodXED0WLLa0uSD9FKrgpO3v6K5StE8EC1VY0GkdD6bNkuIVG+WpACQDj TL8A== 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=WUnO+radcDoArHUxgY/LqGVsNr7soHSA+IuBZIqQcIk=; b=ygCNodlBg7LjedHkmFrCoVGKyGeGFvR3WtnsawNZuazoVTyAWQOfq1ubSO8Ab1L0tU VFODO/i3T2DBD9RE/uQmuXtbKJHCi3vfqeroXn71h6sQkuSpsUcRU+gDi/X4FMQgIPt6 1PtzcVMu2ahn0Sobqv+Yse5BgSHSc30Pt6BWQXAHfHG00eRbnXshf6Iwpr8NnTSVNoVL mHwZh+C5eBq8ow+QyKonS0ITmVO6fYK1VL+65N7PAnTuNUcnxvtCaQdHjhl31DNXxPyS iFpoyZOFWrKFtlDGrH5XiJ8Cc7wIjNUia1wEZWRGLgLJnLjKVfdV82lpdWD8aTdo5eY3 V3lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OswjlB0+; 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 i11si36543142otc.105.2020.01.06.22.52.40; Mon, 06 Jan 2020 22:52:53 -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=OswjlB0+; 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 S1727084AbgAGGwC (ORCPT + 99 others); Tue, 7 Jan 2020 01:52:02 -0500 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41760 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbgAGGwC (ORCPT ); Tue, 7 Jan 2020 01:52:02 -0500 Received: by mail-lf1-f65.google.com with SMTP id m30so38065162lfp.8; Mon, 06 Jan 2020 22:52:00 -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=WUnO+radcDoArHUxgY/LqGVsNr7soHSA+IuBZIqQcIk=; b=OswjlB0+mvHFQ7VjpegU5m7dK61DFSydo/6/E18tQRfS94B3kqMk4IUuUb0880SuC7 CtUQ9zxX1/AukkI8C8ugs7CsT7OdtYlkdFGZKBY922rcdnXgQLoQv/OUga1JhHbmoU0f bePjw0urMLkJaaoV1iQZ4ieAulDYNKUpXJZcsA9vUyJ/W+Eu3fBphRObpdRWU2YdgJtn cQX+z4CESHsSyBWttKiw6W18nCooOooY55qC3dVej1Eec62yWaBv0Qze1BPaL2zqaeuT tdna7fpLGOin/0zMsMfo25E/xJRBlc6At61vrOdbcJhYeDozQ9Ra2F9x3amgACZ3QPPe 0UMA== 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=WUnO+radcDoArHUxgY/LqGVsNr7soHSA+IuBZIqQcIk=; b=mYuya3GC4p278QJRJYidwz1e4bhk9WIFJ0LFs9aFobE5BY/9EpZq/sRH0Gx4GsHKLQ dBZBr6yGZsePczxiF6+on7LsNxp4aYxz+EDwxLYaXi/9fJ0M336qcDqWrfKq0mnwRLOV FqKndsLyZvNGE0YhQQ/CH+dE7vmy1mNIOhaDh8TQdtUJQfNuIrOGg1XtKlJBu76Ckd3q e8I0OuegSrKh4PTxJqZCCZ2mgEBd5iMO7mPneZqArj1RXxr4DkrJtq2H76C1kePDaMdj EImmM1DRiIoyuMoW0Ksmmr1IUWYP5K/uyPHaug6nDzB3EilwZ2SdPPlfXd29K534y2f5 +FXA== X-Gm-Message-State: APjAAAUMZDFJCjlrlOm4cHRzb19v1kW6v5n3r1dS7C6I2DR/S4Po5aRE lgFJ+pEU/wbxCgvBLpnP9OrbL4doX2TE/Fy6hF0E7A== X-Received: by 2002:ac2:4436:: with SMTP id w22mr58809295lfl.185.1578379919959; Mon, 06 Jan 2020 22:51:59 -0800 (PST) MIME-Version: 1.0 References: <20191211223344.165549-1-brianvv@google.com> <20191211223344.165549-9-brianvv@google.com> In-Reply-To: From: Brian Vazquez Date: Tue, 7 Jan 2020 00:51:48 -0600 Message-ID: Subject: Re: [PATCH v3 bpf-next 08/11] libbpf: add libbpf support to batch ops To: Andrii Nakryiko 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 Thanks for reviewing it, Andrii! On Wed, Dec 18, 2019 at 6:54 PM Andrii Nakryiko wrote: > > 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). I will add this to next version. > > > tools/lib/bpf/bpf.c | 61 ++++++++++++++++++++++++++++++++++++++++ > > tools/lib/bpf/bpf.h | 14 +++++++++ > > tools/lib/bpf/libbpf.map | 4 +++ > > 3 files changed, 79 insertions(+) > > > > [...]