Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp227515rdb; Thu, 22 Feb 2024 01:34:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnKNTxpPLLgBKAqEMDYiGU2xUxyiAnLsb44HmnQaswje4V6qf7SVZ1QZzc6mHdtR1YcOPZKM0kLLipgn7gyXPWal7Ep3CsIdFOIYz8tQ== X-Google-Smtp-Source: AGHT+IGRkb2VhHaKhnM5OwWff/xyhmPx+ATB03xXrFmS/k7hnEvSoKqVXnqBS4uWfwCP37qZpwuV X-Received: by 2002:a05:6830:3489:b0:6e4:6e67:5a44 with SMTP id c9-20020a056830348900b006e46e675a44mr3092668otu.9.1708594478125; Thu, 22 Feb 2024 01:34:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708594478; cv=pass; d=google.com; s=arc-20160816; b=ZNZeJOnKUnPNxTUYpAEhCFbgDDqVmuwQ4hlhD0EU71GBU4l739nVYYDJk72mp26Ycr DbO9+nr2Bu/pInce2p6ZVcpLe/43fzEmd54y5LMTgj5lWeF3shQ7u9aIAEC19bEaxv90 8KMjVTnJh7mL9IrwF5BFZWBLL+qT3MLFzn4c8FoHX8w00JHAib9TeFT6pYUOwk7Ttnvz uPyx6TF34xn8/bCK0cVFJNIn9PGt9ngMfPgoR/bPkJBQZ2YMMbRSEDugng93zNAc7XLd ZBs6HS9F5n/ycDOckuaUns2aWYSj2DVnzxak25uzzYqPmjU0SE9ihGagt5M5i8vATbVN XOFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:autocrypt:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=FvjULRwSsFiCewjz9HeM0ecz107mFZQPYxRhheoHiRQ=; fh=gFJdXstMayhGCSoNuEoQROMAqIqVhXFxgUbI0UhpqzI=; b=W8cBu/7fSFXb1RwDpXGJQ5x3ng9pq3syamMlLNVPYt/OVN5K7somRnq319mDfKh3SW OREOB055NrvVNCsh7x/+0Umg7rQU3WBGB2K7bGbTcw2vtngt9O6Jkpcw2hR+ismWLvye g8PuCYr4yZq+XzX9xLEeiNJVjf7mqmXN1rv1X2QQlUVlx/BTp98sxLUiDkAKCpTa5enZ 3A70a+FXDbhC8YWVJQj4FY6v/Qg/mNHpEMLhD02S/9t73WGUIEkx+C4r9/PsfRjuIMVq GXzem6pkGA5BI71uLfyBu5naejDe2f3VkBWkbmv6UW+mVpzoeX+9nLlZCM9+mIsf7/cj HVpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WBIqfH02; 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-76224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76224-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w65-20020a636244000000b005d80a51e1c0si9706834pgb.851.2024.02.22.01.34.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 01:34:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WBIqfH02; 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-76224-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76224-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 C3425286854 for ; Thu, 22 Feb 2024 09:34:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5131038380; Thu, 22 Feb 2024 09:34:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="WBIqfH02" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 850D03717D for ; Thu, 22 Feb 2024 09:34:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708594466; cv=none; b=KoPO0pTh6uwgjv6feogxd+ETpGFWadhR7UHPivltJ1AbANeFJsPFPtFUR2RCfapj9MNlOlB0U23VtOt59Na0qvj2bgenyDrAM5c7qcyovB0wxnxes3DCxUKoIBWoL3jnDvYACoSIrYgD/W9dmpQctTRJc6qkC2e/MVQsDZaMfec= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708594466; c=relaxed/simple; bh=jsymz0ZV3wQosB1mc7TrX/RgyOGB8OgHkdfOjJ/GU7E=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=uRACuSVnOD6C7FkIdWqThZDF/7JTuFnZl5+uir8im9BhmzV+gC2lYOOs0UO4MGIiRblKYvNYPC0+EUfVryUUJbhw5c1fZLZ4FrNUxAWsO0fch80IezC9SEtg29Fr6l9KhIR6exW+xkkxYhGhmw6ekSF9oqUxHr6oij5BDgnDbVM= 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=WBIqfH02; arc=none smtp.client-ip=170.10.129.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=1708594463; 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:autocrypt:autocrypt; bh=FvjULRwSsFiCewjz9HeM0ecz107mFZQPYxRhheoHiRQ=; b=WBIqfH02LJd0eyDGenVH9+gzFgJ7jFk+9LQ8Ylh3uGODyVt6NwrSPAHmBPYZ62NBRrBGPd kUA9Zg/k+qY7iZnS25io0NH8Px2n2fjG33YaPz1p9bR1oLdAv6lQVHPnhhsadm/nrItUiO 7Ot4mEAujc4WiImXPIUBRy0meRZr7so= 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-1-T8toOdbYN2KNAKyJkAURsg-1; Thu, 22 Feb 2024 04:34:21 -0500 X-MC-Unique: T8toOdbYN2KNAKyJkAURsg-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-411e53af2adso12223725e9.1 for ; Thu, 22 Feb 2024 01:34:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708594460; x=1709199260; h=mime-version:user-agent:content-transfer-encoding:autocrypt :references:in-reply-to:date:cc:to:from:subject:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FvjULRwSsFiCewjz9HeM0ecz107mFZQPYxRhheoHiRQ=; b=dX0VdS9haqH5bYcjP+5ZFfDt+d1dadoorPGnVwyP7egFtonvLmj5xzOMA964/NGYco EEtXmyKbTCGj3FZWAjAvbbfJwm+w2DNkBll2HQUHvJ9GJNzu6F06l08gVKyZwxNR32UZ Z++DcOA0l5nRim125H0U0NKbK/iYaaTg+NpG8DWRIUmp59P3HCGLs87Tlf3iA18SteyV neD0H5znIWMFnoSrQS7ENOjusb5b87Paf9mZYBdPu3RILYNj2S2d10dWCqZjPhDPQiVT jRX7QhV4DMVICh6W5WcREII5QOfJiPi+YLUE3DUz/LEJQXXBf0bzDWOD4+IFbiKZyVoN zKOA== X-Forwarded-Encrypted: i=1; AJvYcCW2fYyq9pPzDusoyR1Z6xMdoeKC+ryknB4v4j57cZvU7uDCbc32Mm5bwgrs7UBpFJLFIXWIjO/MCt5T9PlbeMSmyS7+jzI7W5DJTc9H X-Gm-Message-State: AOJu0YzKUgdf5cnCwvKiT1qODdbYDY6DNPR8EVx1vbPaMVY4OIFOiTVD gMJ0ZxLYH+OovDQFhiN4llpQhhboQv2fUWtyhcudQz+pg1Aw+crmESIjKxk/XUw67Nox+yHMaUK 3n0EKg89B8Iws9d0agQNOkhNpB3CRXB2XbQTaV4fBas7BJvbEYESwN9rmK0+aIA== X-Received: by 2002:a05:600c:3b94:b0:412:5f44:65b0 with SMTP id n20-20020a05600c3b9400b004125f4465b0mr9416735wms.4.1708594459940; Thu, 22 Feb 2024 01:34:19 -0800 (PST) X-Received: by 2002:a05:600c:3b94:b0:412:5f44:65b0 with SMTP id n20-20020a05600c3b9400b004125f4465b0mr9416726wms.4.1708594459603; Thu, 22 Feb 2024 01:34:19 -0800 (PST) Received: from gerbillo.redhat.com (146-241-224-236.dyn.eolo.it. [146.241.224.236]) by smtp.gmail.com with ESMTPSA id f19-20020a05600c155300b00411ff030f06sm21781711wmg.9.2024.02.22.01.34.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 01:34:19 -0800 (PST) Message-ID: <2e3cf929a1aad9017cf57871c58675186f6d7939.camel@redhat.com> Subject: Re: [PATCH] net/core/dev.c: enable timestamp static key if CPU isolation is configured From: Paolo Abeni To: Marcelo Tosatti , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jakub Kicinski , Eric Dumazet , Frederic Weisbecker , Valentin Schneider Date: Thu, 22 Feb 2024 10:34:17 +0100 In-Reply-To: References: Autocrypt: addr=pabeni@redhat.com; prefer-encrypt=mutual; keydata=mQINBGISiDUBEAC5uMdJicjm3ZlWQJG4u2EU1EhWUSx8IZLUTmEE8zmjPJFSYDcjtfGcbzLPb63BvX7FADmTOkO7gwtDgm501XnQaZgBUnCOUT8qv5MkKsFH20h1XJyqjPeGM55YFAXc+a4WD0YyO5M0+KhDeRLoildeRna1ey944VlZ6Inf67zMYw9vfE5XozBtytFIrRyGEWkQwkjaYhr1cGM8ia24QQVQid3P7SPkR78kJmrT32sGk+TdR4YnZzBvVaojX4AroZrrAQVdOLQWR+w4w1mONfJvahNdjq73tKv51nIpu4SAC1Zmnm3x4u9r22mbMDr0uWqDqwhsvkanYmn4umDKc1ZkBnDIbbumd40x9CKgG6ogVlLYeJa9WyfVMOHDF6f0wRjFjxVoPO6p/ZDkuEa67KCpJnXNYipLJ3MYhdKWBZw0xc3LKiKc+nMfQlo76T/qHMDfRMaMhk+L8gWc3ZlRQFG0/Pd1pdQEiRuvfM5DUXDo/YOZLV0NfRFU9SmtIPhbdm9cV8Hf8mUwubihiJB/9zPvVq8xfiVbdT0sPzBtxW0fXwrbFxYAOF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Ksywfs5HMiUZhLKoZzCcU/AEFjQsPTATACGsWf3JYPnWxL9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.50.3 (3.50.3-1.fc39) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-02-20 at 07:35 -0300, Marcelo Tosatti wrote: > For systems that use CPU isolation (via nohz_full), creating or destroyin= g > a socket with timestamping (SOF_TIMESTAMPING_OPT_TX_SWHW) might cause a > static key to be enabled/disabled. This in turn causes undesired=20 > IPIs to isolated CPUs. >=20 > So enable the static key unconditionally, if CPU isolation is enabled, > thus avoiding the IPIs. >=20 > Signed-off-by: Marcelo Tosatti This looks like net-next material, but it does not apply cleanly to the net-next tree. Could you please rebase and repost including the 'net- next' tag into the patch prefix? Thanks! Paolo