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

Function ionic_qcq_disable

dpdk/drivers/net/ionic/ionic_lif.c:33–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31static int ionic_lif_addr_del(struct ionic_lif *lif, const uint8_t *addr);
32
33static int
34ionic_qcq_disable(struct ionic_qcq *qcq)
35{
36 struct ionic_queue *q = &qcq->q;
37 struct ionic_lif *lif = qcq->lif;
38 struct ionic_admin_ctx ctx = {
39 .pending_work = true,
40 .cmd.q_control = {
41 .opcode = IONIC_CMD_Q_CONTROL,
42 .type = q->type,
43 .index = rte_cpu_to_le_32(q->index),
44 .oper = IONIC_Q_DISABLE,
45 },
46 };
47
48 return ionic_adminq_post_wait(lif, &ctx);
49}
50
51void
52ionic_lif_stop(struct ionic_lif *lif)

Callers 2

ionic_lif_txq_deinitFunction · 0.85
ionic_lif_rxq_deinitFunction · 0.85

Calls 1

ionic_adminq_post_waitFunction · 0.85

Tested by

no test coverage detected