]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: stmmac: extend use of snps,multicast-filter-bins property to xgmac
authorNikunj Kela <nikunj.kela@sima.ai>
Tue, 10 Jun 2025 20:04:11 +0000 (13:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 01:22:24 +0000 (18:22 -0700)
commit94a8e4a8185f5f216e5b8ad3323cd190b73dccf2
tree64ac8b9f769049b6ac572bedbc714b7435eec1e9
parent8e16170ae972c7fed132bc928914a2ffb94690fc
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>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c