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

Inherits MadTest.

Public Member Functions

 C14_024_06_SW_04 ()
 
boolean execute () throws TestException
 

Protected Member Functions

boolean initialize () throws TestException
 

Detailed Description

24.1.5.17.4 PORTINFO FOR SWITCH ONLY - PART 4

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_04()

24.1.5.17.4 PORTINFO FOR SWITCH ONLY - PART 4

Assertions: v1c13-024#01 (cont), v1c14-024.1.1#06.01, v1c14-024.1.1#06.02, v1c14-024.1.1#06.03, v1c14-024.1.1#06.04, v1c14-027#01, v1c14-030#01

Notes:

  1. This part of the test is for Enhanced Switch Port 0 (Enh. SP0) Only.
  2. This TD tests the RW and RO fields
  3. Variable ENHANCED_PORT_0 of type Integer
  4. Variable PORT_INFO_DATA and PORT_INFO_DATA1 are structures of PortInfo Attribute structure which contains all fields as Integers.
  5. Variable SMP_DATA of type MadPacketSpec
  6. Variable PORT_NUM is of type Integer

Developer: Llolsten Kaonga

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(SwitchInfo))

  2. ENHANCED_PORT_0 = ReceiveMad (SubnGetResp(Switch-Info):EnhancedPort0) // v1c14-030#01

  3. SendMad (SubnGet(PortInfo))

  4. PORT_INFO_DATA = ReceiveMad (SubnGetResp(PortInfo):MADHeader:MADData)// v1c14-024.1.1#06.02, v1c14-030#01

  5. Verify ENHANCED_PORT_0 == 1

    Remark: If this field equals to 1 then Switch Management port is enhanced.

  6. Test setting Read Only fields

  7. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = PORT_NUM, where MADHeader:MADAData = PORT_INFO_DATA1))

  8. SMP_DATA = ReceiveMad(SubnGetResp(PortInfo))

  9. Verify SMP_DATA format

    Remark: According to Hal DUTs should ignore setting of RO fields. So do not verify MAD Status

  10. PORT_NFO_DATA1 = PORT_INFO_DATA

  11. SendMad (SubnSet(PortInfo where MADHeader:AttributeModifier = PORT_NUM, where MADHeader:MADAData = PORT_INFO_DATA1))

  12. SMP_DATA = ReceiveMad (SubnGetResp(POrtInfo))

  13. Verify SMP_DATA format

  14. Reset DUT PortInfo fields to original values


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