* ice_sched_get_node - Get the struct ice_sched_node for given TEID * @pi: port information structure * @teid: Scheduler node TEID * * This function retrieves the ice_sched_node struct for given TEID from * the SW DB and returns it to the caller. */
| 1338 | * the SW DB and returns it to the caller. |
| 1339 | */ |
| 1340 | struct ice_sched_node *ice_sched_get_node(struct ice_port_info *pi, u32 teid) |
| 1341 | { |
| 1342 | struct ice_sched_node *node; |
| 1343 | |
| 1344 | if (!pi) |
| 1345 | return NULL; |
| 1346 | |
| 1347 | /* Find the node starting from root */ |
| 1348 | ice_acquire_lock(&pi->sched_lock); |
| 1349 | node = ice_sched_find_node_by_teid(pi->root, teid); |
| 1350 | ice_release_lock(&pi->sched_lock); |
| 1351 | |
| 1352 | if (!node) |
| 1353 | ice_debug(pi->hw, ICE_DBG_SCHED, "Node not found for teid=0x%x\n", teid); |
| 1354 | |
| 1355 | return node; |
| 1356 | } |
| 1357 | |
| 1358 | /** |
| 1359 | * ice_sched_query_res_alloc - query the FW for num of logical sched layers |
no test coverage detected