SAI Metadata
Loading...
Searching...
No Matches
saiexperimentaldashmeter.h File Reference

This module defines SAI P4 extension interface. More...

#include <saitypes.h>

Go to the source code of this file.

Classes

struct  _sai_dash_meter_api_t
 

Typedefs

typedef enum _sai_meter_bucket_attr_t sai_meter_bucket_attr_t
 Attribute ID for dash_meter_meter_bucket.
 
typedef enum _sai_meter_policy_attr_t sai_meter_policy_attr_t
 Attribute ID for dash_meter_meter_policy.
 
typedef enum _sai_meter_rule_attr_t sai_meter_rule_attr_t
 Attribute ID for dash_meter_meter_rule.
 
typedef sai_status_t(* sai_create_meter_bucket_fn) (_Out_ sai_object_id_t *meter_bucket_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
 Create dash_meter_meter_bucket.
 
typedef sai_status_t(* sai_remove_meter_bucket_fn) (_In_ sai_object_id_t meter_bucket_id)
 Remove dash_meter_meter_bucket.
 
typedef sai_status_t(* sai_set_meter_bucket_attribute_fn) (_In_ sai_object_id_t meter_bucket_id, _In_ const sai_attribute_t *attr)
 Set attribute for dash_meter_meter_bucket.
 
typedef sai_status_t(* sai_get_meter_bucket_attribute_fn) (_In_ sai_object_id_t meter_bucket_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
 Get attribute for dash_meter_meter_bucket.
 
typedef sai_status_t(* sai_create_meter_policy_fn) (_Out_ sai_object_id_t *meter_policy_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
 Create dash_meter_meter_policy.
 
typedef sai_status_t(* sai_remove_meter_policy_fn) (_In_ sai_object_id_t meter_policy_id)
 Remove dash_meter_meter_policy.
 
typedef sai_status_t(* sai_set_meter_policy_attribute_fn) (_In_ sai_object_id_t meter_policy_id, _In_ const sai_attribute_t *attr)
 Set attribute for dash_meter_meter_policy.
 
typedef sai_status_t(* sai_get_meter_policy_attribute_fn) (_In_ sai_object_id_t meter_policy_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
 Get attribute for dash_meter_meter_policy.
 
typedef sai_status_t(* sai_create_meter_rule_fn) (_Out_ sai_object_id_t *meter_rule_id, _In_ sai_object_id_t switch_id, _In_ uint32_t attr_count, _In_ const sai_attribute_t *attr_list)
 Create dash_meter_meter_rule.
 
typedef sai_status_t(* sai_remove_meter_rule_fn) (_In_ sai_object_id_t meter_rule_id)
 Remove dash_meter_meter_rule.
 
typedef sai_status_t(* sai_set_meter_rule_attribute_fn) (_In_ sai_object_id_t meter_rule_id, _In_ const sai_attribute_t *attr)
 Set attribute for dash_meter_meter_rule.
 
typedef sai_status_t(* sai_get_meter_rule_attribute_fn) (_In_ sai_object_id_t meter_rule_id, _In_ uint32_t attr_count, _Inout_ sai_attribute_t *attr_list)
 Get attribute for dash_meter_meter_rule.
 
typedef struct _sai_dash_meter_api_t sai_dash_meter_api_t
 

Enumerations

enum  _sai_meter_bucket_attr_t {
  SAI_METER_BUCKET_ATTR_START , SAI_METER_BUCKET_ATTR_ENI_ID = SAI_METER_BUCKET_ATTR_START , SAI_METER_BUCKET_ATTR_METER_CLASS , SAI_METER_BUCKET_ATTR_OUTBOUND_BYTES_COUNTER ,
  SAI_METER_BUCKET_ATTR_INBOUND_BYTES_COUNTER , SAI_METER_BUCKET_ATTR_END , SAI_METER_BUCKET_ATTR_CUSTOM_RANGE_START = 0x10000000 , SAI_METER_BUCKET_ATTR_CUSTOM_RANGE_END
}
 Attribute ID for dash_meter_meter_bucket. More...
 
enum  _sai_meter_policy_attr_t {
  SAI_METER_POLICY_ATTR_START , SAI_METER_POLICY_ATTR_IP_ADDR_FAMILY = SAI_METER_POLICY_ATTR_START , SAI_METER_POLICY_ATTR_END , SAI_METER_POLICY_ATTR_CUSTOM_RANGE_START = 0x10000000 ,
  SAI_METER_POLICY_ATTR_CUSTOM_RANGE_END
}
 Attribute ID for dash_meter_meter_policy. More...
 
enum  _sai_meter_rule_attr_t {
  SAI_METER_RULE_ATTR_START , SAI_METER_RULE_ATTR_METER_POLICY_ID = SAI_METER_RULE_ATTR_START , SAI_METER_RULE_ATTR_DIP , SAI_METER_RULE_ATTR_DIP_MASK ,
  SAI_METER_RULE_ATTR_METER_CLASS , SAI_METER_RULE_ATTR_PRIORITY , SAI_METER_RULE_ATTR_IP_ADDR_FAMILY , SAI_METER_RULE_ATTR_END ,
  SAI_METER_RULE_ATTR_CUSTOM_RANGE_START = 0x10000000 , SAI_METER_RULE_ATTR_CUSTOM_RANGE_END
}
 Attribute ID for dash_meter_meter_rule. More...
 

Detailed Description

This module defines SAI P4 extension interface.

Copyright (c) 2014 Microsoft Open Technologies, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

Microsoft would like to thank the following companies for their review and assistance with these files: Intel Corporation, Mellanox Technologies Ltd, Dell Products, L.P., Facebook, Inc., Marvell International Ltd.

Definition in file saiexperimentaldashmeter.h.