[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<172868703275.3018281.7758535089888571331.git-patchwork-notify@kernel.org>
Date: Fri, 11 Oct 2024 22:50:32 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Daniel Machon <daniel.machon@...rochip.com>
Cc: davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, lars.povlsen@...rochip.com, Steen.Hegelund@...rochip.com,
UNGLinuxDriver@...rochip.com, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net] net: sparx5: fix source port register when mirroring
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@...nel.org>:
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
Powered by blists - more mailing lists