Skip to content

Commit

Permalink
Regenerate rust code.
Browse files Browse the repository at this point in the history
Signed-off-by: chris <[email protected]>
  • Loading branch information
chrispsommers committed Sep 16, 2024
1 parent 14824cc commit 7a437dd
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rust/src/p4.config.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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<PlatformProperties>,
}
Expand Down Expand Up @@ -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.
Expand All @@ -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),
}
Expand Down
13 changes: 13 additions & 0 deletions rust/src/p4.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down Expand Up @@ -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")]
Expand Down Expand Up @@ -314,6 +317,7 @@ pub struct TableEntry {
#[prost(message, optional, tag="7")]
pub counter_data: ::core::option::Option<CounterData>,
/// 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<MeterCounterData>,
/// Set to true if the table entry is being used to update the non-const
Expand Down Expand Up @@ -562,6 +566,7 @@ pub struct MeterEntry {
pub index: ::core::option::Option<Index>,
#[prost(message, optional, tag="3")]
pub config: ::core::option::Option<MeterConfig>,
/// Added in v1.4.0
#[prost(message, optional, tag="4")]
pub counter_data: ::core::option::Option<MeterCounterData>,
}
Expand All @@ -581,6 +586,7 @@ pub struct DirectMeterEntry {
pub table_entry: ::core::option::Option<TableEntry>,
#[prost(message, optional, tag="2")]
pub config: ::core::option::Option<MeterConfig>,
/// Added in v1.4.0
#[prost(message, optional, tag="3")]
pub counter_data: ::core::option::Option<MeterCounterData>,
}
Expand Down Expand Up @@ -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")]
Expand Down Expand Up @@ -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<u8>),
}
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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")]
Expand Down

0 comments on commit 7a437dd

Please sign in to comment.