InfiniBand Test Specification  1.0.38
Public Member Functions | Protected Member Functions | List of all members
C14_024_06_SW_02

Inherits MadTest.

Public Member Functions

 C14_024_06_SW_02 ()
 
boolean execute () throws TestException
 

Protected Member Functions

boolean initialize () throws TestException
 

Detailed Description

24.1.5.17.2 PORTINFO FOR SWITCH ONLY - PART 2

24.1.5.17 V1C14-024.1.1 SUBNET MANAGEMENT ATTRIBUTE - PORTINFO FOR SWITCH ONLY

Abstract: This test performs checks of PortInfo attribute and components for the Switch only. Included are tests for both Read-Only (RO) and Read-Write (RW) attribute components.

Coverage: v1c13-024, v1c14-024.1.1, v1c14-027, v1c14-030

Topology Configuration: SimpleLink: Tester=MAD Tester; Width=1X, 2X, 4X, 8X, or 12X; Speed=SDR, DDR, QDR, FDR, EDR, HDR; DUT=Switch.

DUT Qualifiers: None, unless specified in algorithm section.

Notes: Additional checking of method/attribute combinations is performed in tests for v1c14-003.

Test Case Description

◆ C14_024_06_SW_02()

24.1.5.17.2 PORTINFO FOR SWITCH ONLY - PART 2

Assertions: v1c13-024#07, v1c14-024.1.1#06.01, v1c14-024.1.1#06.02, v1c14-024.1.1#06.04, v1c14-030#01

Notes:

  1. This part of the test is for Switch External ports only.
  2. This TD tests the RW fields which are being tested with illegal values.
  3. Repeat all steps with Attribute Modifier larger than 0 ( Attribute Modifier should not be equal to 0 ) and smaller than/equal to number of device ports ( as noted in NodeInfo:NumPorts).
  4. Variable PORT_INFO_DATA and PORT_INFO_DATA1 as structures of PortInfo Attribute structure which contains all fields as Integers.
  5. Variable SMP_DATA of type MadPacketSpec

Developer: Kevin King

Test Procedure

◆ initialize()

boolean initialize ( ) throws TestException
protected

Initialization:

  1. PortInfo:PortState is Initialized, Armed or Active for both MADTester and DUT.

  2. DUT PortInfo:M_Key = 0 on all ports.

  3. DUT PortInfo:M_KeyProtectBits = 0 on all ports.

◆ execute()

boolean execute ( ) throws TestException

Tester Procedure:

  1. SendMad (SubnGet(PortInfo))

  2. PORT_INFO_DATA = ReceiveMad (SubnGetResp(PortInfo):MAD- Header:MADData)// v1c14-024.1.1#06.02, v1c14-030#01

    Remark: Change RW field LinkWidthEnabled to illegal value - reserved value and value which is not supported according to LinkWidthSupported.

  3. PORT_NFO_DATA1 = PORT_INFO_DATA
  4. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  5. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  6. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  7. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  8. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  9. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    If linkWidthSupported == 11, skip steps 10 through 16 else

  10. PORT_NFO_DATA1 = PORT_INFO_DATA
  11. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  12. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  13. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01
    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07
  14. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  15. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  16. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  17. PORT_INFO_DATA1 = PORT_INFO_DATA

    Remark: Change RW fields of PORT_INFO_DATA1 which have special cases in PortInfo.

    • PORT_INFO_DATA1.PortState = non-legal transition from PORT_INFO_DATA.PortState

  18. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))

  19. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))

  20. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: Only legal transitions are valid.

  21. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  22. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  23. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  24. PORT_INFO_DATA1 = PORT_INFO_DATA

  25. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as spec- ified , where MADHeader:MADData = PORT_INFO_DATA1))

  26. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))

  27. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: Only Valid values are accepted - value shall not change.

  28. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  29. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  30. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  31. PORT_INFO_DATA1 = PORT_INFO_DATA

  32. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))

  33. MP_DATA = ReceiveMad (SubnGetResp(PortInfo))

  34. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  35. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  36. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  37. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  38. PORT_NFO_DATA1 = PORT_INFO_DATA
  39. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  40. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  41. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    Remark: Change RW fields of PORT_INFO_DATA1 which have special cases in PortInfo.

  42. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  43. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  44. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  45. PORT_NFO_DATA1 = PORT_INFO_DATA
  46. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  47. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  48. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: Change RW field LinkSpeedEnabled to illegal values - reserved value and greater than LinkSpeedSupported values.

  49. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  50. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  51. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: Change RW field LinkSpeedEnabled to illegal values - reserved value and greater than LinkSpeedSupported values.

  52. PORT_NFO_DATA1 = PORT_INFO_DATA
  53. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  54. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  55. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  56. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  57. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  58. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  59. PORT_NFO_DATA1 = PORT_INFO_DATA
  60. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  61. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  62. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: Change RW field NeighborMTU to illegal value - reserved value and greater than MTUCap value.

  63. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  64. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  65. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: If MTUCap supports max MTU (4 Kbyte) then skip this check.

  66. PORT_NFO_DATA1 = PORT_INFO_DATA
  67. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  68. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  69. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01
    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07
  70. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  71. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  72. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

  73. PORT_NFO_DATA1 = PORT_INFO_DATA
  74. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  75. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  76. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07
    • PORT_INFO_DATA1.OperationalVLs = reserved value

    Remark: Change RW field OperationalVLs to illegal value - reserved value and greater than VLCap.

  77. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  78. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  79. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07

    Remark: If VLCap supports all option (means : VL0 - VL14) then skip this check.

  80. PORT_NFO_DATA1 = PORT_INFO_DATA
  81. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = as specified , where MADHeader:MADData = PORT_INFO_DATA1))
  82. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  83. Verify SMP_DATA format: // v1c14-024.1.1#06.01, v1c14-024.1.1#06.04, v1c14-030#01
    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07
  84. SendMad (SubnGet(PortInfo where MADHeader:AttributeModifier = as specified))
  85. SMP_DATA = ReceiveMad (SubnGetResp(PortInfo))
  86. Verify SMP_DATA format:

    • MADHeader:AttributeID == PortInfo
    • MADHeader:AttributeModifier == as specified
    • MADHeader:Status.Code == 7 // v1c13-024#07


The documentation for this class was generated from the following file: