]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbeca8700453709914195ee36a98ccbdbcec4ddda
tree18fc6f9f30811383cf32a38a26d2f6e43415ade2
parent912ecef71a9d647d74e6700aad2ea46aa6e19b69
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