79 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
			
		
		
	
	
			79 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
| #!/bin/sh
 | |
| 
 | |
| ################################################################################
 | |
| ##                                                                            ##
 | |
| ## Copyright (c) International Business Machines  Corp., 2005                 ##
 | |
| ##                                                                            ##
 | |
| ## This program is free software;  you can redistribute it and#or modify      ##
 | |
| ## it under the terms of the GNU General Public License as published by       ##
 | |
| ## the Free Software Foundation; either version 2 of the License, or          ##
 | |
| ## (at your option) any later version.                                        ##
 | |
| ##                                                                            ##
 | |
| ## This program is distributed in the hope that it will be useful, but        ##
 | |
| ## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
 | |
| ## or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ##
 | |
| ## for more details.                                                          ##
 | |
| ##                                                                            ##
 | |
| ## You should have received a copy of the GNU General Public License          ##
 | |
| ## along with this program;  if not, write to the Free Software               ##
 | |
| ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA    ##
 | |
| ##                                                                            ##
 | |
| ##                                                                            ##
 | |
| ################################################################################
 | |
| #
 | |
| # File:
 | |
| #   tcp4-uni-tso01
 | |
| #
 | |
| # Description:
 | |
| #   Verify that the kernel is not crashed with a connection to with
 | |
| #   the following condition:
 | |
| #     - The version of IP is IPv4
 | |
| #     - Network is not delayed
 | |
| #     - IPsec is not used
 | |
| #     - Enable window scaling
 | |
| #     - Enable Nagle algorithm
 | |
| #     - Enable TCP Duplicate SACK support
 | |
| #     - Enable SACK Support
 | |
| #     - No packet are lost
 | |
| #     - Enable TSO if it is avalable
 | |
| #
 | |
| #   *) This script may be read by the other test case
 | |
| #
 | |
| # Setup:
 | |
| #   See testcases/network/stress/README
 | |
| #
 | |
| # Author:
 | |
| #   Mitsuru Chinen <mitch@jp.ibm.com>
 | |
| #
 | |
| # History:
 | |
| #	Oct 19 2005 - Created (Mitsuru Chinen)
 | |
| #
 | |
| #-----------------------------------------------------------------------
 | |
| # Uncomment line below for debug output.
 | |
| #trace_logic=${trace_logic:-"set -x"}
 | |
| $trace_logic
 | |
| 
 | |
| # The test case ID, the test case count and the total number of test case
 | |
| TCID=${TCID:-tcp4-uni-tso01}
 | |
| TST_TOTAL=1
 | |
| TST_COUNT=1
 | |
| export TCID
 | |
| export TST_COUNT
 | |
| export TST_TOTAL
 | |
| 
 | |
| # Test description
 | |
| tst_resm TINFO "Verify that the kernel, whose NIC supports TCP Segmentation Offload, is not crashed by a connection enabling TCP window scaling"
 | |
| 
 | |
| # Enable window scaling
 | |
| DO_WINDOW_SCALING=true
 | |
| 
 | |
| # Enable TSO
 | |
| DO_TSO=true
 | |
| 
 | |
| # Load tcp4-uni-basic01
 | |
| NON_BASIC=true
 | |
| 
 | |
| . tcp4-uni-basic01
 | |
| 
 | |
| exit 0
 |