C# Class Microsoft.Protocol.TestSuites.Smbd.TestSuite.Smb2OverRdmaChannel

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: Microsoft/WindowsProtocolTestSuites

Public Methods

Method Description
InitSmbdConnectionForTestCases ( string fileName ) : void
LogSmbdEndpointEvent ( string log ) : void
ReadOverRdma ( uint operationCount = 1 ) : void

Read file content over RDMA. The file content will be read with specific number of operations. The total size of the read content is SMB2 negotiated MaxReadSize, so content size in each SMB2 READ request is ( MaxReadSize / operationCount )

ValidateFileContent ( byte content, uint fileSize ) : void
WriteOverRdma ( uint operationCount = 1 ) : void

Write file content over RDMA. The file content will be writen with specific number of operations. The total size of the write content is SMB2 negotiated MaxWriteize, so content size in each SMB2 WRITE request is ( MaxWriteSize / operationCount )

Protected Methods

Method Description
TestCleanup ( ) : void
TestInitialize ( ) : void

Private Methods

Method Description
BVT_Smb2OverRdmaChannel_ReadLargeFile ( ) : void
BVT_Smb2OverRdmaChannel_WriteLargeFile ( ) : void
ClassCleanup ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext context ) : void
Smb2OverRdmaChannel_InvalidBufferDescriptor_DeregisteredBuffer ( ) : void
Smb2OverRdmaChannel_InvalidBufferDescriptor_Length ( ) : void
Smb2OverRdmaChannel_InvalidBufferDescriptor_Offset ( ) : void
Smb2OverRdmaChannel_InvalidBufferDescriptor_Token ( ) : void
Smb2OverRdmaChannel_ReadMultipleOperation ( ) : void
Smb2OverRdmaChannel_ReadWriteMultipleBufferDescriptorList ( ) : void
Smb2OverRdmaChannel_WriteMultipleOperation ( ) : void

Method Details

InitSmbdConnectionForTestCases() public method

public InitSmbdConnectionForTestCases ( string fileName ) : void
fileName string
return void

LogSmbdEndpointEvent() public method

public LogSmbdEndpointEvent ( string log ) : void
log string
return void

ReadOverRdma() public method

Read file content over RDMA. The file content will be read with specific number of operations. The total size of the read content is SMB2 negotiated MaxReadSize, so content size in each SMB2 READ request is ( MaxReadSize / operationCount )
public ReadOverRdma ( uint operationCount = 1 ) : void
operationCount uint Count of SMB2 READ operations.
return void

TestCleanup() protected method

protected TestCleanup ( ) : void
return void

TestInitialize() protected method

protected TestInitialize ( ) : void
return void

ValidateFileContent() public method

public ValidateFileContent ( byte content, uint fileSize ) : void
content byte
fileSize uint
return void

WriteOverRdma() public method

Write file content over RDMA. The file content will be writen with specific number of operations. The total size of the write content is SMB2 negotiated MaxWriteize, so content size in each SMB2 WRITE request is ( MaxWriteSize / operationCount )
public WriteOverRdma ( uint operationCount = 1 ) : void
operationCount uint count of SMB2 WRITE operation
return void