]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit5118ca4edf9939ed3812ffbfabe7b97164f29635
tree5dabd156aa71aaf90429ffbfd23d7be23e0351bd
parent095c720807499953b7e16528f705d09675c96c0c
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