[P4-dev] 答复: how to get metadata in behavioral model with p4_16

Bian Jason imaginezz at outlook.com
Fri Apr 14 20:59:16 EDT 2017


Hi Antonin,

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!

Thanks,
Jason

发件人: 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

Hi Bian,

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?

Thanks,

Antonin

On Thu, Apr 13, 2017 at 4:45 AM, Bian Jason <imaginezz at outlook.com<mailto:imaginezz at outlook.com>> wrote:
Hello,

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.

Thanks,
Jason

_______________________________________________
P4-dev mailing list
P4-dev at lists.p4.org<mailto:P4-dev at lists.p4.org>
http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org



--
Antonin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170415/ca3cab0d/attachment-0002.html>


More information about the P4-dev mailing list