[P4-dev] Broadcasting in p4_16 and bmv2

Ke Wang kewang1 at andrew.cmu.edu
Thu Jun 15 18:37:56 EDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170615/f0afff25/attachment-0002.html>


More information about the P4-dev mailing list