[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACGkMEvtuiYCQ+_SnjZGFrnSa6DzcZQr=CkKYx9eoQB-uaOV_g@mail.gmail.com>
Date: Mon, 29 Jan 2024 11:01:22 +0800
From: Jason Wang <jasowang@...hat.com>
To: Stephen Hemminger <stephen@...workplumber.org>
Cc: netdev@...r.kernel.org, Willem de Bruijn <willemdebruijn.kernel@...il.com>,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] net/tun: use reciprocal_scale
On Fri, Jan 26, 2024 at 8:26 AM Stephen Hemminger
<stephen@...workplumber.org> wrote:
>
> Use the inline function reciprocal_scale rather than open coding
> the scale optimization. Also, remove unnecessary initializations.
> Resulting compiled code is unchanged (according to godbolt).
>
> Signed-off-by: Stephen Hemminger <stephen@...workplumber.org>
Acked-by: Jason Wang <jasowang@...hat.com>
Thanks
Powered by blists - more mailing lists