]> 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)
commitefa378a7ca7accac06b6850fd77a4e446b19e648
tree62edc33b2487106b20e8a32b7ad5de8c062a770e
parent6d62a994551a08a9e7565bf72314665f4fa52558
net: stmmac: xgmac: Detect Hash Table size dinamically

Since commit 32dd11e960e6 ("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