From mboxrd@z Thu Jan 1 00:00:00 1970 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 2834C37F8BC for ; Fri, 3 Apr 2026 13:10:38 +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=1775221839; cv=none; b=teRcYpBVuJVBNJBcq77wwcblM2F/Fb1RLPpqYCQ9+dgTmut0oIGp45VCNXtLrsSByuCGZERvnKoAgnzO5oC+Ju6a3g/v76Vpe3Q3VQHCJXnI76JIs0vvn5I2dmLmgHFBuqFalx1mRvLT9u4YpbWyT3LEcavlOz5Mx0qJ6/qBHrc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775221839; c=relaxed/simple; bh=kX1ZLLnNrXtxT9XzO6HLHCPmLKJ95wUEtz1Qqso24CA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Buvs23GEqQ5DlIyrWUaUpt9sfcRPRWs1QvFRT74bhtZE0GJRS0S5KTf1r3w5XINA1W/GP/Tfj2F6aNebKw6eYgRBt9cXajmjhezWFkak3jVgOxvVLZBSc6wtX0D5bVyeV45NITKtMG6Y0Raqi6+q9IWe9Pm43KJzuEPiQovwM9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HLlUuMOO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HLlUuMOO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 823C9C4CEF7; Fri, 3 Apr 2026 13:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1775221838; bh=kX1ZLLnNrXtxT9XzO6HLHCPmLKJ95wUEtz1Qqso24CA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HLlUuMOOV6xftx9qURwiD5IAf7HeNUpZcBNuEiOaMkoWTNmYMEK+7Ok06z38rm3wQ jbYJNii/Rw2Zse/9LSTlTHr31pr5VLDC0keE+9s9j/U6xGUZDC65O3cEZ9wJfEYgib 8qo+3aHSKfWrlKNhBOJyhpoHLksSSQsO4kg28htTHOVedCupqLuLmflTe7aDKlbjeH 6qsX+yf1guAiGGA1QsDuEZiJYEyB6pmbl+PUAHcZNRKgARhScgI/H+zXF/K7eSJGCN IHMJ8Tw+SZQ5q1Qz2Jee2c7PXOQhZAehfuiuqbtfftHqNCpPY2HKUf/nADvgwvoLNH l6n7VpcwLE0ng== Date: Fri, 3 Apr 2026 14:10:35 +0100 From: Simon Horman To: Aleksandr Loktionov Cc: intel-wired-lan@lists.osuosl.org, anthony.l.nguyen@intel.com, netdev@vger.kernel.org, Jacob Keller , Marcin Szycik Subject: Re: [PATCH iwl-next] ixgbe: use ktime_get_real_ns() in ixgbe_ptp_reset() Message-ID: <20260403131035.GA113102@horms.kernel.org> References: <20260327073046.134085-1-aleksandr.loktionov@intel.com> <20260327073046.134085-5-aleksandr.loktionov@intel.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260327073046.134085-5-aleksandr.loktionov@intel.com> On Fri, Mar 27, 2026 at 08:30:39AM +0100, Aleksandr Loktionov wrote: > From: Jacob Keller > > Replace ktime_to_ns(ktime_get_real()) with the direct equivalent > ktime_get_real_ns() in ixgbe_ptp_reset(). Using the combined helper > avoids the unnecessary intermediate ktime_t variable and makes the > intent clearer. > > Signed-off-by: Jacob Keller > Signed-off-by: Aleksandr Loktionov > Reviewed-by: Marcin Szycik Reviewed-by: Simon Horman FWIIW, this pattern also seems to exist in e1000e, ixgbe and igb (twice).