net: stmmac: dwmac1000: Fix Hash Filter
authorJose Abreu <Jose.Abreu@synopsys.com>
Fri, 24 May 2019 08:20:20 +0000 (10:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 May 2019 20:45:56 +0000 (13:45 -0700)
In order for hash filter to work we need to set the HPF bit.

Found out while running stmmac selftests.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c

index 8ca73bd..bc91af6 100644 (file)
@@ -198,6 +198,7 @@ static void dwmac1000_set_filter(struct mac_device_info *hw,
                }
        }
 
+       value |= GMAC_FRAME_FILTER_HPF;
        dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2);
 
        /* Handle multiple unicast addresses (perfect filtering) */