forked from opencomputeproject/SAI
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[meta] Add support for port stat extensions (opencomputeproject#1947)
Will be required for DASH port stat extensions Co-authored-by: r12f <r12f.code@gmail.com>
- Loading branch information
Showing
3 changed files
with
69 additions
and
1 deletion.
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
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,61 @@ | ||
/** | ||
* Copyright (c) 2018 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. | ||
* | ||
* @file saiportextensions.h | ||
* | ||
* @brief This module defines port extensions of the Switch Abstraction Interface (SAI) | ||
*/ | ||
|
||
#ifndef __SAIPORTEXTENSIONS_H_ | ||
#define __SAIPORTEXTENSIONS_H_ | ||
|
||
#include <saiport.h> | ||
#include <saitypes.h> | ||
|
||
/** | ||
* @brief SAI port attribute extensions. | ||
* | ||
* @flags free | ||
*/ | ||
typedef enum _sai_port_attr_extensions_t | ||
{ | ||
SAI_PORT_ATTR_EXTENSIONS_RANGE_START = SAI_PORT_ATTR_END, | ||
|
||
/* Add new experimental port attributes above this line */ | ||
|
||
SAI_PORT_ATTR_EXTENSIONS_RANGE_END | ||
|
||
} sai_port_attr_extensions_t; | ||
|
||
/** | ||
* @brief SAI port stat extensions. | ||
* | ||
* @flags free | ||
*/ | ||
typedef enum _sai_port_stat_extensions_t | ||
{ | ||
SAI_PORT_STAT_EXTENSIONS_RANGE_START = SAI_PORT_STAT_END, | ||
|
||
/* Add new experimental port stats above this line */ | ||
|
||
SAI_PORT_STAT_EXTENSIONS_RANGE_END | ||
|
||
} sai_port_stat_extensions_t; | ||
|
||
#endif /* __SAIPORTEXTENSIONS_H_ */ |
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