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

Function clear_cmd

dpdk/drivers/common/idpf/idpf_common_device.h:159–166  ·  view source on GitHub ↗

clear current command. Only call in case execute * _atomic_set_cmd successfully. */

Source from the content-addressed store, hash-verified

157 * _atomic_set_cmd successfully.
158 */
159static inline void
160clear_cmd(struct idpf_adapter *adapter)
161{
162 /* Return value may be checked in anither thread, need to ensure the coherence. */
163 rte_wmb();
164 adapter->pend_cmd = VIRTCHNL2_OP_UNKNOWN;
165 adapter->cmd_retval = VIRTCHNL_STATUS_SUCCESS;
166}
167
168/* Check there is pending cmd in execution. If none, set new command. */
169static inline bool

Callers 2

idpf_vc_cmd_executeFunction · 0.85
idpf_get_pkt_typeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected