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

Function ionic_adminq_check_err

dpdk/drivers/net/ionic/ionic_main.c:125–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static int
126ionic_adminq_check_err(struct ionic_admin_ctx *ctx, bool timeout)
127{
128 const char *name;
129 const char *status;
130
131 name = ionic_opcode_to_str(ctx->cmd.cmd.opcode);
132
133 if (ctx->comp.comp.status || timeout) {
134 status = ionic_error_to_str(ctx->comp.comp.status);
135 IONIC_PRINT(ERR, "%s (%d) failed: %s (%d)",
136 name,
137 ctx->cmd.cmd.opcode,
138 timeout ? "TIMEOUT" : status,
139 timeout ? -1 : ctx->comp.comp.status);
140 return -EIO;
141 }
142
143 IONIC_PRINT(DEBUG, "%s (%d) succeeded", name, ctx->cmd.cmd.opcode);
144
145 return 0;
146}
147
148static bool
149ionic_adminq_service(struct ionic_cq *cq, uint16_t cq_desc_index,

Callers 1

ionic_adminq_post_waitFunction · 0.85

Calls 2

ionic_opcode_to_strFunction · 0.85
ionic_error_to_strFunction · 0.85

Tested by

no test coverage detected