Skip to content

Commit

Permalink
Merge pull request p4lang#91 from hesingh/hash-add
Browse files Browse the repository at this point in the history
Add hash algorithms to pna.p4
  • Loading branch information
jafingerhut authored Nov 28, 2022
2 parents 28c6e9f + 7566e56 commit a4d9546
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pna.p4
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ match_kind {

// BEGIN:Hash_algorithms
enum PNA_HashAlgorithm_t {
// TBD what this type's values will be for PNA
IDENTITY,
CRC32,
CRC32_CUSTOM,
CRC16,
CRC16_CUSTOM,
ONES_COMPLEMENT16, /// One's complement 16-bit sum used for IPv4 headers,
/// TCP, and UDP.
TARGET_DEFAULT /// target implementation defined
}
// END:Hash_algorithms
Expand Down

0 comments on commit a4d9546

Please sign in to comment.