Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp195784lqr; Wed, 5 Jun 2024 03:21:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWSOC6UNgLm6PSoNp+ofmjUUvSGNGdf6joIVqrTBNttf+pyNp3xzxN8ETXk0Ptg8iT3MnZEzOAK5iItQzhdGbDjwAPKLOypO1nYZcLD/w== X-Google-Smtp-Source: AGHT+IGoyvQDeX2p3I0ETI/YBllBJuqQ+92NWN340OdAMQa1NtPeVmULvKaznq4eUoUg4gYEEJcl X-Received: by 2002:a05:6358:520d:b0:186:2ac7:316c with SMTP id e5c5f4694b2df-19c6c8facc3mr247319955d.20.1717582892725; Wed, 05 Jun 2024 03:21:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717582892; cv=pass; d=google.com; s=arc-20160816; b=u0P8r9vzYLyhZIaZWRHrAL/mlN5h/1u4Y0M6ABCqtqHogFT2LzcQn1d2ORsi9qstjV vU1bUrkBAtAXkzVMiXocJUmzBliedxsS0z4OAJQZCd8spxEzKen8UUbMjQbE+BxsMUVP 0IdS4boCcrce/94dC1fBlGUQtR42hUL/c5+9fs6vX96MP8CXhV4jce2kYlDOrqPPhi/s qRqDMGTcsr62pX4Si8/uGm7LE31f3HU0f2IofQCA0OTOzBNRj0050yynhEwO3XwiRtfc wDsajz3qXFo7+yNi13XKuKOuC6ImJyx5Q0bwgKoEu2PZpGJA0xKbi+N+LBOcWkNBXz8N kI5Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; fh=LTc4Hb4W7pKNktNLaCH6h7R2Xz3btjyglYFzxzxydB0=; b=BRVEUnsCN8baCLE5RZGh1idVFEjQZyR4BCKmTvUcg597Xxloec7rQKG3b+kF2lHezl VlYgPD18EH1GDFgayVSlkOkFynaYQpVWVk7CSIe4GwMemke0cplQknuVf1/VE3Y3MQrk y+iNoNquyQxXCfXCHGMFRcfKovVfWObhMQiJpWF/6o5tDQP+sZBN0XNh98qPneCtxhuh neu+NxCRHwG86lweNKE65D9EPdCB+//xucGbT4CqEnc11emJsYkew13CS6UD8yeLBtA9 2riRZP4S38tUpbOhdziGSfAEzrtbdliAC13u3utksFSb9RePY58/9+ZsdDsffCMXhGAC obDg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JnkhzBEi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-202187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c355153566si2282289a12.216.2024.06.05.03.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JnkhzBEi; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-202187-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202187-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 5D3BB282DC0 for ; Wed, 5 Jun 2024 10:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 476071922C3; Wed, 5 Jun 2024 10:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JnkhzBEi" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 E8EC719147F for ; Wed, 5 Jun 2024 10:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582848; cv=none; b=g8HbeQPuGoknejk2vh07DZfji88t0EprijUXDQKAuc1enz+o8SBHLmn4Zr+9FN2AFarIHpnM+NN5id7IuFtqHpvwFdFo4zwcIyUjlx1b2XmV6lOlsZkTj4u8rTucBa6blnsGpP1tmclFfJBleBaO13lpg8JxInoJY7SXYyFTvLA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717582848; c=relaxed/simple; bh=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=it43f7e/7q5Qxb2+k1hXQQ41T5JTKivtiTiIBsafEI2BltlgTvPK0eK/0fK36xqQ8ij1wRFKCXIp5NcbO5YdWQScsirzDCxdgl6Xo4GqfJezAjznL8Twdc1djN5MZe53B67/3lozgj9bTjTqnOanSD1RJIFVJRKkDQ7b8YpM2LI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JnkhzBEi; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1717582845; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; b=JnkhzBEi0gX5GrRWaJHd8DnchgZtrMMyZhwOMwfqUUoVJ2YiO00K+RFVnFdZhOreveiXtl nCk9AkJtb5YTvlPaGMug9yYCR7mV+xmsi3/C3M8+bjI3fSUFs8Mb5pEuWJGk3DdN3kmi6D h1PUnOwY0sjwhi2+PmhV3JOFKAWKjoI= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-58-khhRVAZCPm68jtgGVUE43w-1; Wed, 05 Jun 2024 06:20:44 -0400 X-MC-Unique: khhRVAZCPm68jtgGVUE43w-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-42120e123beso59545775e9.0 for ; Wed, 05 Jun 2024 03:20:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717582843; x=1718187643; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3+/0pw4u2JaQ4V4b0wPU5b5kRPyOdE+6zuH2exjbjLI=; b=B3gyXdiuS2zAHIvmgbX6pJ3vlPQCz1yPTX9nzlO6A+9u4FP6BUr/VJq43q/StljzIb PIi7djLSbWi4HIyWRxLJ3Z8HxOR+PEkfaLhKgM1X0TiVyWZc89ylkNDb8Zc0sSjQMNwW 673jf/h1vRDg/Tz8m4kAXARZDcLd/Zdi99DCO+jWsrKEPnhE5XB0KzEKkdNWTXRVyy/6 8Yo9pDm58XzvrzlfJvlMFDSddiK0C2CsodukpSKAOkfzmU6iKbgdKK2T1Aw3S9M7HYAg M2KViHdiNFzhA5SoECd7kcJs55oChxorlGCEPoRj8UZeGmf2JXksbp3BvTAMwF9G5L6B rZFw== X-Forwarded-Encrypted: i=1; AJvYcCV5He32oZVYYpBecb9UWjIWUQEgfy7lZ/owfR9FUOrPFVoPNHZgn6lLslAEnwAAIYNGvxqnp9wIWk5FZxrj+gjsQxthw8buOdeGjQ6W X-Gm-Message-State: AOJu0YzAIDox0vXICvDLQajpbtS2m7jpfiUhyZqSMT8oSDizSb3Lbvn5 ASUBObnNqG/6+3cZYeq7e6AYpLsQsTvY2WWLXjEHOMewTuhZkhnkCKXgAhYjs4n+0NxX+9EA5Hr Lo8zRKknGDYDwA7DKhEV2VUGHnqIgOZrOE1Ja5j+UAFcy0F3I5NAwzgBfsJC7Ug== X-Received: by 2002:a05:600c:35c1:b0:416:8efd:1645 with SMTP id 5b1f17b1804b1-421562c354emr21673355e9.7.1717582843330; Wed, 05 Jun 2024 03:20:43 -0700 (PDT) X-Received: by 2002:a05:600c:35c1:b0:416:8efd:1645 with SMTP id 5b1f17b1804b1-421562c354emr21672985e9.7.1717582842778; Wed, 05 Jun 2024 03:20:42 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a0c:4d80:42:443::2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd064b684sm14225962f8f.100.2024.06.05.03.20.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:20:42 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id 903B613854FC; Wed, 05 Jun 2024 12:20:41 +0200 (CEST) From: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= 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 , Sebastian Andrzej Siewior , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Andrii Nakryiko , Eduard Zingerman , Hao Luo , Jesper Dangaard Brouer , Jiri Olsa , John Fastabend , Jonathan Lemon , KP Singh , Maciej Fijalkowski , Magnus Karlsson , Martin KaFai Lau , Song Liu , Stanislav Fomichev , Yonghong Song , bpf@vger.kernel.org Subject: Re: [PATCH v4 net-next 14/14] net: Move per-CPU flush-lists to bpf_net_context on PREEMPT_RT. In-Reply-To: <20240604154425.878636-15-bigeasy@linutronix.de> References: <20240604154425.878636-1-bigeasy@linutronix.de> <20240604154425.878636-15-bigeasy@linutronix.de> X-Clacks-Overhead: GNU Terry Pratchett Date: Wed, 05 Jun 2024 12:20:41 +0200 Message-ID: <87cyovadxi.fsf@toke.dk> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Sebastian Andrzej Siewior writes: > 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. > > Cc: "Bj=C3=B6rn T=C3=B6pel" > Cc: Alexei Starovoitov > Cc: Andrii Nakryiko > Cc: Eduard Zingerman > Cc: Hao Luo > Cc: Jesper Dangaard Brouer > Cc: Jiri Olsa > Cc: John Fastabend > Cc: Jonathan Lemon > Cc: KP Singh > Cc: Maciej Fijalkowski > Cc: Magnus Karlsson > Cc: Martin KaFai Lau > Cc: Song Liu > Cc: Stanislav Fomichev > Cc: Toke H=C3=B8iland-J=C3=B8rgensen > Cc: Yonghong Song > Cc: bpf@vger.kernel.org > Signed-off-by: Sebastian Andrzej Siewior Reviewed-by: Toke H=C3=B8iland-J=C3=B8rgensen