Re: [PATCH net v2] net: ethernet: ti: am65-cpsw-nuss/cpsw-ale: Fix multicast entry handling in ALE table
From: Simon Horman
Date: Thu Feb 26 2026 - 14:54:32 EST
On Tue, Feb 24, 2026 at 11:43:59PM +0530, Chintan Vankar wrote:
> In the current implementation, flushing multicast entries in MAC mode
> incorrectly deletes entries for all ports instead of only the target port,
> disrupting multicast traffic on other ports. The cause is adding multicast
> entries by setting only host port bit, and not setting the MAC port bits.
>
> Fix this by setting the MAC port's bit in the port mask while adding the
> multicast entry. Also fix the flush logic to preserve the host port bit
> during removal of MAC port and free ALE entries when mask contains only
> host port.
>
> Fixes: 5c50a856d550 ("drivers: net: ethernet: cpsw: add multicast address to ALE table")
> Signed-off-by: Chintan Vankar <c-vankar@xxxxxx>
> ---
>
> This patch is based on commit 'd4f687fbbce4' of origin/main branch of
> Linux net repo.
>
> Link to v1:
> https://lore.kernel.org/r/20260205070951.3170631-1-c-vankar@xxxxxx/
>
> Changes from v1 to v2:
> - Squashed two patches into one as a fix of the older implementation.
> - Added "Fixes" tag in the commit.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>
...