* Flush receive queues. * * @param dev * Pointer to Ethernet device structure. */
| 972 | * Pointer to Ethernet device structure. |
| 973 | */ |
| 974 | static void |
| 975 | mrvl_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. |