Skip to content

Commit bf3d5a7

Browse files
kcudniklguohan
authored andcommitted
Fix spelling and aspell check (#497)
* Fix spelling and aspell check * Add aspell skip info when not present * Fix aspell info log * Address comments
1 parent e3146a5 commit bf3d5a7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+409
-306
lines changed

inc/sai.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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.
@@ -19,7 +19,7 @@
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_)
@@ -71,13 +71,13 @@
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
*/
7878
typedef 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
*/
204204
sai_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
@@ -234,7 +234,7 @@ sai_object_type_t sai_object_type_query(
234234
* @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
*/
239239
sai_object_id_t sai_switch_id_query(
240240
_In_ sai_object_id_t sai_object_id);

inc/saiacl.h

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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.
@@ -153,7 +153,7 @@ typedef enum _sai_acl_action_type_t
153153
/** Egress Mirror */
154154
SAI_ACL_ACTION_TYPE_MIRROR_EGRESS,
155155

156-
/** Assosiate with policer (policer id) */
156+
/** Associate with policer (policer id) */
157157
SAI_ACL_ACTION_TYPE_SET_POLICER,
158158

159159
/** Decrement TTL */
@@ -165,16 +165,16 @@ typedef enum _sai_acl_action_type_t
165165
/** Set Packet Color */
166166
SAI_ACL_ACTION_TYPE_SET_PACKET_COLOR,
167167

168-
/** Set Packet Inner Vlan-Id */
168+
/** Set Packet Inner Vlan Id */
169169
SAI_ACL_ACTION_TYPE_SET_INNER_VLAN_ID,
170170

171-
/** Set Packet Inner Vlan-Priority */
171+
/** Set Packet Inner Vlan Priority */
172172
SAI_ACL_ACTION_TYPE_SET_INNER_VLAN_PRI,
173173

174-
/** Set Packet Outer Vlan-Id */
174+
/** Set Packet Outer Vlan Id */
175175
SAI_ACL_ACTION_TYPE_SET_OUTER_VLAN_ID,
176176

177-
/** Set Packet Outer Vlan-Priority */
177+
/** Set Packet Outer Vlan Priority */
178178
SAI_ACL_ACTION_TYPE_SET_OUTER_VLAN_PRI,
179179

180180
/** Set Packet Src MAC Address */
@@ -225,7 +225,7 @@ typedef enum _sai_acl_action_type_t
225225
/** Set user defined trap id */
226226
SAI_ACL_ACTION_TYPE_SET_USER_TRAP_ID,
227227

228-
/** Set Do Not Learn unknow source MAC */
228+
/** Set Do Not Learn unknown source MAC */
229229
SAI_ACL_ACTION_TYPE_SET_DO_NOT_LEARN,
230230

231231
} sai_acl_action_type_t;
@@ -266,7 +266,7 @@ typedef enum _sai_acl_table_group_attr_t
266266
*
267267
* ACL group bind point list - is a create only attribute required for ACL
268268
* groups to let the user specify his intention to allow further error
269-
* checks and optimizations based on a specific ASIC's SAI implementation.
269+
* checks and optimizations based on a specific ASIC SAI implementation.
270270
* ACL members being added to this group SHOULD be a subset of the bind
271271
* point list that ACL group was created with.
272272
*
@@ -326,9 +326,9 @@ typedef enum _sai_acl_table_group_member_attr_t
326326
* @brief ACL table group id
327327
*
328328
* This attribute is required to associate or attach a member object (acl_table_id)
329-
* to a ACL table group id allocated by the create ACL group api.
329+
* to a ACL table group id allocated by the create ACL group API.
330330
*
331-
* User should always use the group id returned by SAI create_acl_group api,
331+
* User should always use the group id returned by SAI create_acl_group API,
332332
* to group the tables else Invalid attribute value error code will be returned.
333333
*
334334
* The ACL Table lookup could be done serially or in parallel. In both the
@@ -417,7 +417,7 @@ typedef enum _sai_acl_table_attr_t
417417
* @brief Table size
418418
*
419419
* (default = 0) - Grow dynamically till MAX ACL TCAM Size
420-
* By default table can grow upto maximum ACL TCAM space.
420+
* By default table can grow up to maximum ACL TCAM space.
421421
* Supported only during Table Create for now until NPU
422422
* supports Dynamic adjustment of Table size post Table creation
423423
*
@@ -604,7 +604,7 @@ typedef enum _sai_acl_table_attr_t
604604
SAI_ACL_TABLE_ATTR_FIELD_SRC_PORT,
605605

606606
/**
607-
* @brief Outer Vlan-Id
607+
* @brief Outer Vlan Id
608608
*
609609
* @type bool
610610
* @flags CREATE_ONLY
@@ -613,7 +613,7 @@ typedef enum _sai_acl_table_attr_t
613613
SAI_ACL_TABLE_ATTR_FIELD_OUTER_VLAN_ID,
614614

615615
/**
616-
* @brief Outer Vlan-Priority
616+
* @brief Outer Vlan Priority
617617
*
618618
* @type bool
619619
* @flags CREATE_ONLY
@@ -622,7 +622,7 @@ typedef enum _sai_acl_table_attr_t
622622
SAI_ACL_TABLE_ATTR_FIELD_OUTER_VLAN_PRI,
623623

624624
/**
625-
* @brief Outer Vlan-CFI
625+
* @brief Outer Vlan CFI
626626
*
627627
* @type bool
628628
* @flags CREATE_ONLY
@@ -631,7 +631,7 @@ typedef enum _sai_acl_table_attr_t
631631
SAI_ACL_TABLE_ATTR_FIELD_OUTER_VLAN_CFI,
632632

633633
/**
634-
* @brief Inner Vlan-Id
634+
* @brief Inner Vlan Id
635635
*
636636
* @type bool
637637
* @flags CREATE_ONLY
@@ -640,7 +640,7 @@ typedef enum _sai_acl_table_attr_t
640640
SAI_ACL_TABLE_ATTR_FIELD_INNER_VLAN_ID,
641641

642642
/**
643-
* @brief Inner Vlan-Priority
643+
* @brief Inner Vlan Priority
644644
*
645645
* @type bool
646646
* @flags CREATE_ONLY
@@ -649,7 +649,7 @@ typedef enum _sai_acl_table_attr_t
649649
SAI_ACL_TABLE_ATTR_FIELD_INNER_VLAN_PRI,
650650

651651
/**
652-
* @brief Inner Vlan-CFI
652+
* @brief Inner Vlan CFI
653653
*
654654
* @type bool
655655
* @flags CREATE_ONLY
@@ -1003,8 +1003,8 @@ typedef enum _sai_acl_entry_attr_t
10031003
/*
10041004
* Match fields [sai_acl_field_data_t]
10051005
* - Mandatory to pass at least one field during ACL Rule creation.
1006-
* - Unless noted specificially, both data and mask are required.
1007-
* - When bit field is used, only those least significent bits are valid for
1006+
* - Unless noted specifically, both data and mask are required.
1007+
* - When bit field is used, only those least significant bits are valid for
10081008
* matching.
10091009
*/
10101010

@@ -1140,7 +1140,7 @@ typedef enum _sai_acl_entry_attr_t
11401140
SAI_ACL_ENTRY_ATTR_FIELD_SRC_PORT,
11411141

11421142
/**
1143-
* @brief Outer Vlan-Id (12 bits)
1143+
* @brief Outer Vlan Id (12 bits)
11441144
*
11451145
* @type sai_acl_field_data_t sai_uint16_t
11461146
* @flags CREATE_AND_SET
@@ -1149,23 +1149,23 @@ typedef enum _sai_acl_entry_attr_t
11491149
SAI_ACL_ENTRY_ATTR_FIELD_OUTER_VLAN_ID,
11501150

11511151
/**
1152-
* @brief Outer Vlan-Priority (3 bits)
1152+
* @brief Outer Vlan Priority (3 bits)
11531153
*
11541154
* @type sai_acl_field_data_t sai_uint8_t
11551155
* @flags CREATE_AND_SET
11561156
*/
11571157
SAI_ACL_ENTRY_ATTR_FIELD_OUTER_VLAN_PRI,
11581158

11591159
/**
1160-
* @brief Outer Vlan-CFI (1 bit)
1160+
* @brief Outer Vlan CFI (1 bit)
11611161
*
11621162
* @type sai_acl_field_data_t sai_uint8_t
11631163
* @flags CREATE_AND_SET
11641164
*/
11651165
SAI_ACL_ENTRY_ATTR_FIELD_OUTER_VLAN_CFI,
11661166

11671167
/**
1168-
* @brief Inner Vlan-Id (12 bits)
1168+
* @brief Inner Vlan Id (12 bits)
11691169
*
11701170
* @type sai_acl_field_data_t sai_uint16_t
11711171
* @flags CREATE_AND_SET
@@ -1174,15 +1174,15 @@ typedef enum _sai_acl_entry_attr_t
11741174
SAI_ACL_ENTRY_ATTR_FIELD_INNER_VLAN_ID,
11751175

11761176
/**
1177-
* @brief Inner Vlan-Priority (3 bits)
1177+
* @brief Inner Vlan Priority (3 bits)
11781178
*
11791179
* @type sai_acl_field_data_t sai_uint8_t
11801180
* @flags CREATE_AND_SET
11811181
*/
11821182
SAI_ACL_ENTRY_ATTR_FIELD_INNER_VLAN_PRI,
11831183

11841184
/**
1185-
* @brief Inner Vlan-CFI (1 bit)
1185+
* @brief Inner Vlan CFI (1 bit)
11861186
*
11871187
* @type sai_acl_field_data_t sai_uint8_t
11881188
* @flags CREATE_AND_SET
@@ -1398,7 +1398,7 @@ typedef enum _sai_acl_entry_attr_t
13981398
* @brief Meta Data carried from previous ACL Stage.
13991399
*
14001400
* When an ACL entry set the meta data, the ACL meta data
1401-
* form previous stages are overriden.
1401+
* form previous stages are overridden.
14021402
* Value must be in the range defined in
14031403
* #SAI_SWITCH_ATTR_ACL_USER_META_DATA_RANGE
14041404
*
@@ -1547,7 +1547,7 @@ typedef enum _sai_acl_entry_attr_t
15471547
SAI_ACL_ENTRY_ATTR_ACTION_MIRROR_EGRESS,
15481548

15491549
/**
1550-
* @brief Assosiate with policer (policer id)
1550+
* @brief Associate with policer (policer id)
15511551
*
15521552
* @type sai_acl_action_data_t sai_object_id_t
15531553
* @flags CREATE_AND_SET
@@ -1580,23 +1580,23 @@ typedef enum _sai_acl_entry_attr_t
15801580
SAI_ACL_ENTRY_ATTR_ACTION_SET_PACKET_COLOR,
15811581

15821582
/**
1583-
* @brief Set Packet Inner Vlan-Id (12 bits)
1583+
* @brief Set Packet Inner Vlan Id (12 bits)
15841584
*
15851585
* @type sai_acl_action_data_t sai_uint32_t
15861586
* @flags CREATE_AND_SET
15871587
*/
15881588
SAI_ACL_ENTRY_ATTR_ACTION_SET_INNER_VLAN_ID,
15891589

15901590
/**
1591-
* @brief Set Packet Inner Vlan-Priority (3 bits)
1591+
* @brief Set Packet Inner Vlan Priority (3 bits)
15921592
*
15931593
* @type sai_acl_action_data_t sai_uint8_t
15941594
* @flags CREATE_AND_SET
15951595
*/
15961596
SAI_ACL_ENTRY_ATTR_ACTION_SET_INNER_VLAN_PRI,
15971597

15981598
/**
1599-
* @brief Set Packet Outer Vlan-Id (12 bits)
1599+
* @brief Set Packet Outer Vlan Id (12 bits)
16001600
*
16011601
* @type sai_acl_action_data_t sai_uint16_t
16021602
* @flags CREATE_AND_SET
@@ -1605,7 +1605,7 @@ typedef enum _sai_acl_entry_attr_t
16051605
SAI_ACL_ENTRY_ATTR_ACTION_SET_OUTER_VLAN_ID,
16061606

16071607
/**
1608-
* @brief Set Packet Outer Vlan-Priority (3 bits)
1608+
* @brief Set Packet Outer Vlan Priority (3 bits)
16091609
*
16101610
* @type sai_acl_action_data_t sai_uint8_t
16111611
* @flags CREATE_AND_SET
@@ -1695,7 +1695,7 @@ typedef enum _sai_acl_entry_attr_t
16951695
SAI_ACL_ENTRY_ATTR_ACTION_SET_L4_DST_PORT,
16961696

16971697
/**
1698-
* @brief Set ingress packet sampling (samplepacket session id)
1698+
* @brief Set ingress packet sampling (sample packet session id)
16991699
*
17001700
* @type sai_acl_action_data_t sai_object_id_t
17011701
* @flags CREATE_AND_SET
@@ -1704,7 +1704,7 @@ typedef enum _sai_acl_entry_attr_t
17041704
SAI_ACL_ENTRY_ATTR_ACTION_INGRESS_SAMPLEPACKET_ENABLE,
17051705

17061706
/**
1707-
* @brief Set egress packet sampling (samplepacket session id)
1707+
* @brief Set egress packet sampling (sample packet session id)
17081708
*
17091709
* @type sai_acl_action_data_t sai_object_id_t
17101710
* @flags CREATE_AND_SET
@@ -1760,7 +1760,7 @@ typedef enum _sai_acl_entry_attr_t
17601760
SAI_ACL_ENTRY_ATTR_ACTION_SET_USER_TRAP_ID,
17611761

17621762
/**
1763-
* @brief Do Not Learn unknown source MAC on match(enable/disbale) (parameter is not needed)
1763+
* @brief Do Not Learn unknown source MAC on match(enable/disable) (parameter is not needed)
17641764
*
17651765
* @type sai_acl_action_data_t sai_uint32_t
17661766
* @flags CREATE_AND_SET

inc/saibridge.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
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.
@@ -126,7 +126,7 @@ typedef enum _sai_bridge_port_attr_t
126126
SAI_BRIDGE_PORT_ATTR_VLAN_ID,
127127

128128
/**
129-
* @brief Associated router inerface object id
129+
* @brief Associated router interface object id
130130
*
131131
* Please note that for SAI_BRIDGE_PORT_TYPE_1Q_ROUTER,
132132
* all vlan interfaces are auto bounded for the bridge port.

0 commit comments

Comments
 (0)