tcp4-uni-smallsend01 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #!/bin/sh
  2. ################################################################################
  3. ## ##
  4. ## Copyright (c) International Business Machines Corp., 2005 ##
  5. ## ##
  6. ## This program is free software; you can redistribute it and#or modify ##
  7. ## it under the terms of the GNU General Public License as published by ##
  8. ## the Free Software Foundation; either version 2 of the License, or ##
  9. ## (at your option) any later version. ##
  10. ## ##
  11. ## This program is distributed in the hope that it will be useful, but ##
  12. ## WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY ##
  13. ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License ##
  14. ## for more details. ##
  15. ## ##
  16. ## You should have received a copy of the GNU General Public License ##
  17. ## along with this program; if not, write to the Free Software ##
  18. ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA ##
  19. ## ##
  20. ## ##
  21. ################################################################################
  22. #
  23. # File:
  24. # tcp4-uni-smallsend01
  25. #
  26. # Description:
  27. # Verify that the kernel is not crashed with a connection to with
  28. # the following condition:
  29. # - The version of IP is IPv4
  30. # - Network is not delayed
  31. # - IPsec is not used
  32. # - Disable window scaling
  33. # - Disable Nagle algorithm
  34. # - Enable TCP Duplicate SACK support
  35. # - Enable SACK Support
  36. # - No packet are lost
  37. # - Disable TSO if it is avalable
  38. #
  39. # *) This script may be read by the other test case
  40. #
  41. # Setup:
  42. # See testcases/network/stress/README
  43. #
  44. # Author:
  45. # Mitsuru Chinen <mitch@jp.ibm.com>
  46. #
  47. # History:
  48. # Oct 19 2005 - Created (Mitsuru Chinen)
  49. #
  50. #-----------------------------------------------------------------------
  51. # Uncomment line below for debug output.
  52. #trace_logic=${trace_logic:-"set -x"}
  53. $trace_logic
  54. # The test case ID, the test case count and the total number of test case
  55. TCID=${TCID:-tcp4-uni-smallsend01}
  56. TST_TOTAL=1
  57. TST_COUNT=1
  58. export TCID
  59. export TST_COUNT
  60. export TST_TOTAL
  61. # Test description
  62. tst_resm TINFO "Verify that the kernel is not crashed by a connection disabling NAGLE algorithm"
  63. # Disable NAGLE algorithm
  64. DO_SMALL_SEND=true
  65. # Load tcp4-uni-basic01
  66. NON_BASIC=true
  67. . tcp4-uni-basic01
  68. exit 0