[P4-dev] Difference among p4c, p4c-bm2-ss, p4c-bmv2 ??

Kentaro Ebisawa ebiken.g at gmail.com
Wed Jun 14 06:44:19 EDT 2017


Hi,

What's the difference among p4c, p4c-bm2-ss, p4c-bmv2 ??

While trying examples under github.com/p4lang/tutorials , simple_nat.p4  
was able to compile using p4c-bmv2, while ipv4_forward.p4 required  
p4c-bm2-ss.

I first thought p4c-bm2-ss is required to run with simple_siwtch, but  
both *.json worked when I started simple_switch using them:

p4c-bm2-ss -o ipv4_forward.json ipv4_forward.p4
sudo simple_switch --log-console --dump-packet-data 64 -i 0 at vtap0 -i  
1 at vtap1 ipv4_forward.json

p4c-bmv2 --json simple_nat.json simple_nat.p4
sudo simple_switch --log-console --dump-packet-data 64 -i 0 at vtap0 -i  
1 at vtap1 simple_nat.json

Thanks,
-- 
Kentaro Ebisawa <ebiken.g at gmail.com>




More information about the P4-dev mailing list