[P4-dev] 答复: how to get metadata in behavioral model with p4_16
imaginezz at outlook.com
Fri Apr 14 20:59:16 EDT 2017
I found where the error I made.
I use a intrinsic_metadata in the ingress pipeline, but it only work in the egress pipeline.
When I changed the code, it really worked!
发件人: Antonin Bas [mailto:antonin at barefootnetworks.com]
发送时间: 2017年4月13日 23:56
收件人: Bian Jason <imaginezz at outlook.com>
抄送: p4-dev at lists.p4.org
主题: Re: [P4-dev] how to get metadata in behavioral model with p4_16
I haven't tried using simple_switch's intrinsic metadata with P4_16 so I don't know if it works. Would you mind sending your P4 program over so I can take a look and try running it?
On Thu, Apr 13, 2017 at 4:45 AM, Bian Jason <imaginezz at outlook.com<mailto:imaginezz at outlook.com>> wrote:
I have some questions about how to get metadata in behavioral model with p4_16.
I add a struct named intrinsic_metadata_t in header.p4 and I add the metadata as https://github.com/p4lang/behavioral-model/blob/master/docs/simple_switch.md said, but the code doesn’t work.
P4-dev mailing list
P4-dev at lists.p4.org<mailto:P4-dev at lists.p4.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the P4-dev