]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: mlxsw: Add Bloom filter complex test
authorNir Dotan <nird@mellanox.com>
Sun, 16 Dec 2018 08:49:36 +0000 (08:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Dec 2018 23:20:34 +0000 (15:20 -0800)
commit11a3d3dcbdc8094a9bc30328a461285475bc47b7
tree5dabd156aa71aaf90429ffbfd23d7be23e0351bd
parente0e13fe16d4884766018d7f302a556dc9e22f2c2
selftests: mlxsw: Add Bloom filter complex test

Bloom filter index computation is based on the values of
{rule & mask, mask ID, region ID} and the computation also varies
according to the region key size.

Add a test that exercises the possible combinations by creating
multiple chains using different key sizes and then pass a frame that
is supposed to to produce a hit on all of the regions.

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