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

24.1.5.11.1 READ ONLY COMPONENTS More...

Inherits C14_024_04_SW.

Public Member Functions

 C14_024_04_SW_01 ()
 
boolean execute () throws TestException
 

Protected Member Functions

boolean initialize () throws TestException
 

Private Member Functions

void SubnSetROFields (String strField, Field field, long value) throws TestException
 

Detailed Description

24.1.5.11.1 READ ONLY COMPONENTS

24.1.5.11 V1C14-024.1.1 SUBNET MANAGEMENT ATTRIBUTE - SWITCHINFO

Abstract: This test performs checks of SwitchInfo attribute and components, except for SwitchInfo:PortStateChange. 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 or EDR; DUT=Switch.

DUT Qualifiers: None, unless specified in algorithm section.

Notes:

  1. Additional checking of method/attribute combinations is performed in tests for v1c14-003.
  2. SMP_DATA and SMP_DATA_UPDATE are variables of type MadPacketSpec

Test Case Description

◆ C14_024_04_SW_01()

24.1.5.11.1 SWITCHINFO READ ONLY COMPONENTS

Assertions: v1c13-024#01 (cont), v1c14-024.1.1#04.01, v1c14-024.1.1#04.02, v1c14-024.1.1#04.03, v1c14-027#01, v1c14-030#01

Notes:

  1. Variable RO_COMP_LIST is the set of SwitchInfo read-only components consisting of:

    • SwitchInfo:LinearFDBCap
    • SwitchInfo:RandomFDBCap
    • SwitchInfo:MulticastFDBCap
    • SwitchInfo:LIDsPerPort
    • SwitchInfo:PartitionEnforcementCap
    • SwitchInfo:InboundEnforcementCap
    • SwitchInfo:OutboundEnforcementCap
    • SwitchInfo:FilterRawPacketInboundCap
    • SwitchInfo:FilterRawPacketOutboundCap
    • SwitchInfo:EnhancementPort0

    Developer:: Llolsten Kaonga

Test Procedure

◆ execute()

boolean execute ( ) throws TestException

Initialization: see Initialization

Test Procedure:

  1. SendMad (SubnGet(SwitchInfo))

  2. SMP_DATA = ReceiveMad()

  3. Verify SMP Data format and FDBCap

  4. SWITCH_INFO_DATA1 = SWITCH_INFO_DATA

  5. For each SwitchInfo RO component, do

  6. See SubnSetROFields for steps 6-9

  7. For each component in RO_COMP_LIST do:

    1. Verify (SMP_DATA_UPDATE.component == SMP_DATA.COMP ) v1c14-024.1.1#04.02, v1c14-024.1.1#04.03, v1c14-027#01, v1c14-030#01
      • Remark: Confirm that RO components in Step 2 have not been modified.
    2. Verify MADHeader:Status.Code == 0 // v1c13-024#01 (cont)

◆ SubnSetROFields()

void SubnSetROFields ( String  strField,
Field  field,
long  value 
) throws TestException
private

SubnSetROFields

  1. SendMad( SubnSet(SwitchInfo) where MADHeader:SMPData=SWITCH_INFO_DATA1)

  2. SMP_DATA = ReceiveMad(SubnGetResp(PortInfo))

  3. SendMad ( SubnGet(SwitchInfo) ) // TD says this step is unnecessary but it is done in TCL anyway

  4. SMP_DATA = ReceiveMad( SubnGetResp(SwitchInfo))

◆ initialize()

boolean initialize ( ) throws TestException
protectedinherited

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.

  4. Get Number of Ports


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