Lines Matching +full:priorities +full:- +full:map +full:- +full:tc
4 * SPDX-License-Identifier: Apache-2.0
50 bool net_tc_submit_to_tx_queue(uint8_t tc, struct net_pkt *pkt) in net_tc_submit_to_tx_queue() argument
55 submit_to_queue(&tx_classes[tc].fifo, pkt); in net_tc_submit_to_tx_queue()
57 ARG_UNUSED(tc); in net_tc_submit_to_tx_queue()
63 void net_tc_submit_to_rx_queue(uint8_t tc, struct net_pkt *pkt) in net_tc_submit_to_rx_queue() argument
68 submit_to_queue(&rx_classes[tc].fifo, pkt); in net_tc_submit_to_rx_queue()
70 ARG_UNUSED(tc); in net_tc_submit_to_rx_queue()
110 #define BASE_PRIO_TX (CONFIG_NET_TC_NUM_PRIORITIES - 1)
112 #define BASE_PRIO_TX (CONFIG_NET_TC_TX_COUNT - 1)
115 #define PRIO_TX(i, _) (BASE_PRIO_TX - i)
120 #define BASE_PRIO_RX (CONFIG_NET_TC_NUM_PRIORITIES - 1)
122 #define BASE_PRIO_RX (CONFIG_NET_TC_RX_COUNT - 1)
125 #define PRIO_RX(i, _) (BASE_PRIO_RX - i)
129 static uint8_t tx_tc2thread(uint8_t tc) in tx_tc2thread() argument
132 * If there are less queues than classes, then map them into in tx_tc2thread()
145 * values if preemptive priorities are used: in tx_tc2thread()
149 * if cooperative priorities are used. in tx_tc2thread()
151 * Then these will be converted to following thread priorities if in tx_tc2thread()
153 * -1, -2, -3, -4, -5, -6, -7, -8 in tx_tc2thread()
156 * priorities are used: in tx_tc2thread()
160 * cooperative priority -1 for coop priorities and 7 for preemptive in tx_tc2thread()
170 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in tx_tc2thread()
172 return thread_priorities[tc]; in tx_tc2thread()
178 static uint8_t rx_tc2thread(uint8_t tc) in rx_tc2thread() argument
187 NET_ASSERT(tc < ARRAY_SIZE(thread_priorities)); in rx_tc2thread()
189 return thread_priorities[tc]; in rx_tc2thread()
327 NET_ERR("Cannot create TC handler thread %d", i); in net_tc_tx_init()
385 NET_ERR("Cannot create TC handler thread %d", i); in net_tc_rx_init()