Configuration Examples

Software Architecture

product_line_custom
Napatech SmartNIC
category
Overview Document

Allocating host buffers

To allocate host buffers on specific NUMA nodes, create an ntservice.ini file and restart ntservice.

Example 1

This example configures two connected NT100E3-1-PTP accelerators to act separately.

For each NT100E3-1-PTP accelerator in this example (0 and 1), the bonding type, PCI bus ID and the NUMA node are specified. Finally, four RX host buffers are defined for both NT100E3-1-PTP accelerators, each 16 MB on their individual NUMA nodes.

[Adapter0]
AdapterType = NT100E3_1_PTP
BondingType = Separate
BusId = 0000:06:00.0
NumaNode = 0

[Adapter1]
AdapterType = NT100E3_1_PTP
BondingType = Separate
BusId = 0000:84:00.0
NumaNode = 1

[NT100E3_1_PTP]
HostBuffersRx = [4,16,$Local$]     # Allocate four 16 MB host buffers on the local NUMA node

Finding the bus ID

To find the bus ID, start ntservice with the default configuration and use the adapterinfo tool to locate the bus ID for a specific accelerator.

Example 2

This example configures an NT40E3-4-PTP accelerator.

For the NT40E3-4-PTP accelerator in this example, the native UNIX time stamp is selected first. The accelerator is accelerator 0 and located on the PCI bus at 00:0b:00:00. Eight RX host buffers are defined, each 16 MB from NUMA node 0. Finally, extended descriptor 9 is selected.

[System]
TimestampFormat=NATIVE_UNIX

[Adapter0]
AdapterType=NT40E3_4_PTP
BusId=00:0b:00:00
HostBuffersRx=[8,16,0]
PacketDescriptor=Ext9