Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1126808rwi; Thu, 13 Oct 2022 09:21:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6V6fuAtO4S07qUHEJkiU+BBj4yVp15Yu5kyu01VxHlXbqPvEj2XTwUo45p2e/J0ogJ9fvU X-Received: by 2002:a62:1a97:0:b0:562:5587:12d6 with SMTP id a145-20020a621a97000000b00562558712d6mr454677pfa.37.1665678117588; Thu, 13 Oct 2022 09:21:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665678117; cv=none; d=google.com; s=arc-20160816; b=TWKSmOSDDjzJE2xU+kNUIC7KV/hV/UvWEb3CXju60PMV6m++4HtI/+zU+nlrJqnEag w2oCveTqVNkGWT6bfy1T/E/3+iGX9bUJy3wpPzsyxV3NoeVucGTc7LTn3Bs0jv2AHqyI HejJQZ7MZFMdLCVG74ahtc1eqlYQke8CrTmFGkbjUBpw/jLoDXXexHTxPENPfLsaweuS WiRQiqd1vGjn2HxmWyrSUywZhsbB1WBbd1QaO6Er9OmgdyOsYiaCDbpo7eKWPLcVszQ8 yfmj2QJ1c4Z4qsd53SxUjlhlkiX1tYdEHFE+AzjqkdVbg1FsFSxMyovo2a+ON5e2u0OQ pYcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=mrhzedT4uowykqL7w73+z/iE6lT4xrHDk6CjJTA60Q8=; b=uGVoM8Kp65LUMJS1ZkaMzZ/NQnZTnsyBvxLksrlpoEQAw52PmXlSZ3mHlXWv7xOg+c YzJ0SUReg/BsFtf/LkcQW2zwYIJZwuZz1sfoEln88F26rrxSwDTLzDn9Av9vNLubIAwW YRtJ8/EnJZ4h+30NtjAePK2SwVZg8fa+zgDytYqSrsqLeb59c6H7puEBpgZn9IvNjp5e Cw5Y27iuyorLG2fQoS6RX1fZF/Bp+1xZL+b5MsFee33gxL1wrYYKmHws7WvFjtMX4SNu K/f9l2x1RY+3Ar4coI4nKHfKGa0VGaY1Jwouwc+RdgxLfowHHMhzVtOCgCsGcC1Q+3by qyGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YBwixWrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h62-20020a638341000000b0046aff26fe6dsi2801391pge.498.2022.10.13.09.21.42; Thu, 13 Oct 2022 09:21:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YBwixWrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbiJMPmX (ORCPT + 99 others); Thu, 13 Oct 2022 11:42:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229886AbiJMPlb (ORCPT ); Thu, 13 Oct 2022 11:41:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 273AA122743; Thu, 13 Oct 2022 08:40:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A5D00B81ED7; Thu, 13 Oct 2022 15:40:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 4BF72C43470; Thu, 13 Oct 2022 15:40:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665675616; bh=J/lwPJ5WiIjf30qtkle/UiARXMiDCL/Vgen5+KfB8RY=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=YBwixWrzs29BZ3t0lHmymJ9Myibanwt+BNSKxIfWAXODfxzbVodPWVxR8QBImvcPq E+/Sa9STOHbY5SBa+0Lk5sA5q00flLyU66uaSo1mk30pnR/ohw9M++chA+PlL+QvZo O8i3CdEcbdsUVKqeR+eJB6N9YvgIRB9uoTTskr7u8dHwrIchEOK+W0C0jW+T+JhXCB TvUAYoAzitBK5ZJVYbZo8EUVrU91Fy/ZEqVj+mjZoyzwjKZnCJ3V27ED4VbOwwSFCL U9zK/fAvc2ZNbBjo5up94Xkt7EQSc1p+36Y+f+8gtIfA5tQ+o8hwj7pq01P0vKgD9h HZU9kKNaHpjyQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 176DEE4D00C; Thu, 13 Oct 2022 15:40:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH 0/2] Allow bpf_user_ringbuf_drain() callbacks to return 1 From: patchwork-bot+netdevbpf@kernel.org Message-Id: <166567561608.22924.7276455354921254094.git-patchwork-notify@kernel.org> Date: Thu, 13 Oct 2022 15:40:16 +0000 References: <20221012232015.1510043-1-void@manifault.com> In-Reply-To: <20221012232015.1510043-1-void@manifault.com> To: David Vernet Cc: bpf@vger.kernel.org, andrii@kernel.org, ast@kernel.org, martin.lau@linux.dev, daniel@iogearbox.net, song@kernel.org, yhs@fb.com, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@google.com, haoluo@google.com, jolsa@kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This series was applied to bpf/bpf.git (master) by Andrii Nakryiko : On Wed, 12 Oct 2022 18:20:13 -0500 you wrote: > The bpf_user_ringbuf_drain() helper function allows a BPF program to > specify a callback that is invoked when draining entries from a > BPF_MAP_TYPE_USER_RINGBUF ring buffer map. The API is meant to allow the > callback to return 0 if it wants to continue draining samples, and 1 if > it's done draining. Unfortunately, bpf_user_ringbuf_drain() landed shortly > after commit 1bfe26fb0827 ("bpf: Add verifier support for custom > callback return range"), which changed the default behavior of callbacks > to only support returning 0, and the corresponding necessary change to > bpf_user_ringbuf_drain() callbacks was missed. > > [...] Here is the summary with links: - [1/2] bpf: Allow bpf_user_ringbuf_drain() callbacks to return 1 https://git.kernel.org/bpf/bpf/c/c92a7a522438 - [2/2] selftests/bpf: Make bpf_user_ringbuf_drain() selftest callback return 1 https://git.kernel.org/bpf/bpf/c/6e44b9f375a3 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html