https://github.com/torvalds/linux
Revision eeb9d745169847ecde4aa311eb618beb984629b0 authored by Jose Abreu on 06 November 2019, 15:02:57 UTC, committed by David S. Miller on 07 November 2019, 05:22:55 UTC
In L2 tests that filter packets by destination MAC address we need to
prevent false positives that can occur if we add an address that
collides with the existing ones.

To fix this, lets manually check if the new address to be added is
already present in the NIC and use a different one if so. For Hash
filtering this also envolves converting the address to the hash.

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>
1 parent 3d00e45
History
Tip revision: eeb9d745169847ecde4aa311eb618beb984629b0 authored by Jose Abreu on 06 November 2019, 15:02:57 UTC
net: stmmac: selftests: Prevent false positives in filter tests
Tip revision: eeb9d74
File Mode Size
kvm
lib
Makefile -rw-r--r-- 54 bytes

back to top