Reference Documentation

Napatech SmartNIC
Reference Information
int NT_NetTxOpen_v3 ( NtNetStreamTx_t * hStream,
    const char * name,
    uint64_t portMask,
    uint32_t NUMA,
    uint64_t minHostBufferSize,
    enum NtPacketDescriptorType_e descriptor,
    enum NtTimestampType_e ts

Opens a TX host buffer and returns a NtNetStreamTx_t handle (extended version)

This function is called to retrieve a TX stream handle. This function will only work with 4GA adapters.


[out] hStream

Reference to a NtNetStreamTx_t stream pointer

[in] name

Stream friendly name - used in, for example, logging statements

[in] portMask

Bitmask for ports this stream will use for transmitting

[in] NUMA

NUMA node on which the host buffer is be located (NOTE: Special options in NtNetTxOpenNumaOption_e)

[in] minHostBufferSize

Minimum size of host buffer needed in bytes. The smallest host buffer found that is larger or equal to minHostBufferSize is used and the size of the host buffer is set to minHostBufferSize. If set to 0, the first host buffer found is used regardsless of the size.

[in] descriptor

Descriptor type to use when transmitting.

[in] ts

Timestamp format to use when transmitting.

Return values




Error - use NT_ExplainError for an error description

Definition at line 710 of file stream_net.h.