selftests: mlxsw: Add a test for leftover DSCP rule
authorPetr Machata <petrm@mellanox.com>
Wed, 31 Jul 2019 10:30:27 +0000 (10:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Jul 2019 15:47:13 +0000 (08:47 -0700)
commitd11786bb9664a5bed47e7839265f49bb26d54a1b
tree7949eb273d61cdea803f5524b9e6f7b41c4c66b7
parent7700476f319844022f6e469e7acb578178ee29de
selftests: mlxsw: Add a test for leftover DSCP rule

Commit dedfde2fe1c4 ("mlxsw: spectrum_dcb: Configure DSCP map as the last
rule is removed") fixed a problem in mlxsw where last DSCP rule to be
removed remained in effect when DSCP rewrite was applied.

Add a selftest that covers this problem.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/qos_dscp_router.sh