[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ed15dbce-a69f-4d37-a1de-9392623a712e@wizmail.org>
Date: Sun, 27 Apr 2025 17:55:47 +0100
From: Jeremy Harris <jgh@...mail.org>
To: Chaohai Chen <wdhh6@...yun.com>, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] net:ipv4: Use shift left 2 to calculate the length of the
IPv4 header.
On 2025/04/27 7:17 AM, Chaohai Chen wrote:
> Encapsulate the IPV4_HEADER_LEN macro and use shift left 2 to calculate
> the length of the IPv4 header instead of multiplying 4 everywhere.
Isn't that better left for the compiler to decide?
--
Cheers,
Jeremy
Powered by blists - more mailing lists