From patchwork Sun Nov 10 11:29:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Lehner X-Patchwork-Id: 13869786 Received: from mx.der-flo.net (mx.der-flo.net [193.160.39.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A1661494B5 for ; Sun, 10 Nov 2024 11:37:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.160.39.236 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731238648; cv=none; b=tJQ5DHRldyBK+VNFibpOYxMYLWRZ7PEe35kcWtFGxiilq1bQyaUnp7ZCXJoIYWnZd7g7qFGKS/bDfRff2qHJc2+ZawmF1Qa0/wbhsDQYZ8VuewvWzquK6koQXAQpvwzmiaoqHX42ZtXXcjbM4lK/MwfbkOXZl/BDdvFJHb2Vcuc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731238648; c=relaxed/simple; bh=MT/hBeHLsTrtOnKS4H86XC/AHRqj02GqG07HL+46VNM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q3C9ugtzy4F4sBnnRRWVfwHNIVm0+xU9MeEmdtoB1zoxcfkm/wHfvH60JFRjTAdWX9S5XRVErAqqIAdfdO/o9wOA+2gyRJ2UOtuFX7m40rElhdg8Zab5ZzBdxKSi8eZJX7NHNQwDsMPj6A6+HYzteypc/d9eYJA7W++2Xs2prnA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=der-flo.net; spf=pass smtp.mailfrom=der-flo.net; arc=none smtp.client-ip=193.160.39.236 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=der-flo.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=der-flo.net From: Florian Lehner To: bpf@vger.kernel.org Cc: ast@kernel.org, daniel@iogearbox.net, andrii@kernel.org, martin.lau@linux.dev, eddyz87@gmail.com, song@kernel.org, yonghong.song@linux.dev, john.fastabend@gmail.com, kpsingh@kernel.org, sdf@fomichev.me, haoluo@google.com, jolsa@kernel.org, aspsk@isovalent.com, kees@kernel.org, quic_abchauha@quicinc.com, martin.kelly@crowdstrike.com, mykolal@fb.com, shuah@kernel.org, yikai.lin@vivo.com, Florian Lehner Subject: [bpf-next 0/2] bpf: Add flag for batch operation Date: Sun, 10 Nov 2024 12:29:02 +0100 Message-ID: <20241110112905.64616-1-dev@der-flo.net> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: bpf@iogearbox.net Introduce a new flag for batch operations that allows the deletion process to continue even if certain keys are missing. This simplifies map flushing by eliminating the requirement to maintain a separate list of keys and makes sure maps can be flushed with a single batch delete operation. Florian Lehner (2): bpf: Add flag to continue batch operation selftests/bpf: Add a test for batch operation flag include/uapi/linux/bpf.h | 5 +++++ kernel/bpf/syscall.c | 14 ++++++++++--- tools/include/uapi/linux/bpf.h | 5 +++++ .../bpf/map_tests/htab_map_batch_ops.c | 20 ++++++++++++++++++- 4 files changed, 40 insertions(+), 4 deletions(-)