aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c
diff options
context:
space:
mode:
authorJose Abreu <Jose.Abreu@synopsys.com>2019-11-06 16:02:57 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-06 21:22:55 -0800
commiteeb9d745169847ecde4aa311eb618beb984629b0 (patch)
tree0ed1f77476b06fbca46c4df0554d64c4be294fe9 /drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c
parentnet: stmmac: xgmac: bitrev32 returns u32 (diff)
downloadlinux-dev-eeb9d745169847ecde4aa311eb618beb984629b0.tar.xz
linux-dev-eeb9d745169847ecde4aa311eb618beb984629b0.zip
net: stmmac: selftests: Prevent false positives in filter tests
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>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c')
0 files changed, 0 insertions, 0 deletions