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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:56 +0000 (10:08 +0100)
commit2c69ea7f0c117d64e7f60cd2dbd49e634970a853
treefe9fcfc678c02821219c7ae8032853e678566f82
parent38a27ee2ea03a931345392efaa72ee780db296ea
selftests: tc-testing: fix tunnel_key failure if dst_port is unspecified

[ Upstream commit 5216bd77798e2ed773ecd45f3f368dcaec63e5dd ]

After commit 1c25324caf82 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/tc-testing/tc-tests/actions/tunnel_key.json