clear current command. Only call in case execute * _atomic_set_cmd successfully. */
| 157 | * _atomic_set_cmd successfully. |
| 158 | */ |
| 159 | static inline void |
| 160 | clear_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. */ |
| 169 | static inline bool |
no outgoing calls
no test coverage detected