]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: tc-testing: fix tunnel_key failure if dst_port is unspecified
authorDavide Caratti <dcaratti@redhat.com>
Fri, 11 Jan 2019 14:08:23 +0000 (15:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Jan 2019 05:58:17 +0000 (21:58 -0800)
commite129d5f069795357759bc9022e0c485eb597b8fc
tree0d497652d1bfd8722fff2b14d5a70fe4912a3663
parent255e13a8daef9f4bb5d702d72277be716b0e40b3
selftests: tc-testing: fix tunnel_key failure if dst_port is unspecified

After commit 8cf99a1a58b8 ("net/sched: act_tunnel_key: Don't dump dst port
if it wasn't set"), act_tunnel_key doesn't dump anymore the destination
port, unless it was explicitly configured. This caused systematic failures
in the following TDC test case:

 7a88 - Add tunnel_key action with cookie parameter

Avoid matching zero values of TCA_TUNNEL_KEY_ENC_DST_PORT to let the test
pass again.

Signed-off-by: Davide Caratti <dcaratti@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json