OSDN Git Service

net: stmmac: xgmac: Fix XGMAC selftests
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 6 Aug 2019 13:16:16 +0000 (15:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Aug 2019 19:26:11 +0000 (12:26 -0700)
commit0efedbf11f07adee555e0c4ba9c6eb58760aa94f
tree1f7e66b28d783adf02c4a6c881dadeb618c1115f
parent0574f2ed30609fd1720489a9dcb50a805958c796
net: stmmac: xgmac: Fix XGMAC selftests

Fixup the XGMAC selftests by correctly finishing the implementation of
set_filter callback.

Result:
$ ethtool -t enp4s0
The test result is PASS
The test extra info:
 1. MAC Loopback           0
 2. PHY Loopback           -95
 3. MMC Counters           -95
 4. EEE                    -95
 5. Hash Filter MC         0
 6. Perfect Filter UC      0
 7. MC Filter              0
 8. UC Filter              0
 9. Flow Control           0

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