* [PATCH net v2] net: ti: icssg-prueth: Fix start counter for ft1 filter
@ 2024-05-27 6:30 MD Danish Anwar
2024-05-28 13:40 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: MD Danish Anwar @ 2024-05-27 6:30 UTC (permalink / raw)
To: Diogo Ivo, Andrew Lunn, Paolo Abeni, Jakub Kicinski, Eric Dumazet,
David S. Miller
Cc: linux-kernel, netdev, linux-arm-kernel, srk, Vignesh Raghavendra,
Roger Quadros, MD Danish Anwar, Florian Fainelli
The start counter for FT1 filter is wrongly set to 0 in the driver.
FT1 is used for source address violation (SAV) check and source address
starts at Byte 6 not Byte 0. Fix this by changing start counter to
ETH_ALEN in icssg_ft1_set_mac_addr().
Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
---
Cc: Florian Fainelli <f.fainelli@gmail.com>
Changes from v1 to v2:
*) Using ETH_ALEN instead of hardcoding the values to 6 as suggested by
Florian Fainelli <f.fainelli@gmail.com>
v1: https://lore.kernel.org/all/20240524093719.68353-1-danishanwar@ti.com/
drivers/net/ethernet/ti/icssg/icssg_classifier.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/ti/icssg/icssg_classifier.c b/drivers/net/ethernet/ti/icssg/icssg_classifier.c
index 79ba47bb3602..f7d21da1a0fb 100644
--- a/drivers/net/ethernet/ti/icssg/icssg_classifier.c
+++ b/drivers/net/ethernet/ti/icssg/icssg_classifier.c
@@ -455,7 +455,7 @@ void icssg_ft1_set_mac_addr(struct regmap *miig_rt, int slice, u8 *mac_addr)
{
const u8 mask_addr[] = { 0, 0, 0, 0, 0, 0, };
- rx_class_ft1_set_start_len(miig_rt, slice, 0, 6);
+ rx_class_ft1_set_start_len(miig_rt, slice, ETH_ALEN, ETH_ALEN);
rx_class_ft1_set_da(miig_rt, slice, 0, mac_addr);
rx_class_ft1_set_da_mask(miig_rt, slice, 0, mask_addr);
rx_class_ft1_cfg_set_type(miig_rt, slice, 0, FT1_CFG_TYPE_EQ);
base-commit: 0b4f5add9fa59bfd42c1030f572db2e4c395181b
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net v2] net: ti: icssg-prueth: Fix start counter for ft1 filter
2024-05-27 6:30 [PATCH net v2] net: ti: icssg-prueth: Fix start counter for ft1 filter MD Danish Anwar
@ 2024-05-28 13:40 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-05-28 13:40 UTC (permalink / raw)
To: MD Danish Anwar
Cc: diogo.ivo, andrew, pabeni, kuba, edumazet, davem, linux-kernel,
netdev, linux-arm-kernel, srk, vigneshr, rogerq, f.fainelli
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Mon, 27 May 2024 12:00:15 +0530 you wrote:
> The start counter for FT1 filter is wrongly set to 0 in the driver.
> FT1 is used for source address violation (SAV) check and source address
> starts at Byte 6 not Byte 0. Fix this by changing start counter to
> ETH_ALEN in icssg_ft1_set_mac_addr().
>
> Fixes: e9b4ece7d74b ("net: ti: icssg-prueth: Add Firmware config and classification APIs.")
> Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
>
> [...]
Here is the summary with links:
- [net,v2] net: ti: icssg-prueth: Fix start counter for ft1 filter
https://git.kernel.org/netdev/net/c/56a5cf538c3f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-28 13:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 6:30 [PATCH net v2] net: ti: icssg-prueth: Fix start counter for ft1 filter MD Danish Anwar
2024-05-28 13:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox