From 7a437dd125da70854b54c5a2d06b238c15fa904c Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 16 Sep 2024 10:53:38 -0700 Subject: [PATCH] Regenerate rust code. Signed-off-by: chris --- rust/src/p4.config.v1.rs | 6 ++++++ rust/src/p4.v1.rs | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/rust/src/p4.config.v1.rs b/rust/src/p4.config.v1.rs index 95ba2128..4055ca0b 100644 --- a/rust/src/p4.config.v1.rs +++ b/rust/src/p4.config.v1.rs @@ -472,6 +472,7 @@ pub struct Documentation { pub description: ::prost::alloc::string::String, } /// Used to describe the required properties of the underlying platform. +/// Added in v1.4.0 #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct PlatformProperties { /// The minimum number of multicast entries (i.e. multicast groups) that the @@ -527,6 +528,7 @@ pub struct PkgInfo { /// If set, specifies the properties that the underlying platform should have. /// If the platform does not conform to these properties, the server should /// reject the P4Info when used with a SetForwardingPipelineConfigRequest. + /// Added in 1.4.0 #[prost(message, optional, tag="11")] pub platform_properties: ::core::option::Option, } @@ -967,12 +969,14 @@ pub mod action_profile { /// indicates that `size` and `max_group_size` represent the maximum sum of /// weights that can be present across all selector groups and within a /// single selector group respectively. + /// Added in v1.4.0 #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SumOfWeights { } /// indicates that `size` and `max_group_size` represent the maximum number /// of members that can be present across all selector groups and within a /// single selector group respectively. + /// Added in v1.4.0 #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SumOfMembers { /// the maximum weight of each individual member in a group. @@ -983,9 +987,11 @@ pub mod action_profile { #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum SelectorSizeSemantics { /// group size is the sum of the group's weights. + /// Added in v1.4.0 #[prost(message, tag="6")] SumOfWeights(SumOfWeights), /// group size is the sum of the group's members. + /// Added in v1.4.0 #[prost(message, tag="7")] SumOfMembers(SumOfMembers), } diff --git a/rust/src/p4.v1.rs b/rust/src/p4.v1.rs index 8fd1db9f..18e29abd 100644 --- a/rust/src/p4.v1.rs +++ b/rust/src/p4.v1.rs @@ -89,9 +89,11 @@ pub struct P4HeaderUnionStack { pub struct WriteRequest { #[prost(uint64, tag="1")] pub device_id: u64, + /// Deprecated in v1.4.0 #[deprecated] #[prost(uint64, tag="2")] pub role_id: u64, + /// Added in v1.4.0 #[prost(string, tag="6")] pub role: ::prost::alloc::string::String, #[prost(message, optional, tag="3")] @@ -164,6 +166,7 @@ pub struct ReadRequest { #[prost(uint64, tag="1")] pub device_id: u64, /// When specified, only return table entries for the given role. + /// Added in 1.4.0. #[prost(string, tag="3")] pub role: ::prost::alloc::string::String, #[prost(message, repeated, tag="2")] @@ -314,6 +317,7 @@ pub struct TableEntry { #[prost(message, optional, tag="7")] pub counter_data: ::core::option::Option, /// Per color counters for tables with a direct meter. + /// Added in v1.4.0 #[prost(message, optional, tag="12")] pub meter_counter_data: ::core::option::Option, /// Set to true if the table entry is being used to update the non-const @@ -562,6 +566,7 @@ pub struct MeterEntry { pub index: ::core::option::Option, #[prost(message, optional, tag="3")] pub config: ::core::option::Option, + /// Added in v1.4.0 #[prost(message, optional, tag="4")] pub counter_data: ::core::option::Option, } @@ -581,6 +586,7 @@ pub struct DirectMeterEntry { pub table_entry: ::core::option::Option, #[prost(message, optional, tag="2")] pub config: ::core::option::Option, + /// Added in v1.4.0 #[prost(message, optional, tag="3")] pub counter_data: ::core::option::Option, } @@ -659,6 +665,7 @@ pub struct CounterData { #[prost(int64, tag="2")] pub packet_count: i64, } +/// Added in v1.4.0 #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct MeterCounterData { #[prost(message, optional, tag="1")] @@ -699,8 +706,10 @@ pub mod replica { #[derive(Clone, PartialEq, ::prost::Oneof)] pub enum PortKind { /// Using uint32 as ports is deprecated, use port field instead. + /// Deprecated in v1.4.0 #[prost(uint32, tag="1")] EgressPort(u32), + /// Added in v1.4.0 #[prost(bytes, tag="3")] Port(::prost::alloc::vec::Vec), } @@ -946,9 +955,11 @@ pub struct MasterArbitrationUpdate { #[derive(Clone, PartialEq, ::prost::Message)] pub struct Role { /// Uniquely identifies this role. + /// Deprecated in 1.4.0. #[deprecated] #[prost(uint64, tag="1")] pub id: u64, + /// Added in 1.4.0. #[prost(string, tag="3")] pub name: ::prost::alloc::string::String, /// Describes the role configuration, i.e. what operations, P4 entities, @@ -1046,9 +1057,11 @@ pub struct Uint128 { pub struct SetForwardingPipelineConfigRequest { #[prost(uint64, tag="1")] pub device_id: u64, + /// Deprecated in 1.4.0. #[deprecated] #[prost(uint64, tag="2")] pub role_id: u64, + /// Added in 1.4.0. #[prost(string, tag="6")] pub role: ::prost::alloc::string::String, #[prost(message, optional, tag="3")]