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 1826B625; Sat, 20 Apr 2024 02:58:04 +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=1713581887; cv=none; b=pOIUNHdhEb58QnRaU9cQYg1Jxu0pY6M+FzqWXtwV57S2ebFLn1bRr8+OwW+yXUqnn0RSANFUu4qtAMIY7/KLNQzSZEAktrs2+BAuJOrF8ixHJIqLIzF5FzU6gQd4NwMcledZCdZ8ocebVCr1rkpt7FrwZ/DZXq4sK1k3zp/h3Og= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713581887; c=relaxed/simple; bh=dqJCgSGZDVHIYWgOCypPgASUgV3IusHHzpLEV6weCTM=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Rsq8IellLXHQqlLKIb2vepSOGKJbsj6qEXkmP+13Bs6DGgcrUaCcGZq4kUYGBXPEyMTYrkDTPl7EujMgdLiebzP4A7RyJk10THXmQ27kko7EaNKnirwtA2jl7T7SQOhkzrYPusWRWXgCBHn4cRJ+6SsG71MPv9x4b0AkGpqcSvA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d6rI+Szc; 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="d6rI+Szc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05335C072AA; Sat, 20 Apr 2024 02:58:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713581884; bh=dqJCgSGZDVHIYWgOCypPgASUgV3IusHHzpLEV6weCTM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d6rI+Szc4HoW/JpVK43LsiotzkyvpNSswsJGpoSJdOCu4Cd0fhCXFwGdLwc48XbKC 619ugF7i2/HeXihWBpA2Krn1l4Pkl77Nt00XEpGF/JyV7ok2pWCSwae6pqTMxDYMw8 zoxxUhuEx8KHt1gPtfNc5bIaLAtbwWpyfNgveSHBIdzbNa552tKyR5zNU71NVTHu+O KQuUZtxGsddS3L0mTxgSWGTb5a2ctfRJaZSLQs4ArvEZpVUSGjDP2ZpPz5F4UKj/4I rJkHn3NoQzmQf2e+vHeQQhV8n0pcuG9jtnt1LaNFgW8TYct4UY8AZ6thq8m4kmRsNR wn1Qnbu39rwwQ== Date: Fri, 19 Apr 2024 19:58:02 -0700 From: Jakub Kicinski To: Richard Cochran Cc: Mahesh Bandewar , Netdev , Linux , David Miller , Eric Dumazet , Paolo Abeni , Thomas Gleixner , Arnd Bergmann , Sagi Maimon , Jonathan Corbet , John Stultz , Mahesh Bandewar Subject: Re: [PATCHv1 next] ptp: update gettimex64 to provide ts optionally in mono-raw base. Message-ID: <20240419195802.0699dc5b@kernel.org> In-Reply-To: References: <20240416215942.150202-1-maheshb@google.com> <20240417182445.019fb351@kernel.org> 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-Transfer-Encoding: 7bit On Thu, 18 Apr 2024 23:28:48 -0700 Richard Cochran wrote: > On Wed, Apr 17, 2024 at 06:24:45PM -0700, Jakub Kicinski wrote: > > On Tue, 16 Apr 2024 14:59:42 -0700 Mahesh Bandewar wrote: > > > if (extoff->n_samples > PTP_MAX_SAMPLES > > > - || extoff->rsv[0] || extoff->rsv[1] || extoff->rsv[2]) { > > > + || extoff->rsv[0] || extoff->rsv[1] > > > + || (extoff->clockid != CLOCK_REALTIME > > > + && extoff->clockid != CLOCK_MONOTONIC_RAW)) { > > > > Since you're touching this condition it's probably a good opportunity > > to fox the coding style. > > What is the CodingStyle violation? > > Is it starting a line with || ? Yup. Now that it's a mix of || and && the loss of readability to a kernel-trained eye starts to be impactful.