]> 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)
commit0d3dabec6a09151f8621c0ed77fec6ab9da4fc16
tree5dabd156aa71aaf90429ffbfd23d7be23e0351bd
parent7dd29bac84fc754c7a4cb861137e3b05d75356f2
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