lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: 
 <175919525224.1775912.18026544343281265585.git-patchwork-notify@kernel.org>
Date: Tue, 30 Sep 2025 01:20:52 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Michael S. Tsirkin <mst@...hat.com>
Cc: linux-kernel@...r.kernel.org, netdev@...r.kernel.org, jasowang@...hat.com
Subject: Re: [PATCH net-next] ptr_ring: __ptr_ring_zero_tail micro
 optimization

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:

On Sat, 27 Sep 2025 08:29:35 -0400 you wrote:
> __ptr_ring_zero_tail currently does the - 1 operation twice:
> - during initialization of head
> - at each loop iteration
> 
> Let's just do it in one place, all we need to do
> is adjust the loop condition. this is better:
> - a slightly clearer logic with less duplication
> - uses prefix -- we don't need to save the old value
> - one less - 1 operation - for example, when ring is empty
>   we now don't do - 1 at all, existing code does it once
> 
> [...]

Here is the summary with links:
  - [net-next] ptr_ring: __ptr_ring_zero_tail micro optimization
    https://git.kernel.org/netdev/net-next/c/c39d6d4d9333

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ