88 * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR
99 * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT
1010 * LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS
11- * FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
11+ * FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT.
1212 *
1313 * See the Apache Version 2.0 License for specific language governing
1414 * permissions and limitations under the License.
1919 *
2020 * @file sai.h
2121 *
22- * @brief This module defines an entry point into Switch Abstraction Interfrace (SAI)
22+ * @brief This module defines an entry point into Switch Abstraction Interface (SAI)
2323 */
2424
2525#if !defined (__SAI_H_ )
7171/**
7272 * @brief Defined API sets have assigned ID's.
7373 *
74- * If specific api method table changes in any way (method signature, number of
74+ * If specific API method table changes in any way (method signature, number of
7575 * methods), a new ID needs to be created (e.g. VLAN2) and old API still may
7676 * need to be supported for compatibility with older adapter hosts.
7777 */
7878typedef enum _sai_api_t
7979{
80- SAI_API_UNSPECIFIED = 0 , /**< unspecified api */
80+ SAI_API_UNSPECIFIED = 0 , /**< unspecified API */
8181 SAI_API_SWITCH = 1 , /**< sai_switch_api_t */
8282 SAI_API_PORT = 2 , /**< sai_port_api_t */
8383 SAI_API_FDB = 3 , /**< sai_fdb_api_t */
@@ -128,7 +128,7 @@ typedef enum _sai_log_level_t
128128 /** Log Level Notice */
129129 SAI_LOG_LEVEL_NOTICE = 2 ,
130130
131- /** Log level Warnng */
131+ /** Log level Warning */
132132 SAI_LOG_LEVEL_WARN = 3 ,
133133
134134 /** Log Level Error */
@@ -185,7 +185,7 @@ sai_status_t sai_api_initialize(
185185 * @brief Retrieve a pointer to the C-style method table for desired SAI
186186 * functionality as specified by the given sai_api_id.
187187 *
188- * @param[in] sai_api_id SAI api ID
188+ * @param[in] sai_api_id SAI API ID
189189 * @param[out] api_method_table Caller allocated method table The table must
190190 * remain valid until the sai_api_uninitialize() is called
191191 *
@@ -196,17 +196,17 @@ sai_status_t sai_api_query(
196196 _Out_ void * * api_method_table );
197197
198198/**
199- * @brief Uninitialization of the adapter module. SAI functionalities,
199+ * @brief Uninitialize adapter module. SAI functionalities,
200200 * retrieved via sai_api_query() cannot be used after this call.
201201 *
202202 * @return #SAI_STATUS_SUCCESS on success Failure status code on error
203203 */
204204sai_status_t sai_api_uninitialize (void );
205205
206206/**
207- * @brief Set log level for sai api module. The default log level is #SAI_LOG_LEVEL_WARN
207+ * @brief Set log level for SAI API module. The default log level is #SAI_LOG_LEVEL_WARN
208208 *
209- * @param[in] sai_api_id SAI api ID
209+ * @param[in] sai_api_id SAI API ID
210210 * @param[in] log_level Log level
211211 *
212212 * @return #SAI_STATUS_SUCCESS on success Failure status code on error
@@ -216,25 +216,25 @@ sai_status_t sai_log_set(
216216 _In_ sai_log_level_t log_level );
217217
218218/**
219- * @brief Query sai object type.
219+ * @brief Query SAI object type.
220220 *
221221 * @param[in] sai_object_id Object id
222222 *
223- * @return Return #SAI_OBJECT_TYPE_NULL when sai_object_id is not valid.
224- * Otherwise, return a valid sai object type SAI_OBJECT_TYPE_XXX
223+ * @return #SAI_OBJECT_TYPE_NULL when sai_object_id is not valid.
224+ * Otherwise, return a valid SAI object type SAI_OBJECT_TYPE_XXX
225225 */
226226sai_object_type_t sai_object_type_query (
227227 _In_ sai_object_id_t sai_object_id );
228228
229229/**
230- * @brief Query sai switch id.
230+ * @brief Query SAI switch id.
231231 *
232232 * @param[in] sai_object_id Object id
233233 *
234- * @return Return #SAI_NULL_OBJECT_ID when sai_object_id is not valid.
234+ * @return #SAI_NULL_OBJECT_ID when sai_object_id is not valid.
235235 * Otherwise, return a valid SAI_OBJECT_TYPE_SWITCH object on which
236236 * provided object id belongs. If valid switch id object is provided
237- * as input parameter it should returin itself.
237+ * as input parameter it should return itself.
238238 */
239239sai_object_id_t sai_switch_id_query (
240240 _In_ sai_object_id_t sai_object_id );
0 commit comments