]> 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)
commitaea39b7fa6a1e5fb729408f093bc371f18080d7c
tree18fc6f9f30811383cf32a38a26d2f6e43415ade2
parent487cd5a29e9e73d062566c4f38c0771d4206c6f1
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