[P4-dev] using queue in programming p4_14

Antonin Bas antonin at barefootnetworks.com
Tue Nov 14 19:03:23 EST 2017


You're not telling us what you mean by "it's not working". Is it not
compiling? Is bmv2 rejecting the JSON? Are you not observing any effective
change in the actual scheduling?

On Tue, Nov 14, 2017 at 1:27 PM, Wallas Fróes <wallasync at gmail.com> wrote:

> Hello all,
>
> I am with a problem, I need to use the simple_switch queues' and for this
> I need to use an intrinsic_metadata, whereupon we will use the factor
> "priority". But I don't know if I using the called to intrinsic_metadata in
> the "table action" correctly.
> Below, follow the code in p4_14 showing how I am using the
> intrinsic_metadata.
>
>
> //Header
> header_type intrinsic_metadata_t {
>     fields {
>         ingress_global_timestamp : 48;
>         lf_field_list : 8;
>         mcast_grp : 16;
>         egress_rid : 16;
>         resubmit_flag : 8;
>         recirculate_flag : 8;
>         priority : 3;
>     }
> }
> metadata intrinsic_metadata_t intrinsic_metadata;
>
> //Table and Action
> action forward(port, priority) {
>     modify_field(intrinsic_metadata.priority, priority);
>     modify_field(standard_metadata.egress_spec, port);
> }
>
> table send_frame {
>     reads {
>         ethernet.dstAddr: exact;
>     }
>     actions {
>         forward;
>         _drop;
>     }
>     size: 256;
> }
>
> Thus, isn't working. I would like know what I am doing wrong? And if
> someone know the right way to do..
>
> --
> Att,
>
> Wallas Fróes
> Master's Degree Studant at UFBA
> Information Security in Computer Networks
> Computer Engineer
> Cel: (77) 98877-0762
>
> _______________________________________________
> P4-dev mailing list
> 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/20171114/8b2689e3/attachment-0002.html>


More information about the P4-dev mailing list