You can fork the repo and submit a pull request in Github. For more information send us an email (p4-dev@lists.p4.org).
All developers must sign the P4.org CLA and return it to (membership@p4.org) before making contributions. The CLA is available here.
Any contribution to the C++ core code (in particular the bm_sim
module) must respect the coding guidelines. We rely heavily on the Google C++
Style Guide, with some
differences listed in this repository's
wiki.
Every submitted pull request will go through our CI tests, which include
running cpplint.py
to ensure correct style and formatting.
You can run the following helper script to check code-style locally:
./tools/check_style.sh
We recommend that you build with a recent C++ compiler and with -Werror
since
our CI tests use this flag. In order to build with the same flags as the CI
tester, please run configure
with the following flags:
./configure --with-pdfixed --with-pi --with-stress-tests --enable-debugger --enable-Werror