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

Function ena_com_destroy_io_queue

dpdk/drivers/net/ena/base/ena_com.c:2171–2189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2169}
2170
2171void ena_com_destroy_io_queue(struct ena_com_dev *ena_dev, u16 qid)
2172{
2173 struct ena_com_io_sq *io_sq;
2174 struct ena_com_io_cq *io_cq;
2175
2176 if (qid >= ENA_TOTAL_NUM_QUEUES) {
2177 ena_trc_err(ena_dev, "Qid (%d) is bigger than max num of queues (%d)\n",
2178 qid, ENA_TOTAL_NUM_QUEUES);
2179 return;
2180 }
2181
2182 io_sq = &ena_dev->io_sq_queues[qid];
2183 io_cq = &ena_dev->io_cq_queues[qid];
2184
2185 ena_com_destroy_io_sq(ena_dev, io_sq);
2186 ena_com_destroy_io_cq(ena_dev, io_cq);
2187
2188 ena_com_io_queue_free(ena_dev, io_sq, io_cq);
2189}
2190
2191int ena_com_get_link_params(struct ena_com_dev *ena_dev,
2192 struct ena_admin_get_feat_resp *resp)

Callers 3

ena_create_io_queueFunction · 0.50
ena_queue_stopFunction · 0.50
ena_queue_startFunction · 0.50

Calls 3

ena_com_destroy_io_sqFunction · 0.70
ena_com_destroy_io_cqFunction · 0.70
ena_com_io_queue_freeFunction · 0.70

Tested by

no test coverage detected