]> www.infradead.org Git - users/willy/xarray.git/commit
selftests: fib_rule_tests: Add DSCP selector connect tests
authorIdo Schimmel <idosch@nvidia.com>
Wed, 11 Sep 2024 09:37:48 +0000 (12:37 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Sep 2024 04:15:45 +0000 (21:15 -0700)
commit2bf1259a6ea1104c55d1a5318eec1ef29e85cf76
tree4e8be5ba2f59b39d857174a6af42ebac90d33778
parentac6ad3f3b5b11731312d9a4d3cfda74e22421b14
selftests: fib_rule_tests: Add DSCP selector connect tests

Test that locally generated traffic from a socket that specifies a DS
Field using the IP_TOS / IPV6_TCLASS socket options is correctly
redirected using a FIB rule that matches on DSCP. Add negative tests to
verify that the rule is not it when it should not. Test with both IPv4
and IPv6 and with both TCP and UDP sockets.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20240911093748.3662015-7-idosch@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fib_rule_tests.sh