Re: [PATCH net-next v3 1/6] tsnep: Replace modulo operation with mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20.04.23 16:23, Maciej Fijalkowski wrote:
On Tue, Apr 18, 2023 at 09:04:54PM +0200, Gerhard Engleder wrote:
TX/RX ring size is static and power of 2 to enable compiler to optimize
modulo operation to mask operation. Make this optimization already in
the code and don't rely on the compiler.

I think this came out of my review, so:
Suggested-by: Maciej Fijalkowski <maciej.fijalkowski@xxxxxxxxx>

Sorry, I forgot to add it.

Does this give you a minor perf boost?

I will try to measure some difference.



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux