MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ice_sched_get_node

Function ice_sched_get_node

dpdk/drivers/net/ice/base/ice_sched.c:1340–1356  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

1338 * the SW DB and returns it to the caller.
1339 */
1340struct 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

Callers 1

ice_hierarchy_commitFunction · 0.85

Calls 1

Tested by

no test coverage detected