-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix review comments in LNW documentation
Signed-off-by: Sandeep N <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
71 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
diff --git a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
index c343f4f..0043a50 100644 | ||
--- a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
+++ b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
@@ -670,10 +670,10 @@ control linux_networking_control(inout parsed_headers_t hdrs, | ||
|
||
action set_tunnel_v6(bit<32> ipv6_1, bit<32> ipv6_2, bit<32> ipv6_3, bit<32> ipv6_4) { | ||
@intel_byte_order("NETWORK") { | ||
- user_meta.cmeta.ip_dst_match[31:0] = ipv6_1; | ||
- user_meta.cmeta.ip_dst_match[63:32] = ipv6_2; | ||
- user_meta.cmeta.ip_dst_match[95:64] = ipv6_3; | ||
- user_meta.cmeta.ip_dst_match[127:96] = ipv6_4; | ||
+ user_meta.cmeta.ip_dst_match[31:0] = ipv6_4; | ||
+ user_meta.cmeta.ip_dst_match[63:32] = ipv6_3; | ||
+ user_meta.cmeta.ip_dst_match[95:64] = ipv6_2; | ||
+ user_meta.cmeta.ip_dst_match[127:96] = ipv6_1; | ||
} | ||
user_meta.cmeta.is_tunnel_v6 = 1; | ||
//user_meta.cmeta.bit32_zeros[2:0] = 6; // ipv6 | ||
@@ -1110,7 +1110,7 @@ control linux_networking_control(inout parsed_headers_t hdrs, | ||
table source_port_to_pr_map { | ||
key = { | ||
user_meta.cmeta.source_port : exact; | ||
- user_meta.cmeta.bit32_zeros[15:0] : exact @name("zero_padding"); | ||
+ user_meta.cmeta.bit32_zeros[31:16] : exact @name("zero_padding"); | ||
} | ||
|
||
actions = { | ||
diff --git a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
index 587de70..56975d9 100644 | ||
--- a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
+++ b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
@@ -92,7 +92,7 @@ | ||
#define MOD_INVALID 0x39000000 | ||
|
||
//SET1B_24 [prec=7, index=0, type_id=4, offset=0, mask=0x1, value=0x1] | ||
-#define TRAP_MD_SET 0xE8400101 | ||
+#define TRAP_MD_SET 0xEC400101 | ||
|
||
//============================================================================= | ||
// TABLE HINTS |
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 @@ | ||
diff --git a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
index c343f4f..a39f496 100644 | ||
--- a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
+++ b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2.p4 | ||
@@ -1110,7 +1110,7 @@ control linux_networking_control(inout parsed_headers_t hdrs, | ||
table source_port_to_pr_map { | ||
key = { | ||
user_meta.cmeta.source_port : exact; | ||
- user_meta.cmeta.bit32_zeros[15:0] : exact @name("zero_padding"); | ||
+ user_meta.cmeta.bit32_zeros[31:16] : exact @name("zero_padding"); | ||
} | ||
|
||
actions = { | ||
diff --git a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
index 587de70..56975d9 100644 | ||
--- a/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
+++ b/mev_reference_p4_programs/fxp-net-scenarios/fxp-net_linux-networking-v2/fxp-net_linux-networking-v2_hints.p4 | ||
@@ -92,7 +92,7 @@ | ||
#define MOD_INVALID 0x39000000 | ||
|
||
//SET1B_24 [prec=7, index=0, type_id=4, offset=0, mask=0x1, value=0x1] | ||
-#define TRAP_MD_SET 0xE8400101 | ||
+#define TRAP_MD_SET 0xEC400101 | ||
|
||
//============================================================================= | ||
// TABLE HINTS |