[P4-dev] Configure bmv2

Antonin Bas antonin at barefootnetworks.com
Thu May 18 20:18:34 EDT 2017

These flags don't have any impact on how bmv2 or simple_switch are
compiled, but they conditionally compile and install libraries which
implement the pdfixed or the PI library for bmv2. Use --with-pdfixed if you
intend to build a control plane which uses the PD; it will install the
pdfixed headers (under <prefix>/bm/pdfixed/) and it will install
libbmpdfixed. Use --with-pi if you intend to build a control plane which
uses the PI. Although at the moment this is probably better not to use this
flag as the code is experimental. Instead you can pass '--with-bmv2' when
compiling the PI repo code and you will get a different implementation of
the PI interface for bmv2, one which has been more thoroughly tested and
uses simple_switch instead of simple_switch_grpc.

On Thu, May 18, 2017 at 3:55 AM, <ding.rui at zte.com.cn> wrote:

> I have a question about configure bmv2. The PI(p4lang/PI) project needs
> to configure bmv2:./configure --with-pi,
> while the switch(p4lang/switch) project needs to configure
> bmv2:./configure --with-pdfixed.What's the differences
> between the two options?  I think PI and PD are irrelevant to bmv2,  they
> are different methods for constructing
> the control plane. why compile bmv2 need these options?
> _______________________________________________
> 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/20170518/b63a9bb6/attachment-0002.html>

More information about the P4-dev mailing list