Skip to content

Conversation

@kamleshbhalui
Copy link
Owner

patch needs to applied on p4runtime

diff --git a/proto/p4/config/v1/p4info.proto b/proto/p4/config/v1/p4info.proto
index 32869ea..40ccdbf 100644
--- a/proto/p4/config/v1/p4info.proto
+++ b/proto/p4/config/v1/p4info.proto
@@ -100,6 +100,7 @@ message P4Ids {
 
     // externs for other architectures (vendor extensions)
     OTHER_EXTERNS_START = 0x80;
+    MATCH_VALUE_LOOKUP_TABLE = 0x83;
 
     // max value for an unsigned 8-bit byte
     MAX = 0xff;
@@ -354,3 +355,16 @@ message Digest {
   Preamble preamble = 1;
   P4DataTypeSpec type_spec = 2;
 }
+
+message Param {
+  uint32 id = 1;
+  string name = 2;
+  uint32 bitwidth = 3;
+}
+
+message MatchValueLookupTable {
+  p4.config.v1.Preamble preamble = 1;
+  repeated p4.config.v1.MatchField match_fields = 2;
+  repeated Param params = 3;
+  uint32 size = 4;
+}
\ No newline at end of file
diff --git a/proto/p4/v1/p4runtime.proto b/proto/p4/v1/p4runtime.proto
index 22c77ce..fa503c8 100755
--- a/proto/p4/v1/p4runtime.proto
+++ b/proto/p4/v1/p4runtime.proto
@@ -143,6 +143,26 @@ message ExternEntry {
   .google.protobuf.Any entry = 3;
 }
 
+message ConstEntry {
+  uint32 key = 1;
+  repeated uint32 param_values = 2;
+}
+
+// MatchValueLookupTable
+message MVLUTEntry {
+  uint32 mvlut_id = 1;
+  message ConfigParam {
+    message Param {
+      uint32 param_id = 1;
+      uint64 param_value = 2;
+    }   
+    repeated Param params = 1;
+  }
+  repeated FieldMatch match = 2;
+  ConfigParam param = 3;
+}
+
+
 message TableEntry {
   uint32 table_id = 1;
   repeated FieldMatch match = 2;

Copy link
Collaborator

@psivanup psivanup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants