Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp55917lqc; Thu, 7 Mar 2024 10:07:59 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3LM9Y6SSBANOpCaGpoex0mEFpujFxaSXEMkwhwFUhLvDYxmAchUEXO82ZTSFU8ZdKIncNNUakAWw2amV0trD0wrP8i6gZHvc+X6lu7g== X-Google-Smtp-Source: AGHT+IFo8wO5pOs10+z3ZYCOGXYY/51BczpWZ4uJOJGenDxIEYzmUg8aLH7jMvqrKoX7JZzPRqh9 X-Received: by 2002:a17:90a:ca8e:b0:29b:4e1b:7f84 with SMTP id y14-20020a17090aca8e00b0029b4e1b7f84mr10954051pjt.3.1709834879097; Thu, 07 Mar 2024 10:07:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709834879; cv=pass; d=google.com; s=arc-20160816; b=WbdBWRCYXp3XxeBcCLgS1NhVMHnIVXcS57c4gbcALeWoYAGSsXdIqszK1XiHBSWPJY r34CM8aLbAGP3fKjkpKqjZSW1BvQjs8+Rc5UBlICZ8GwdeWyKLYYbT8JzGEjhiaycTs1 ZrxQypm9F0FEKClQBZ29UH/2N8DpV9MVKBCoHKGGvaiHmqvqOPd2yWiFv66E9oN1aK/+ pV0xQ/tC1vGBDMKXMz1Qo6ioYEXxs8e5SZxcp4kTzElgmgkdzuO0Q3wrs1McO1iZAdHJ iwZeTDhLVzOcRz8rHQ2Ftq25fo60tHc2TWye1MFl0SA7+tjmDppULVBFjWS1oC54tZlO uwZw== 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:subject:references:in-reply-to :message-id:cc:to:from:date:dkim-signature; bh=sxRjqNnvdF7ZPp1g7/U1YFRgJVDUpSznFhQFeF1O+XU=; fh=/oK5itaLRkGmifXwWLdxEj7toS+svkXZcAK/0/Yjdiw=; b=t+w4WJJSx5jWHE9lO79Gu+cc00byxMnl5DFHv/i9hBtaBY8yKwOQGRRj++g2SENPwQ CA2c86feVBIMJL3mApxtxi3YcdJLzQGqb8723RudL9LHi30ONKkfidAcNq6Mv8z+Xjwt V88SdgpeNM1vOGPrQ+oyRJ+la5lBg68r/7n6nukl5pyki6k3c95FWkI2mx6o84thvvtc 6TLK1u8hDc7EnPlQNowz5mcMqem2lylfCrRdOTWvZBfb8QD7GLOa86U+a2VyATfj642c dNXCBLkePmSEDfdqHEBn4+VBgbxqK6ipzfXEEG+4+wY+TlAqUNWP+30/+qCMalOySz/b rscg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kTa0C0Yx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id u9-20020a17090a5e4900b0029b82c2acc2si2119580pji.22.2024.03.07.10.07.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 10:07:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-95986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=kTa0C0Yx; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-95986-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-95986-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1163EB2375A for ; Thu, 7 Mar 2024 17:58:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 54FD113175A; Thu, 7 Mar 2024 17:57:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kTa0C0Yx" Received: from mail-qk1-f173.google.com (mail-qk1-f173.google.com [209.85.222.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2550C12FB2B; Thu, 7 Mar 2024 17:57:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709834278; cv=none; b=JGGgDWGO7HdO1t2GsPAuUDk6qCmDGzyHit7VntNk0NLquOR3CG0mWV0q9R3jPzkpeeRGKxPDo3WwVpzUK6ZhNhIrqEM/CNmQR48105inj05LU7zjjM7ATSFav32ho7FAfq2HUxgpYGhbUNBjuIeIs+yFlggGoOiPTdd+2Po2Jt8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709834278; c=relaxed/simple; bh=nuK04bZ5oslOthMQ4lVLof11GO1EGLvX/wxmyW7M/nQ=; h=Date:From:To:Cc:Message-ID:In-Reply-To:References:Subject: Mime-Version:Content-Type; b=hu2o1amLbcduU4XxsQw4hIbG/20IVq+GWLv9/7k8YL3osZku01HDzDkUKgrru4FpZB7Gr4v4C3QP+rssv8Gna7UZNog+qs2EFF6SpvjcEMd+SnniVyh6UNEA7pKA9upSFnu6YzH5+CerM7jC3LYLQoYkIwCnxsVDHNczWyUN0v4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=kTa0C0Yx; arc=none smtp.client-ip=209.85.222.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-7883e1e01daso54529585a.3; Thu, 07 Mar 2024 09:57:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709834276; x=1710439076; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=sxRjqNnvdF7ZPp1g7/U1YFRgJVDUpSznFhQFeF1O+XU=; b=kTa0C0YxQozUUIZY+1CZGGizLLo8TCVLHYZv8nrcWkwE20rDCeHBtbjU5lOauk6WPa ot/7Z3SyTvIsK1XFR0OVGRQx6ywkNs5klen5FvxvUoxEhsY0whW1bDnr/K0JHavzpfsE Is/t0wwoIwemMTyCCba19KbJIRmMMS/hGPJShrN5sUnC4FQ6DESOtb4HR0jfOr85nKMR 7/3wXanS+WsfWTy3aQ2oAuvOiPGK2Xel59lOmiZ1J6Zjsy0lGumRIo8tLPqAC9/XJyt7 lhKSlEmvvc+TIFeem+aVgYIw+XChrZN02TM9gFs7l814y3CNPb/86y115kSLbp4ZNudN 6/Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709834276; x=1710439076; h=content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sxRjqNnvdF7ZPp1g7/U1YFRgJVDUpSznFhQFeF1O+XU=; b=SezbMM8LlOf5dkMSmsWJ0vQb32p+vKaYpQ922QbS6zg2z8bCmcgY6XKwy5hRpWD1JU ViByDSmYKMGR9o9ONw4cd7cZCC/acc9XxUkqU7uzk7tlttVaTOVn7Cnbd6qINr7cQn87 0e1S9bQ19NjDUp03HXrjuKHUjSqBi8VAVIYcvKQC0zowEun20tWT9KCOLjttmB2x5I+B 89sukBMyNXPmqfROISqdbbbX4JBxKOn3m+CczJE+xV3VqveJiNzPdMSJkEwaN2calk6M 4qSN2qLTBmKgsT68jWkSAan5k8Ns9tWUgYRsFPbQpXPL122cEYKCaV4kqfw2DBZE/8wq BLwg== X-Forwarded-Encrypted: i=1; AJvYcCWVlHMkI96SOhVf93D05VsB1t3yEcGB0pa2RphXWK/WVGYha+05mKTeFnwIkl1U94MA0J2aHeQvTPZmWfb109Z8W+kKDMWkL4c/x4TFQsDZRd4b/PiV+/ZS54UXHoCkM5soedHv X-Gm-Message-State: AOJu0YwOz7UrseuCHiwSrV1yaOPZOgSVIzat75PDeTqFIPEyMXInB6r9 hrRj29KSd4t0svf/VJ1QBuOrzlpWjVLnVoKYuaEzBTOKloC+FXjMysXQhtbOsvk= X-Received: by 2002:a05:620a:4ec:b0:788:2e68:be51 with SMTP id b12-20020a05620a04ec00b007882e68be51mr8851072qkh.11.1709834276049; Thu, 07 Mar 2024 09:57:56 -0800 (PST) Received: from localhost (55.87.194.35.bc.googleusercontent.com. [35.194.87.55]) by smtp.gmail.com with ESMTPSA id bp9-20020a05620a458900b0078812f8a042sm6307036qkb.90.2024.03.07.09.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Mar 2024 09:57:55 -0800 (PST) Date: Thu, 07 Mar 2024 12:57:55 -0500 From: Willem de Bruijn To: Marcelo Tosatti , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Willem de Bruijn , Jakub Kicinski , Eric Dumazet , Frederic Weisbecker , Valentin Schneider , Paolo Abeni Message-ID: <65ea00236e921_106619294ea@willemb.c.googlers.com.notmuch> In-Reply-To: References: Subject: Re: [PATCH net-next -v5] net/core/dev.c: enable timestamp static key if CPU isolation is configured 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: 7bit Marcelo Tosatti wrote: > > For systems that use CPU isolation (via nohz_full), creating or destroying > a socket with SO_TIMESTAMP, SO_TIMESTAMPNS or SO_TIMESTAMPING with flag > SOF_TIMESTAMPING_RX_SOFTWARE will cause a static key to be enabled/disabled. > This in turn causes undesired IPIs to isolated CPUs. > > So enable the static key unconditionally, if CPU isolation is enabled, > thus avoiding the IPIs. > > Signed-off-by: Marcelo Tosatti Reviewed-by: Willem de Bruijn