]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: fib rule: Drop erroneous TABLE variable
authorGuillaume Nault <gnault@redhat.com>
Mon, 31 Jan 2022 15:42:04 +0000 (16:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Feb 2022 14:14:47 +0000 (14:14 +0000)
commit2d42b578812c9f988b17f6a41e82046f2a1c8b17
treeb1f6d3ca2b6123d9bd52c97dbc0ef80f56c15dd5
parent412948a28ff6e9bbfda3d44637a41fe3648d695e
selftests: fib rule: Drop erroneous TABLE variable

The fib_rule6_del_by_pref() and fib_rule4_del_by_pref() functions use
an uninitialised $TABLE variable. They should use $RTABLE instead.
This doesn't alter the result of the test, as it just makes the grep
command less specific (but since the script always uses the same table
number, that doesn't really matter).

Let's fix it anyway and, while there, specify the filtering parameters
directly in 'ip -X rule show' to avoid the extra grep command entirely.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_rule_tests.sh