]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/ark/ark_ethdev_rx.c
net/mlx5: add C++ include guard to public header
[dpdk.git] / drivers / net / ark / ark_ethdev_rx.c
index d255f0177b4cd2432ca22e0f3eccccb15c28c43c..98658ce621e26d10cbd8d513e4abd07e6f30c700 100644 (file)
@@ -388,11 +388,11 @@ eth_ark_rx_queue_drain(struct ark_rx_queue *queue)
 }
 
 uint32_t
-eth_ark_dev_rx_queue_count(struct rte_eth_dev *dev, uint16_t queue_id)
+eth_ark_dev_rx_queue_count(void *rx_queue)
 {
        struct ark_rx_queue *queue;
 
-       queue = dev->data->rx_queues[queue_id];
+       queue = rx_queue;
        return (queue->prod_index - queue->cons_index); /* mod arith */
 }