Skip to content

Commit

Permalink
Add hash algorithms to pna.p4
Browse files Browse the repository at this point in the history
  • Loading branch information
hesingh committed Nov 16, 2022
1 parent 66c54ce commit 7566e56
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 7566e56

Please sign in to comment.