-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the network hashes implementation from Bmv2 testgen to lib/ (#4526)
* Move the network hashes implementation from Bmv2 testgen to lib/ * Add missing stream operator signature * Apply suggestions from code review Co-authored-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com> * Update namespace to CamelCase * Shuffle the file-level comments and license to make more sense * Add basic CRC unit tests * Generalize CRC calculation, avoid duplicates * Polish the reflection function * Fix format * Fix crcCCITT * Make constructor explicit * Add comments on the checksums (mainly CRC) * Add more tests, some from BMv2 * Add comments --------- Co-authored-by: Fabian Ruffy <5960321+fruffy@users.noreply.github.com>
- Loading branch information
Showing
9 changed files
with
261 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 0 additions & 66 deletions
66
backends/p4tools/modules/testgen/targets/bmv2/contrib/bmv2_hash/calculations.h
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.