Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: stmmac: selftests: Flow Control test can also run with ASYM Pause

The Flow Control selftest is also available with ASYM Pause. Lets add
this check to the test and fix eventual false positive failures.

Fixes: 091810dbded9 ("net: stmmac: Introduce selftests support")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Jose Abreu and committed by
David S. Miller
b0ce902f 9f5c44cf

+1 -1
+1 -1
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c
··· 670 670 unsigned int pkt_count; 671 671 int i, ret = 0; 672 672 673 - if (!phydev || !phydev->pause) 673 + if (!phydev || (!phydev->pause && !phydev->asym_pause)) 674 674 return -EOPNOTSUPP; 675 675 676 676 tpriv = kzalloc(sizeof(*tpriv), GFP_KERNEL);