[P4-dev] How to know the match status.

Nate Foster jnfoster at cs.cornell.edu
Fri Oct 12 09:02:38 EDT 2018


See https://p4.org/p4-spec/docs/P4-16-v1.0.0-spec.html#sec-invoke-mau

-N

On Thu, Oct 11, 2018 at 4:13 AM Kamal Bhatt <Kamal.Bhatt at stordis.com> wrote:

> Hello Everyone,
>
> Can anyone help on how we know in p4 what all match happened for a packet,
> for example.
>
>
>
> table ipv4_lpm {
>
>         key = {
>
>             hdr.ipv4.dstAddr: lpm;
>
>             hdr.ethernet.srcAddr:exact;
>
>             match3;
>
>             .
>
>             .
>
>         }
>
>
>
> Here, If a packet didn’t got the match and was dropped, I would like to
> know what fields were not matched.
>
>
>
> *Mit freundlichen Grüßen / Best Regards*
>
>
>
> *Kamal Bhatt*
>
> Lead Software Engineer
>
>
>
> *STORDIS GmbH | *Rosenwiesstr.17 | 70567 Stuttgart | Germany | T: +49
> (0)711 34 21 58 0 | www.stordis.com
> Amtsgericht Stuttgart, HRB 724261, Geschäftsführer: Alexander Jeffries,
> Waldemar Scheck
>
>
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20181012/2bc08a5f/attachment.html>


More information about the P4-dev mailing list