Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial

ID 683574
Date 10/04/2021
Public
Document Table of Contents

1.7.4.2. NicheStack TCP/IP Stack Internal Tasks

TK_NETMAIN_TPRIO, defined in ipport.h, sets the priority to a value of 2 for the main NicheStack TCP/IP Stack task, launched by netmain(). This task implements the core functionality of the NicheStack TCP/IP Stack. To maximize the TCP/IP packet throughput rate, the priority of this task should be higher than application tasks that use the NicheStack TCP/IP Networking Stack.

TK_NETTICK_TPRIO, defined in ipport.h, sets the priority to a value of 3 for the NicheStack TCP/IP Stack time-keeping task, launched by netmain(). The NicheStack TCP/IP Stack uses this task to keep track of time-based events in the networking stack. Intel® recommends that you set the priority of this task to one priority level lower than TK_NETMAIN_TPRIO.