Closed heaij closed 9 months ago
It is true that your question is relevant to code in this repository, but I would encourage you to ask your question on this web forum instead, where more people are likely to be reading and willing to answer than here, and the discussion/answers will be more easily searchable in the future (I hope): https://forum.p4.org/
I'm a beginner of p4. I'm,a little confuse ,in the mri example, how does the P4 get the id of the switch and qdepth when it is running?in the code only have parameter call(hdr.swtraces[0].swid = swid;hdr.swtraces[0].qdepth = (qdepth_t)standard_metadata.deq_qdepth;)How exactly does P4 get swid and queue information?