ST2110SchedulingMode type

How MTL schedules its internal tasklets for an ST 2110 NIC.

  • pinned: MTL pins each scheduler to its own DPDK lcore. Required for ST 2110-A (narrow) deterministic timing. Caller supplies the EAL main lcore and a list of worker lcores; all of them should be on the same NUMA node as the NIC. - free: Schedulers run as pthreads (MTL_FLAG_TASKLET_THREAD). Caller supplies only the EAL main lcore. Suitable for ST 2110-C (wide) and dev/test where strict pinning isn’t a goal.

Signature:

export type ST2110SchedulingMode = {
    type: "pinned";
    mainCore: number;
    otherCores: number[];
} | {
    type: "free";
    mainCore: number;
};