NT_NetRxRelease

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
int NT_NetRxRelease ( NtNetStreamRx_t hStream,
    NtNetBuf_t netBuf
  )    

Releases network buffer.

This function will release the netBuf data obtained via NT_NetRxGet(). The data within netBuf will on an in-line profile be sent to the adapter upon release even in the case where the NTPL assignment has been terminated.

Note:

This function has no mutex protection, therefore the same hStream cannot be used by multiple threads

Parameters

[in] hStream

NetRx stream handle

[in] netBuf

Net buffer received via NT_NetRxGet()

Return values

NT_SUCCESS

Success

!=NT_SUCCESS

Error - use NT_ExplainError for an error description

Definition at line 610 of file stream_net.h.

Referenced by _ReleaseDgramTblEntry(), for(), main(), and while().