Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: extend use of snps,multicast-filter-bins property to xgmac

Hash based multicast filtering is an optional feature. Currently,
driver overrides the value of multicast_filter_bins based on the hash
table size. If the feature is not supported, hash table size reads 0
however the value of multicast_filter_bins remains set to default
HASH_TABLE_SIZE which is incorrect. Let's extend the use of the property
snps,multicast-filter-bins to xgmac so it can be set to 0 via devicetree
to indicate multicast filtering is not supported.

Signed-off-by: Nikunj Kela <nikunj.kela@sima.ai>
Reviewed-by: Yanteng Si <si.yanteng@linux.dev>
Link: https://patch.msgid.link/20250610200411.3751943-1-nikunj.kela@sima.ai
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Nikunj Kela and committed by
Jakub Kicinski
94a8e4a8 8e16170a

+2
+2
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c
··· 579 579 plat->pmt = 1; 580 580 if (of_property_read_bool(np, "snps,tso")) 581 581 plat->flags |= STMMAC_FLAG_TSO_EN; 582 + of_property_read_u32(np, "snps,multicast-filter-bins", 583 + &plat->multicast_filter_bins); 582 584 } 583 585 584 586 dma_cfg = devm_kzalloc(&pdev->dev, sizeof(*dma_cfg),