-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract ES2K ECMP_HASH_TABLE definitions (#132)
- Extracted the LNWv2 and LWNv3 ECMP_HASH_TABLE definitions into individual header files. Signed-off-by: Derek Foster <[email protected]>
- Loading branch information
Showing
9 changed files
with
57 additions
and
55 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright 2022-2024 Intel Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* ECMP_HASH_TABLE for Linux Networking V2. | ||
*/ | ||
|
||
#ifndef __LNW_ECMP_HASH_TABLE_H__ | ||
#define __LNW_ECMP_HASH_TABLE_H__ | ||
|
||
#define LNW_ECMP_HASH_TABLE "linux_networking_control.ecmp_hash_table" | ||
|
||
#define LNW_ECMP_HASH_TABLE_KEY_HOST_INFO_TX_EXT_FLEX \ | ||
"user_meta.cmeta.flex[15:0]" | ||
#define LNW_ECMP_HASH_TABLE_KEY_META_COMMON_HASH "vmeta.common.hash[2:0]" | ||
#define LNW_ECMP_HASH_TABLE_KEY_ZERO_PADDING "zero_padding" | ||
|
||
#define LNW_ECMP_HASH_TABLE_ACTION_SET_NEXTHOP_ID \ | ||
"linux_networking_control.set_nexthop_id" | ||
|
||
#define LNW_ECMP_HASH_SIZE 65536 | ||
|
||
/* Only 3 bits are allocated for hash size per group in LNW.p4 | ||
* check LNW_ECMP_HASH_TABLE_KEY_META_COMMON_HASH */ | ||
#define LNW_ECMP_PER_GROUP_HASH_SIZE 8 | ||
|
||
#endif /* __LNW_ECMP_HASH_TABLE_H__ */ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2022-2024 Intel Corporation. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* ECMP_HASH_TABLE for Linux Networking V3. | ||
*/ | ||
|
||
#ifndef __LNW_ECMP_HASH_TABLE_H__ | ||
#define __LNW_ECMP_HASH_TABLE_H__ | ||
|
||
#define LNW_ECMP_HASH_TABLE "linux_networking_control.ecmp_hash_table" | ||
|
||
#define LNW_ECMP_HASH_TABLE_KEY_HOST_INFO_TX_EXT_FLEX "flex" | ||
#define LNW_ECMP_HASH_TABLE_KEY_META_COMMON_HASH "hash" | ||
#define LNW_ECMP_HASH_TABLE_KEY_ZERO_PADDING "zero_padding" | ||
|
||
#define LNW_ECMP_HASH_TABLE_ACTION_SET_NEXTHOP_ID \ | ||
"linux_networking_control.set_nexthop_id" | ||
|
||
#define LNW_ECMP_HASH_SIZE 65536 | ||
|
||
/* Only 3 bits are allocated for hash size per group in LNW.p4 | ||
* check LNW_ECMP_HASH_TABLE_KEY_META_COMMON_HASH */ | ||
#define LNW_ECMP_PER_GROUP_HASH_SIZE 8 | ||
|
||
#endif /* __LNW_ECMP_HASH_TABLE_H__ */ |
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