net: Add initial TX and RX traffic class support
With this commit it is possible to add priority to sent or received network packets. So user is able to send or receive higher priority packets faster than lower level packets. The traffic class support is activated by CONFIG_NET_TC_COUNT option. The TC support uses work queues to separate the traffic. The priority of the work queue thread specifies the ordering of the network traffic. Each work queue thread handles traffic to one specific work queue. Note that you should not enable traffic classes unless you really need them by your application. Each TC thread needs stack so this feature requires more memory. It is possible to disable transmit traffic class support and keep the receive traffic class support, or vice versa. If both RX and TX traffic classes are enabled, then both will use the same number of queues defined by CONFIG_NET_TC_COUNT option. Fixes #6588 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
159aaf1740
commit
6049207a29
16 changed files with 600 additions and 211 deletions
|
@ -170,14 +170,6 @@
|
|||
__net_if_dev_end = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
SECTION_DATA_PROLOGUE(net_if_event, (OPTIONAL), SUBALIGN(4))
|
||||
{
|
||||
__net_if_event_start = .;
|
||||
*(".net_if_event.*")
|
||||
KEEP(*(SORT_BY_NAME(".net_if_event.*")))
|
||||
__net_if_event_end = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
||||
#if defined(CONFIG_NET_SHELL)
|
||||
SECTION_DATA_PROLOGUE(net_stack, (OPTIONAL), SUBALIGN(4))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue