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

Function ice_dcf_vc_cmd_set

dpdk/drivers/net/ice/ice_dcf.c:215–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215static __rte_always_inline void
216ice_dcf_vc_cmd_set(struct ice_dcf_hw *hw, struct dcf_virtchnl_cmd *cmd)
217{
218 cmd->v_ret = IAVF_ERR_NOT_READY;
219 cmd->rsp_msglen = 0;
220 cmd->pending = 1;
221
222 rte_spinlock_lock(&hw->vc_cmd_queue_lock);
223
224 TAILQ_INSERT_TAIL(&hw->vc_cmd_queue, cmd, next);
225
226 rte_spinlock_unlock(&hw->vc_cmd_queue_lock);
227}
228
229static __rte_always_inline int
230ice_dcf_vc_cmd_send(struct ice_dcf_hw *hw, struct dcf_virtchnl_cmd *cmd)

Callers 2

ice_dcf_send_aq_cmdFunction · 0.85

Calls 2

rte_spinlock_lockFunction · 0.50
rte_spinlock_unlockFunction · 0.50

Tested by

no test coverage detected