]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: selftests: Guard VLAN Perfect test against non supported HW
authorJose Abreu <Jose.Abreu@synopsys.com>
Tue, 14 Jan 2020 16:09:23 +0000 (17:09 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 22:11:18 +0000 (23:11 +0100)
commit1dcdfd2f611629b15f0f00b3246dce94a8493e2a
tree4f5a6ac2effce1afa7af482f23f16e24ddbbc6c2
parent67416c0bd91773ebab2b2a8ecaa5d8b8642500f5
net: stmmac: selftests: Guard VLAN Perfect test against non supported HW

When HW does not support perfect filtering the feature will not be
enabled in the net_device. Add a check for this to prevent failures.

Fixes: 6168114116e8 ("net: stmmac: selftests: Add tests for VLAN Perfect Filtering")
Signed-off-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c