app/testpmd: add --portlist option
[dpdk.git] / examples / ipsec-secgw / test / linux_test4.sh
index d636f56..fb8ae10 100644 (file)
@@ -1,4 +1,5 @@
 #! /bin/bash
+# SPDX-License-Identifier: BSD-3-Clause
 
 # usage:  /bin/bash linux_test4.sh <ipsec_mode>
 # for list of available modes please refer to run_test.sh.
@@ -15,6 +16,8 @@
 #  SGW_LCORE - lcore to run ipsec-secgw on (default value is 0)
 #  CRYPTO_DEV - crypto device to be used ('-w <pci-id>')
 #  if none specified appropriate vdevs will be created by the scrit
+#  MULTI_SEG_TEST - ipsec-secgw option to enable reassembly support and
+#  specify size of reassembly table (i.e. MULTI_SEG_TEST="--reassemble 128")
 #
 # The purpose of the script is to automate ipsec-secgw testing
 # using another system running linux as a DUT.
@@ -42,6 +45,8 @@ MODE=$1
  . ${DIR}/common_defs.sh
  . ${DIR}/${MODE}_defs.sh
 
+select_mode
+
 config_secgw
 
 secgw_start
@@ -52,9 +57,11 @@ config_remote_xfrm
 
  . ${DIR}/data_rxtx.sh
 
-ping_test1 ${REMOTE_IPV4}
+set_local_mtu ${MTU_LEN}
+ping_test1 ${REMOTE_IPV4} 0 ${PING_LEN}
 st=$?
 if [[ $st -eq 0 ]]; then
+       set_local_mtu ${DEF_MTU_LEN}
        scp_test1 ${REMOTE_IPV4}
        st=$?
 fi