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

Inherits C14_024_07.

Public Member Functions

 C14_024_07_02 ()
 
boolean execute () throws TestException
 

Protected Member Functions

boolean initialize () throws TestException
 

Detailed Description

14.1.5.6.1 P_KEYTABLE FOR SWITCH ONLY TEST FOR UNSUPPORTED ATTRIBUTE

14.1.5.6 V1C14-024.1.1 SUBNET MANAGEMENT ATTRIBUTE - PARTITIONTABLE - SWITCH ONLY

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

Coverage: 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=xCA, Switch Management Port

DUT Qualifiers: None, unless specified in algorithm section. Notes:

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

Test Case Description

◆ C14_024_07_02()

14.1.5.6.1 P_KEYTABLE FOR SWITCH ONLY TEST FOR UNSUPPORTED ATTRIBUTE

Assertions: v1c14-024.1.1#07.01, v1c14-024.1.1#07.02, v1c14-024.1.1#07.03, v1c14-027#01

Notes:

  1. This Part of the test is for switch devices only (not including switch management port which is defined in TD 17.1.5.2.6).// v1c14-024.1.1#07.01
  2. Variable PARTITION_ENFORCEMENT_CAP of type integer
  3. Variable NUM_PORTS of type integer
  4. 32 variables P_KEY_BLOCK[i] of type integer.(i as index to P_KeyTableBlock)
  5. SMP_DATA is variable of type MadPacketSpec

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.

◆ execute()

boolean execute ( ) throws TestException

Tester Procedure:

  1. SendMad (SubnGet(SwitchInfo))

  2. PART_ENFORCEMENT_CAP = SMP_DATA:PartitionENforcementCap

  3. Verify PartitionEnforcementCap == 0

    • Remark: Get number of ports on the switch
  4. SendMad (SubnGet(NodeInfo))

  5. Get number of ports and Partition Key Cap (we need this later)

  6. Tester Procedure steps 7 to 12 should be repeated for all legal values of both fields in P_KeyTable AttributeModifier (AttributeModifier[15:0] gets 0 to 2047, AttributeModifier[31:16] gets 1 to number of switch physical ports).
  7. SendMad (SubnSet(P_KeyTable where MADHeader:AttributeModifier[15:0] = as specified , MADHeader:AttributeModifier[31:16] = as specified))
  8. SMP_DATA = ReceiveMad (SubnGetResp(P_KeyTable))
  9. Verify SMP_DATA format: // v1c14-024.1.1#07.01, v1c14-024.1.1#07.03
    • MADHeader:AttributeID == P_KeyTable
    • MADHeader:AttributeModifier[15:0] - equal to the one we sent
    • MADHeader:Status == 7
    • Remark: Status indication of error is expected because entry number is not supported - means we have one field in attribute with invalid value.
  10. SendMad (SubnGet(P_KeyTable where MADHeader:AttributeModifier[15:0] = as specified , MADHeader:AttributeModifier[31:16] = as specified))
  11. SMP_DATA = ReceiveMad (SubnGetResp(P_KeyTable))
  12. Verify SMP_DATA format: // v1c14-024.1.1#07.02

    • MADHeader:AttributeID == P_KeyTable
    • MADHeader:AttributeModifier[15:0] - equal to the one we sent
    • MADHeader:Status == 7
    • Remark: Status indication of error is expected because entry number is not supported - means we have one field in attribute with invalid value.


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