Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp22045lqs; Thu, 13 Jun 2024 02:33:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPE6nCC7M0ZINAbvz2t0ie3A34awT3hf3xTOdJMmrtJ9NL8QpF8zYKug0K6O5vZf1FZo3am0RKJ67ZfElnTNZWEu5i6ka9IN8R5nnxpg== X-Google-Smtp-Source: AGHT+IFPQZ1XxmpGbV8t6t/l7mKHf6d3zxHvIvwMgxkggZgthIPCsZjQuA8gZXevbQ0Wy2iGe42N X-Received: by 2002:a05:620a:2455:b0:795:4c3c:c3be with SMTP id af79cd13be357-797f61d6b12mr375743385a.53.1718271230517; Thu, 13 Jun 2024 02:33:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718271230; cv=pass; d=google.com; s=arc-20160816; b=B8QWcMTpD2ymrdnTxEungUU76EvIIGnPFtxRYqTzZSApsyB8Fn4rb0WnNidGfFAF7X rz9sNBwuzflzRL8OgK4bKMlUea+Mb3jeuo6Rj/YRVzJJW5k1kAOaOvTyDK19OlZMBsg8 fkNtOAm81V9iSTip3vxxOW2w+aWTWunhgaMDkvAuBE6QQ/+JvLvTEXhzyHaz0QSnEvWf 15sISRLJbVK3+1Q2uy3j6WHK078qtQSeHHbqcZsUnTTYe9SVOU4OBKYwRlEO7IaCLn1T SwxAaQ0jExpAgTqXATRY0Fn/roPQnI3VXQYc7/BaroWQB0T7lr64oW4S2jOBbZcW1lzr QhTA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=junAKekzcc8UeArlbWofjed8MRQ5CCQrP2N60ismBX8=; fh=3at3qNDV6WN09P8NtuGZ/oEpHqHX6dBIty1gTJMwp+0=; b=wHXXpgoWJHUMUBqDydmkeksSLTiKBHz/qVPfcNMD3LfKTxCYbRXIvZnQBwjebAdq2y r5vFKHv/4uXJs5AmJGF581MQe1jjBeTX+Tocre1qdo4SAtc3mDlJe6w5YpzrP/seXXHk 8p6G3TrOZYe0Oz4zUABaNcycxzCbzKs/2ZD3KZsD/SUhOM91PQr7Ask/7rmiUeKS8lyj lKX6rw0gll7CXROY3NIyCFAcZFDDeorNbE39OGGHy5mdHxp79k4jm6RmEn2tBl1WizLt 9y9PqEXirKT4XUzLfAh01luuy4mTIvhZiLZZ8s4B6KhAZqOEBcRPeDps1KkysKCKJIpU iDFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hhVPUx1a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-441ef3baff9si10603701cf.61.2024.06.13.02.33.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 02:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hhVPUx1a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-212955-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212955-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id BDF041C243F3 for ; Thu, 13 Jun 2024 09:33:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B7AC413F45E; Thu, 13 Jun 2024 09:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hhVPUx1a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DA99C381C4; Thu, 13 Jun 2024 09:33:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271203; cv=none; b=AHQqVIaBUVOduacvCW8vd1bFzFkJf2FeZ/kVZnXkvuIrWPs4my+d+BBZBBb2LGDAAwN1bt4pmcQTCVtLlQZtIX47kyuxFxVD8cI26Dr9mkWiZ7OrfT8GsUrFEc1nLO65BgGS5bohuOCzJD3qkMdtjQJj7QK9WZGHzHhxrOsSEKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718271203; c=relaxed/simple; bh=FWl6WVfBlpItvEzqF3u++D6qEfqM0dklJ5gklTNJdEQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=SfjDEx6vNTbsVM8FuUj/eaqtwNQO1UcLrh96UenkvjahPivSvzS3N/wjufijcvpvQEEnFUkWwM/jhpfnIEFF4aBLTcaKhyg6SG0gPA+zmzHDktkDSrE4V2oetX0JieX71LAj0LZqLdtPC76KK1X8er4HtliNP6lNMErIfvoox0s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hhVPUx1a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23D98C2BBFC; Thu, 13 Jun 2024 09:33:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718271202; bh=FWl6WVfBlpItvEzqF3u++D6qEfqM0dklJ5gklTNJdEQ=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hhVPUx1aTpkibvfD8f5rMYGoHBBZazMbx62UeXCIfOcCEBK2nUvKbduGu97uQP9Ir G35Ew/uYrKje4//JhHIXXqjTiAS5mEeZtXApx1ZoEODg2usu0x9CpWQtmLVv9G3UBa 4SZzLj75cjVy7p+1hUVn6FSNsrGN+/ZYxdy20Yp3fRlK3ECN3XnrsnLIYqhdmNlIOh bYAuXxSovtTnDMPnNMj/5Z6mNVt8yiTW9nXilynB8rbFzy40tPwSGiF872vnhPKCRz 9zo/9vBE+Zpmb58fRvsxbIuN18z3wnRfF9M+Eg0jE1T8Q+xM2kZjDchiVMLrhRhmCN JhKJo381qFn6Q== Message-ID: <4d79cd91-50dc-402e-a4f5-785093341efc@kernel.org> Date: Thu, 13 Jun 2024 11:33:13 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 net-next 15/15] net: Move per-CPU flush-lists to bpf_net_context on PREEMPT_RT. To: Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Cc: "David S. Miller" , Daniel Bristot de Oliveira , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Andrii Nakryiko , Eduard Zingerman , Hao Luo , Jiri Olsa , John Fastabend , Jonathan Lemon , KP Singh , Maciej Fijalkowski , Magnus Karlsson , Martin KaFai Lau , Song Liu , Stanislav Fomichev , =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vu?= =?UTF-8?Q?sen?= , Yonghong Song , bpf@vger.kernel.org References: <20240612170303.3896084-1-bigeasy@linutronix.de> <20240612170303.3896084-16-bigeasy@linutronix.de> Content-Language: en-US From: Jesper Dangaard Brouer In-Reply-To: <20240612170303.3896084-16-bigeasy@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12/06/2024 18.44, Sebastian Andrzej Siewior wrote: > The per-CPU flush lists, which are accessed from within the NAPI callback > (xdp_do_flush() for instance), are per-CPU. There are subject to the > same problem as struct bpf_redirect_info. > > Add the per-CPU lists cpu_map_flush_list, dev_map_flush_list and > xskmap_map_flush_list to struct bpf_net_context. Add wrappers for the > access. The lists initialized on first usage (similar to > bpf_net_ctx_get_ri()). > [...] > Reviewed-by: Toke Høiland-Jørgensen > Signed-off-by: Sebastian Andrzej Siewior > --- > include/linux/filter.h | 42 ++++++++++++++++++++++++++++++++++++++++++ > kernel/bpf/cpumap.c | 19 +++---------------- > kernel/bpf/devmap.c | 11 +++-------- > net/xdp/xsk.c | 12 ++++-------- > 4 files changed, 52 insertions(+), 32 deletions(-) Acked-by: Jesper Dangaard Brouer