Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp204223lqr; Wed, 5 Jun 2024 03:41:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVgsgSz0DfqYuNdurjvNmhJfKOLE6mKdjrzuiGO9+zapXLmtEcQYVaCZBomBUooZOzgDc89O0wpXEok2p/h/c23QEK89P8gMpfRdtAelw== X-Google-Smtp-Source: AGHT+IHmisKIrqteFPZNSr9+UyniZHwy+53GAjtm3TGrZLuKW/tbffj3+ycl5zZXyzVM8qT4GN+Z X-Received: by 2002:a17:906:160a:b0:a68:9097:748a with SMTP id a640c23a62f3a-a69546ac54amr409748366b.26.1717584105372; Wed, 05 Jun 2024 03:41:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717584105; cv=pass; d=google.com; s=arc-20160816; b=c1ltlEPV2vcZ9vnN4FuoaR9vEKN3EJx/lHWEtN7SEs1VALPqtMrqJZ8U/Ly+hngZ5O tCuYObM/Sp3p448OPj8MgK7NsZubaRaw3hvckAvFlbB/HdbWd6ghqGTjwsJNfvgjNCkv Q2FLzK4Zcspj/avM+wqEokkiYDrF7bOls7mG5YJrFOBNdSOk3M/hYCJ56YR4tUAx3dkj aavXoUakAHIY9saehrwFhOnttsn4Oe8YTuy5/oXZj9rP4IpZVt+R0Ec4L18kbx9oZcVZ 4Lf9tDGmLaWJjGVoDgIij3Ul4cs6RS1WHVRgvuYceOBlcaaXRb8Ywyrd4JNIXcbCwrFG BFGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:dkim-signature :dkim-signature:date; bh=eZQAlktM5sSKOc7xl8T3yZmnjfD+pXJcgSGCDo7IsQI=; fh=5WdySgu/MQDnOg0GH2ZjTiJMmfB494VIbF7MkUVyT+s=; b=v3DceisSUstpsrI988Egb0WpPw8d42tYqNeAjpPStpm6B9BDuVxKVpAuiw0qZBQOmo HZrpQAF8ySUxPSYLV2188G84IzVc+VBEOyGXTPdfVkq+xz4TWjMZ3wB73vqwUz9uz3ko zhGdGDbPchba35ra61X2D06gtLBHfa20yVzhyJSTuzF+HcOmhwa4/a0PrSlM+fFqS0mI swFHqj6M0PmRZUJJYlMFGe8jjZ4NeWrZfUFz7EEe2jyz0kSBpUlK4ZyKBxxOOPKFxRxp O80iMp9nJhX++JmSBaiNbDs/vojc71ZZLeR5NSEUuIf11cGp7D8PqvHABwzLHyqVhjOb wVXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0VA1AQm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-202213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a690fd4c563si301556866b.353.2024.06.05.03.41.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 03:41:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=f0VA1AQm; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-202213-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202213-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 184011F22E0D for ; Wed, 5 Jun 2024 10:41:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C619B191494; Wed, 5 Jun 2024 10:41:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="f0VA1AQm"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="yZypw/nj" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 9BA911419B3; Wed, 5 Jun 2024 10:41:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717584094; cv=none; b=r/Qvebz8KFW2fNjcK3YjDl5cT1u3zLFvBQAeH8kIMPp+SkDVabA/bsX8LEMmbRcV8+3C7f0jMIC3+bN3NGNNdbFWTENQDFYI0rj5xLP/NA+bM8RJg17jNqwZ6Kb3ov4vMpnbt3B/9QXoFBZe73ADOw+V6y8TfPr/7P7V9hiMCgg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717584094; c=relaxed/simple; bh=eZQAlktM5sSKOc7xl8T3yZmnjfD+pXJcgSGCDo7IsQI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DnIGhCZ/xhTVoE6qMvWPsETEdUlHGN0CEHTaTHbWoCjEOiR3EjWYcqNuzukpqnNA5FYhEpR/6wr5a88oIkgUMCdQYLQ/x7gmzmRYE51itGxdKLHNJBn1rmKyi2XcX7pbgkDsEcbf1N9ltQ8ciR78DOfP9ywU7U7Iyx5zSCS7SS8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=f0VA1AQm; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=yZypw/nj; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Wed, 5 Jun 2024 12:41:28 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1717584090; 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=eZQAlktM5sSKOc7xl8T3yZmnjfD+pXJcgSGCDo7IsQI=; b=f0VA1AQmVNcMwcRa5YaQYwKiAr5rkg4NbxEipsKHFs38o82t8YNFLI4Ig1+vNkg8JNF1Ed Mx7JA99sS2SZPh8IeKsZcyq/GrLxp8qPSJTXlOJ8+DOrimCXpdxjmS/KkBAG/fu2oPILJI gPiBdIfzoDuKqTTU5VI9ZyVrLNN4Af+Dvt2Gd1vvSscasFjScmClscbJH6ZIHP/3RCssy6 vxvgGppLbydNrc5hfzWJtk+vSig6n9XAJ6EcIKbvbtuQ45A9zIQp42qg5E//043zUPT+7Y 8xhBCUb85LEthBTKikEJBvARPAaoFEFBbuNUO02NLT9oZYcl6Wu+3EiBupWzrw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1717584090; 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=eZQAlktM5sSKOc7xl8T3yZmnjfD+pXJcgSGCDo7IsQI=; b=yZypw/njS7m/PwTo/T6mVZkHvCFP+7xq63jdVHnq9duU2SdlWhQw3UJSVUUGulhgwdaWSC BaQmkGyphk0gqRDQ== From: Sebastian Andrzej Siewior To: Jesper Dangaard Brouer Cc: Toke =?utf-8?Q?H=C3=B8iland-J=C3=B8rgensen?= , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, "David S. Miller" , Boqun Feng , Daniel Borkmann , Eric Dumazet , Frederic Weisbecker , Ingo Molnar , Jakub Kicinski , Paolo Abeni , Peter Zijlstra , Thomas Gleixner , Waiman Long , Will Deacon , Alexei Starovoitov , Andrii Nakryiko , Eduard Zingerman , Hao Luo , Jiri Olsa , John Fastabend , KP Singh , Martin KaFai Lau , Song Liu , Stanislav Fomichev , Yonghong Song , bpf@vger.kernel.org Subject: Re: [PATCH v3 net-next 14/15] net: Reference bpf_redirect_info via task_struct on PREEMPT_RT. Message-ID: <20240605104128.Nn9Cp0CB@linutronix.de> References: <20240529162927.403425-1-bigeasy@linutronix.de> <20240529162927.403425-15-bigeasy@linutronix.de> <87y17sfey6.fsf@toke.dk> <20240531103807.QjzIOAOh@linutronix.de> <9afab1bb-43d6-4f17-b45d-7f4569d9db70@kernel.org> 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-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <9afab1bb-43d6-4f17-b45d-7f4569d9db70@kernel.org> On 2024-06-05 12:28:08 [+0200], Jesper Dangaard Brouer wrote: >=20 > Hmm, but how will this affect performance? As I wrote in the changelog for v4, I haven't notice a difference. I tried to move bpf_net_ctx_set() from cpu_map_bpf_prog_run() to cpu_map_kthread_run() to have this assignment only once and I didn't see a difference/ I couldn't tell the two kernels apart. This is what I have been using for testing | xdp-bench redirect-cpu --cpu 3 --remote-action drop eth1 -e in case I was changing the wrong part=E2=80=A6 > --Jesper Sebastian