-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Part 1 for PSA support #601
Commits on May 10, 2017
-
- Comments on how to handle the semantics of multiple PRE invocations - and design option of splitting the PRE into PRE and BQE (Buffering and Queueing Engine) - added PRE as argument to Ingress and Egress - added missing 'in' qualifiers and random distribution - add size types instead of indefinite int - update with @mbudiu-vmw comments to pass through compiler - ActionProfile and ActionSelector externs
Calin Cascaval authored and Han Wang committedMay 10, 2017 Configuration menu - View commit details
-
Copy full SHA for d5e1441 - Browse repository at this point
Copy the full SHA d5e1441View commit details
Commits on May 11, 2017
-
Bmv2 multi-architecture support
This commit refactors bmv2 backend to support multiple pipelien architectures. JsonConverter is refactored into a pass manager which is more conformed to the rest of the compiler design. Added files: backend.cpp - the new backend pass manager convert*.cpp - compiler passes for control, parser, deparser, externs and headers inferArchitecture - a new frontend pass to parse the architecture p4 into a data object which is then used by json generator model.cpp - a v2model that oriented for p4-16 IR TODO: tov1model - a pass to convert v2model to v1model to execute on simple-switch
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for dfb7957 - Browse repository at this point
Copy the full SHA dfb7957View commit details -
Calin Cascaval authored and Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 13e2b15 - Browse repository at this point
Copy the full SHA 13e2b15View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 16c32aa - Browse repository at this point
Copy the full SHA 16c32aaView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 7e345e9 - Browse repository at this point
Copy the full SHA 7e345e9View commit details -
factor out extern json generation from jsonconverter to v1model (#5)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 2de4e05 - Browse repository at this point
Copy the full SHA 2de4e05View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for a484540 - Browse repository at this point
Copy the full SHA a484540View commit details -
adds extern function serialization (#6)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for bbd4e5d - Browse repository at this point
Copy the full SHA bbd4e5dView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 584c61b - Browse repository at this point
Copy the full SHA 584c61bView commit details -
add midend pass to transform extern method, simplify v2model
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 260b313 - Browse repository at this point
Copy the full SHA 260b313View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for e129eab - Browse repository at this point
Copy the full SHA e129eabView commit details -
use v1model header generation routine
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6a01520 - Browse repository at this point
Copy the full SHA 6a01520View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for f5bf970 - Browse repository at this point
Copy the full SHA f5bf970View commit details -
support for directCounterMap (#7)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 87934f2 - Browse repository at this point
Copy the full SHA 87934f2View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for b71aab7 - Browse repository at this point
Copy the full SHA b71aab7View commit details -
fixed issues with pipeline generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for d441c26 - Browse repository at this point
Copy the full SHA d441c26View commit details -
start to add metadata handling (#8)
Also fixes issues with decl handling and match types.
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for ff285d6 - Browse repository at this point
Copy the full SHA ff285d6View commit details -
fix action ids and access to architecture annotations
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 95ec081 - Browse repository at this point
Copy the full SHA 95ec081View commit details -
fix standard metadata generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 889a7a8 - Browse repository at this point
Copy the full SHA 889a7a8View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 63012bb - Browse repository at this point
Copy the full SHA 63012bbView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for c651b1f - Browse repository at this point
Copy the full SHA c651b1fView commit details -
move meta and program section to top of json
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for c989e79 - Browse repository at this point
Copy the full SHA c989e79View commit details -
adds field_aliases to support remapping of metadata names (#9)
BMV2 supports field_aliases to facilitate using different names in the P4 programs from the names supported by the target. For PSA and P4D2 we define a different set of metadata and a map file to map to bmv2 simple_switch (aka v1model). The name map name is currently hardcoded, and it should be set by the compiler driver as it knows which architecture and which target. Also removes the force_arith field in json, since it is no longer used. This started initially as a pass to rename metadata in the program. It seems to not be necessary, so the code is #ifdef-ed out. We should remove it in the final version if we find that it is really not needed.
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 0fff6cf - Browse repository at this point
Copy the full SHA 0fff6cfView commit details -
checkpoint: need to fix counter_array generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 571e5b2 - Browse repository at this point
Copy the full SHA 571e5b2View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for e73664d - Browse repository at this point
Copy the full SHA e73664dView commit details -
rebase and merge with andy's work on json sourceInfo
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 2988b83 - Browse repository at this point
Copy the full SHA 2988b83View commit details -
unique headers and disable field aliases (#10)
* generate only one header instance * disable field aliases until we figure out how to handle multiple aliases to the same standard metadata field
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 02e6bb4 - Browse repository at this point
Copy the full SHA 02e6bb4View commit details -
fix v1model extern instance generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6635ac0 - Browse repository at this point
Copy the full SHA 6635ac0View commit details -
continue if extern is generated to avoid BUG()
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 5c12025 - Browse repository at this point
Copy the full SHA 5c12025View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for a69222c - Browse repository at this point
Copy the full SHA a69222cView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 9766bf4 - Browse repository at this point
Copy the full SHA 9766bf4View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 3a8906b - Browse repository at this point
Copy the full SHA 3a8906bView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for d45e2d4 - Browse repository at this point
Copy the full SHA d45e2d4View commit details -
fix standard metadata field generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6baa7c9 - Browse repository at this point
Copy the full SHA 6baa7c9View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 2a2cfab - Browse repository at this point
Copy the full SHA 2a2cfabView commit details -
pass midend refmap and typemap to facilitate v1() conversion (#11)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for ba6cbd6 - Browse repository at this point
Copy the full SHA ba6cbd6View commit details -
do not generate extern_instances for v1model
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 1dc89fe - Browse repository at this point
Copy the full SHA 1dc89feView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for d0183df - Browse repository at this point
Copy the full SHA d0183dfView commit details -
fix standard metadata name generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for eaa4f09 - Browse repository at this point
Copy the full SHA eaa4f09View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for bef0b07 - Browse repository at this point
Copy the full SHA bef0b07View commit details -
set refMap to v1 and initialize the control names for ingress and egr…
…ess (#12)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for b996987 - Browse repository at this point
Copy the full SHA b996987View commit details -
uses midEnd refMap and typeMap, because the backend generated ones ar…
…e not the same
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 451c0fa - Browse repository at this point
Copy the full SHA 451c0faView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for df545fa - Browse repository at this point
Copy the full SHA df545faView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for be7e076 - Browse repository at this point
Copy the full SHA be7e076View commit details -
add jsonObjects class to manage json in backend
- refactor meta_info, program and enum generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 9f06b1c - Browse repository at this point
Copy the full SHA 9f06b1cView commit details -
clean up header and parser generation
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6b3cb58 - Browse repository at this point
Copy the full SHA 6b3cb58View commit details -
simplified header generation code
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 03a94d3 - Browse repository at this point
Copy the full SHA 03a94d3View commit details -
tweaks p4d2model and adds testcase (#13)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 3c44059 - Browse repository at this point
Copy the full SHA 3c44059View commit details -
moved actions outside control to macros (#14)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 9fd2f6a - Browse repository at this point
Copy the full SHA 9fd2f6aView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6a6fd9b - Browse repository at this point
Copy the full SHA 6a6fd9bView commit details -
add ipv4_forward example for p4d2 (#15)
Calin Cascaval authored and Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for d57aaaa - Browse repository at this point
Copy the full SHA d57aaaaView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for beb43f6 - Browse repository at this point
Copy the full SHA beb43f6View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 9af4581 - Browse repository at this point
Copy the full SHA 9af4581View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for c8e00df - Browse repository at this point
Copy the full SHA c8e00dfView commit details -
use conv instead of getExpressionConverter
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 59fde68 - Browse repository at this point
Copy the full SHA 59fde68View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 95fd63e - Browse repository at this point
Copy the full SHA 95fd63eView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 6cb3b07 - Browse repository at this point
Copy the full SHA 6cb3b07View commit details -
expands the v1model standard metadata to cover all metadata exposed b…
…y simple switch Allows access to bmv2 simple switch intrinsic and queueing metadata for programs that use the v1model. While these metadata would be available by defining separate metadata with the correct names, it is desirable that the functionality is exposed in the architecture definition. This patch will work with any metadata that has fields renamed.
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 80cf530 - Browse repository at this point
Copy the full SHA 80cf530View commit details -
fix duplicated standard_metadata bug
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 7c59a80 - Browse repository at this point
Copy the full SHA 7c59a80View commit details -
change @name annotation to @alias to avoid generating name in json
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 7bf1a65 - Browse repository at this point
Copy the full SHA 7bf1a65View commit details -
revert changes to lib/error.h and parser4.p4
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 7916c99 - Browse repository at this point
Copy the full SHA 7916c99View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 178b0f9 - Browse repository at this point
Copy the full SHA 178b0f9View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 4bab1e4 - Browse repository at this point
Copy the full SHA 4bab1e4View commit details -
put back actionSelectorCheck in control.cpp
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 0e4283d - Browse repository at this point
Copy the full SHA 0e4283dView commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for 90965fa - Browse repository at this point
Copy the full SHA 90965faView commit details -
fix an error in inferArchitecture.cpp, update drop-bmv2 sample output
Han Wang committedMay 11, 2017 Configuration menu - View commit details
-
Copy full SHA for c08bec7 - Browse repository at this point
Copy the full SHA c08bec7View commit details -
Han Wang committed
May 11, 2017 Configuration menu - View commit details
-
Copy full SHA for fd729d4 - Browse repository at this point
Copy the full SHA fd729d4View commit details