OSDN Git Service

selftests: mlxsw: Add Bloom delta test
authorNir Dotan <nird@mellanox.com>
Sun, 16 Dec 2018 08:49:37 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 23:20:34 +0000 (15:20 -0800)
commit5d06a76d9e6d2d00eadba72548636ff0ff6fabde
tree79795936c11ca42f4b59ca1f14c0ed3571e6c49e
parent5118ca4edf9939ed3812ffbfabe7b97164f29635
selftests: mlxsw: Add Bloom delta test

The eRP table is active when there is more than a single rule
pattern. It may be that the patterns are close enough and use delta
mechanism. Bloom filter index computation is based on the values of
{rule & mask, mask ID, region ID} where the rule delta bits must be
cleared.

Add a test that exercises Bloom filter with delta mechanism.
Configure rules within delta range and pass a packet which is
supposed to hit the correct rule.

Signed-off-by: Nir Dotan <nird@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/tc_flower.sh