[dpdk-dev] packet sojourn time on TX/RX queues

2016-10-18 Thread Ali Volkan Atli

Hello

I'm trying to implement CoDel algorithm on Intel's DPDK library, so I need to 
measure packet sojourn time (the time a packet stays in the queue before being 
sent) but I have trouble with measuring packet sojourn time on RX/TX queues 
because of DMA usage. When I call rte_eth_tx_burst() function, DPDK puts 
packets into DMA-region using ring buffer and I have no idea when packets sent 
really into network. Likewise, when I call rte_eth_rx_burst(), I don't have any 
idea when packets arrived because I'm pulling the packets from ring buffer 
handled by DMA, so I'm not sure totally but I think I have no chance to measure 
sojourn time for dma-like implementation. Could you please correct me if I'm 
wrong. Also any comments/suggestions would be greatly appreciated.

Thanks in advance..

?- Volkan


[dpdk-dev] How to get the number of used descriptors for vHost-users

2016-08-18 Thread Ali Volkan Atli

Hi all

Is there a function -like rte_eth_rx_queue_count()- to get the number of used 
(or free) descriptors in a vHost RX/TX's queue? I used 
rte_vhost_avail_entries() but I'm not sure it is correct way.

Thanks in advance.

- Volkan


[dpdk-dev] [PATCH] net/e1000: fix return value of eth_igb_rx_queue_count()

2016-07-27 Thread Ali Volkan ATLI
Signed-off-by: Ali Volkan ATLI 
---
 drivers/net/e1000/igb_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/e1000/igb_rxtx.c b/drivers/net/e1000/igb_rxtx.c
index 9d80a0b..c5db727 100644
--- a/drivers/net/e1000/igb_rxtx.c
+++ b/drivers/net/e1000/igb_rxtx.c
@@ -1528,7 +1528,7 @@ eth_igb_rx_queue_count(struct rte_eth_dev *dev, uint16_t 
rx_queue_id)
desc - rxq->nb_rx_desc]);
}

-   return 0;
+   return desc;
 }

 int
-- 
1.8.3.1