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

Function mrvl_flush_rx_queues

dpdk/drivers/net/mvpp2/mrvl_ethdev.c:974–994  ·  view source on GitHub ↗

* Flush receive queues. * * @param dev * Pointer to Ethernet device structure. */

Source from the content-addressed store, hash-verified

972 * Pointer to Ethernet device structure.
973 */
974static void
975mrvl_flush_rx_queues(struct rte_eth_dev *dev)
976{
977 int i;
978
979 MRVL_LOG(INFO, "Flushing rx queues");
980 for (i = 0; i < dev->data->nb_rx_queues; i++) {
981 int ret, num;
982
983 do {
984 struct mrvl_rxq *q = dev->data->rx_queues[i];
985 struct pp2_ppio_desc descs[MRVL_PP2_RXD_MAX];
986
987 num = MRVL_PP2_RXD_MAX;
988 ret = pp2_ppio_recv(q->priv->ppio,
989 q->priv->rxq_map[q->queue_id].tc,
990 q->priv->rxq_map[q->queue_id].inq,
991 descs, (uint16_t *)&num);
992 } while (ret == 0 && num);
993 }
994}
995
996/**
997 * Flush transmit shadow queues.

Callers 1

mrvl_dev_closeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected