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