I am working on an In-band Network Telemetry (INT) project using P4. However, I noticed that the queue depth in my INT metadata is always reported as 0, regardless of the network load. I have tried change the sleep from 1 to 0.000001, but the qdepth is still always 0.
Questions:
What could be the reason that queue depth is always 0?
Is there any specific configuration required in BMv2 (or hardware target) to enable queue depth measurement?
How can I debug queue occupancy in BMv2 to verify if packets are actually queued?