selftests: spectrum-2: Fix multiple_masks_test
authorJiri Pirko <jiri@mellanox.com>
Wed, 30 Jan 2019 08:58:36 +0000 (08:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Jan 2019 18:00:40 +0000 (10:00 -0800)
commit0d0f20fb2fa08369fb776ef4cb80408517ae3a39
tree7872b55d484165689e66e44eade157ebc9acd420
parent1eadbd3ab9c356abc353920cfcd2481c62976f25
selftests: spectrum-2: Fix multiple_masks_test

With recent fix in C-TCAM spillage for delta masks, the test stops to be
falsely positive. So fix it not to use delta by adding src_ip bits to the
masks. Alongside with that, use C-TCAM spill trace to see when the
spillage actually happens.

Signed-off-by: Jiri Pirko <jiri@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