selftests: mlxsw: devlink_trap_tunnel_ipip: Remove code duplication
authorAmit Cohen <amcohen@nvidia.com>
Fri, 8 Oct 2021 13:12:40 +0000 (16:12 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Oct 2021 15:40:59 +0000 (16:40 +0100)
commit8bb0ebd52238972fd4c60280669103560838ab0d
tree18fc6f9f30811383cf32a38a26d2f6e43415ade2
parentc473f723f97a0b3a2d0b3ae75bfcf090882afa85
selftests: mlxsw: devlink_trap_tunnel_ipip: Remove code duplication

As part of adding same test for GRE tunnel with IPv6 underlay, an
optional improvement was found - call ipip_payload_get from
ecn_payload_get, so do not duplicate the code which creates the payload.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/devlink_trap_tunnel_ipip.sh