1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved. 4 5TST_SETUP="setup" 6TST_TESTFUNC="mpls_virt_test" 7TST_CLEANUP="mpls_virt_cleanup" 8 9. virt_lib.sh 10. mpls_lib.sh 11 12setup() 13{ 14 virt_type="gre" 15 if [ -n "$TST_IPV6" ]; then 16 tst_kvcmp -lt "4.19" && \ 17 tst_brk TCONF "mpls + ip6gre requires kernel 4.19+" 18 virt_type="ip6gre" 19 fi 20 21 mpls_virt_setup 22} 23 24tst_run 25