Quantcast
Channel: Sniffer10G
Viewing all articles
Browse latest Browse all 99

How can I monitor the fullness of the receive ring in Sniffer10G?

$
0
0

Sniffer10G version 2.x has this function:

int snf_ring_recv_qinfo(snf_ring_t ring, struct snf_ring_qinfo *)' 

with the structure as defined below.

	/** Queue consumption information **/

struct snf_ring_qinfo {
	uintptr_t q_avail; /**< Amount of data available not yet received (approximate) */
	uintptr_t q_borrowed; /**< Amount of data currently borrowed (exact) */
	uintptr_t q_free; /**< Amount of free space still available (approximate) */
};

All these values are in bytes.

Also read:


Viewing all articles
Browse latest Browse all 99