[P4-dev] Broadcasting in p4_16 and bmv2

Antonin Bas antonin at barefootnetworks.com
Fri Jun 16 11:09:52 EDT 2017


For the sake of the mailing list, an issue has been opened for this on
Github: https://github.com/p4lang/p4c/issues/718

On Thu, Jun 15, 2017 at 3:37 PM, Ke Wang <kewang1 at andrew.cmu.edu> wrote:

> Hi All,
>
> I have a question about broadcasting in p4_16. I am using the
> simple_switch target. Does it support broadcasting? I have an old p4_14
> program that does broadcast on arp packets in the bmv2. After converting it
> to p4_16 (use the --pp option in p4c-bm2-ss command), the broadcast seems
> to be skipped.
>
> Following are from console log of simple_switch running p4_14 code and
> p4_16 code:
>
> p4_14:
> [15:21:24.272] [bmv2] [D] [thread 4958] [9.0] [cxt 0] Table 'broadcast':
> miss
> [15:21:24.272] [bmv2] [D] [thread 4958] [9.0] [cxt 0] Action entry is
> bcast -
> [15:21:24.272] [bmv2] [T] [thread 4958] [9.0] [cxt 0] Executing action
> bcast
> [15:21:24.272] [bmv2] [D] [thread 4958] [9.0] [cxt 0] Pipeline 'ingress':
> end
> [15:21:24.272] [bmv2] [D] [thread 4958] [9.0] [cxt 0] Multicast requested
> for packet
> [15:21:24.272] [bmv2] [D] [thread 4958] number of packets replicated : 3
>
> p4_16:
> [15:31:18.424] [bmv2] [D] [thread 5938] [32.0] [cxt 0] Table 'broadcast':
> miss
> [15:31:18.424] [bmv2] [D] [thread 5938] [32.0] [cxt 0] Action entry is
> bcast -
> [15:31:18.424] [bmv2] [T] [thread 5938] [32.0] [cxt 0] Executing action
> bcast
> [15:31:18.424] [bmv2] [D] [thread 5938] [32.0] [cxt 0] Pipeline 'ingress':
> end
> [15:31:18.424] [bmv2] [D] [thread 5938] [32.0] [cxt 0] Egress port is 0
>
> Can anyone help me? Thanks!
>
> Best,
> Ke
>
> _______________________________________________
> 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/20170616/004e4399/attachment-0002.html>


More information about the P4-dev mailing list