From patchwork Sun Apr 4 20:02:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pedro Tammela X-Patchwork-Id: 12182381 X-Patchwork-Delegate: bpf@iogearbox.net Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 43E88C433ED for ; Sun, 4 Apr 2021 20:04:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 168C361385 for ; Sun, 4 Apr 2021 20:04:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230169AbhDDUEU (ORCPT ); Sun, 4 Apr 2021 16:04:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231485AbhDDUES (ORCPT ); Sun, 4 Apr 2021 16:04:18 -0400 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE20CC061756; Sun, 4 Apr 2021 13:04:12 -0700 (PDT) Received: by mail-qt1-x82f.google.com with SMTP id 1so7253237qtb.0; Sun, 04 Apr 2021 13:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iJcQBQHa3ArWQfSBBBDBzWo2MXQV30RHUu9YjEMiTK4=; b=ISAZAYauh5kupfAWdUMkKIljxhjYC7VC2YMeOkipGUCATbNc/mIaFhmYnUSJdxwylK dCXaPMVBtzpXlvEBWpLEoaD9J60dNrFtcYzUJjn0cEkTL0ot6IXhfhQRK3ZWK4mYN4GK XpIhtiL/fNzQKAFIXwddQXNJYOHMi57LEXw/bEtk1u2WCVwbFOs9xT7E1ft/kQDoZENi m8B4C4Tm1BYa97eLwONdT/ZmBiM6rFqHy7SGm05YzdDj7jpJVn7LcMR9GSG2M7fMnVju zj72PJ1LuPDZGYGQH2wTubM5A+1/YqQIJPzdOiXGFC9mz40aQfRyMXy34h6rtyUkf3nk D3ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iJcQBQHa3ArWQfSBBBDBzWo2MXQV30RHUu9YjEMiTK4=; b=k/8bdPjbb7PGiRFCi68m9RNX4llF0NL0vEKBNrILbVQ3UeGjQtkYwN2blAa/5MhG3B tfd/4tboxbi9DqZwALF1gLx8WmJ/nJtqBRuJXTrZGWeScRMcHSYDGFNQ/lgIEiqSDGXn 3fSx4UxmG6ZGtxe1AhR+Jr9UvywABBXaKvMEj4qEsvzioWO63C7zVRdmWWBfjqzakcJl mfuw2K9gAutg5PWmv+t+tlTMlSWYM2l3km0EQurzzvDnBWvR8eyVFMm4ucqQPTeLRAhh CFH2hgBpwh6qT4Y2bj3rUxZIAxsFFUR2Mso15z6Oe5CEHa0qTDs1YZ0WHUDB9uLsBknK 7L6w== X-Gm-Message-State: AOAM532rM0tCkU+SBrXClawZ8pKK2ikvaJhLr0ni1TuoMGxpAPmCY+Dh kWRTLxI2z/vr/yYsTYbgGJ8= X-Google-Smtp-Source: ABdhPJyeoJsjeb9pSbR+iyvQSGB7f0JjlDEP4MTKhmGmBQBabgYz8BgVu6SKmhf4HX+k31hiu375zw== X-Received: by 2002:ac8:787:: with SMTP id l7mr19255501qth.280.1617566651479; Sun, 04 Apr 2021 13:04:11 -0700 (PDT) Received: from localhost.localdomain ([179.218.4.27]) by smtp.gmail.com with ESMTPSA id d24sm12163480qkl.49.2021.04.04.13.04.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 13:04:11 -0700 (PDT) From: Pedro Tammela X-Google-Original-From: Pedro Tammela To: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Shuah Khan , Pedro Tammela , David Verbeiren , Matthieu Baerts , netdev@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)), bpf@vger.kernel.org (open list:BPF (Safe dynamic programs and tools)), linux-kernel@vger.kernel.org (open list), linux-kselftest@vger.kernel.org (open list:KERNEL SELFTEST FRAMEWORK) Cc: Jamal Hadi Salim Subject: [PATCH bpf-next 1/3] bpf: add batched ops support for percpu array Date: Sun, 4 Apr 2021 17:02:46 -0300 Message-Id: <20210404200256.300532-2-pctammela@mojatatu.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210404200256.300532-1-pctammela@mojatatu.com> References: <20210404200256.300532-1-pctammela@mojatatu.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: bpf@vger.kernel.org X-Patchwork-Delegate: bpf@iogearbox.net Suggested-by: Jamal Hadi Salim Signed-off-by: Pedro Tammela --- kernel/bpf/arraymap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/bpf/arraymap.c b/kernel/bpf/arraymap.c index 463d25e1e67e..3c4105603f9d 100644 --- a/kernel/bpf/arraymap.c +++ b/kernel/bpf/arraymap.c @@ -698,6 +698,8 @@ const struct bpf_map_ops percpu_array_map_ops = { .map_delete_elem = array_map_delete_elem, .map_seq_show_elem = percpu_array_map_seq_show_elem, .map_check_btf = array_map_check_btf, + .map_lookup_batch = generic_map_lookup_batch, + .map_update_batch = generic_map_update_batch, .map_set_for_each_callback_args = map_set_for_each_callback_args, .map_for_each_callback = bpf_for_each_array_elem, .map_btf_name = "bpf_array",