Re: [PATCH net] net: sparx5: fix source port register when mirroring

From: patchwork-bot+netdevbpf
Date: Fri Oct 11 2024 - 18:50:43 EST


Hello:

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

On Wed, 9 Oct 2024 14:49:56 +0200 you wrote:
> When port mirroring is added to a port, the bit position of the source
> port, needs to be written to the register ANA_AC_PROBE_PORT_CFG. This
> register is replicated for n_ports > 32, and therefore we need to derive
> the correct register from the port number.
>
> Before this patch, we wrongly calculate the register from portno /
> BITS_PER_BYTE, where the divisor ought to be 32, causing any port >=8 to
> be written to the wrong register. We fix this, by using do_div(), where
> the dividend is the register, the remainder is the bit position and the
> divisor is now 32.
>
> [...]

Here is the summary with links:
- [net] net: sparx5: fix source port register when mirroring
https://git.kernel.org/netdev/net/c/8a6be4bd6fb3

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