]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: xgmac: Detect Hash Table size dinamically
authorJose Abreu <Jose.Abreu@synopsys.com>
Mon, 30 Sep 2019 08:19:06 +0000 (10:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 17:12:37 +0000 (10:12 -0700)
commit6c46e518f1995c30a1cb19f29b20224f7cbe5942
tree62edc33b2487106b20e8a32b7ad5de8c062a770e
parentf31bbf3509338d8acb2d82be022de13bfd5e139d
net: stmmac: xgmac: Detect Hash Table size dinamically

Since commit c2326aa76caa ("net: stmmac: add support for hash table size
128/256 in dwmac4"), we can detect the Hash Table dinamically.

Let's implement this feature in XGMAC cores and fix possible setups that
don't support the maximum size for Hash Table.

Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2.h
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c