@@ -83,7 +83,7 @@ static bool meta_unittests_get_and_erase_set_readonly_flag(
83
83
84
84
if (!unittests_enabled)
85
85
{
86
- // explicityly to not produce false alarms
86
+ // explicitly to not produce false alarms
87
87
SWSS_LOG_NOTICE (" unittests are not enabled" );
88
88
return false ;
89
89
}
@@ -192,8 +192,8 @@ class SaiAttrWrapper
192
192
SWSS_LOG_ENTER ();
193
193
194
194
/*
195
- * On destructor we need to call free to dealocate possible
196
- * alocated list on constructor.
195
+ * On destructor we need to call free to deallocate possible
196
+ * allocated list on constructor.
197
197
*/
198
198
199
199
sai_deserialize_free_attribute_value (m_meta->attrvaluetype , m_attr);
@@ -220,7 +220,7 @@ std::string get_attr_info(const sai_attr_metadata_t& md)
220
220
221
221
/*
222
222
* Attribute name will contain object type as well so we don't need to
223
- * serialize object type separatly .
223
+ * serialize object type separately .
224
224
*/
225
225
226
226
return std::string (md.attridname ) + " :" + sai_serialize_attr_value_type (md.attrvaluetype );
@@ -596,7 +596,7 @@ sai_status_t meta_generic_validation_objlist(
596
596
}
597
597
598
598
/*
599
- * We need oids set and object type to check whehter oids are not repeated
599
+ * We need oids set and object type to check whether oids are not repeated
600
600
* on list and whether all oids are same object type.
601
601
*/
602
602
@@ -741,7 +741,7 @@ std::string construct_key(
741
741
SWSS_LOG_ENTER ();
742
742
743
743
/*
744
- * Use map to make sure that keys will be always sorded by id.
744
+ * Use map to make sure that keys will be always sorted by id.
745
745
*/
746
746
747
747
std::map<int32_t , std::string> keys;
@@ -878,9 +878,9 @@ sai_status_t meta_generic_validate_non_object_on_create(
878
878
879
879
/*
880
880
* Since non object id objects can contain several object id's inside
881
- * object id strucutre , we need to check whether they all belong to the
881
+ * object id structure , we need to check whether they all belong to the
882
882
* same switch (sine multiple switches can be present and whether all those
883
- * objects are allowd respectivly on their members.
883
+ * objects are allowed respectively on their members.
884
884
*
885
885
* This check is required only on creation, since on set/get/remove we
886
886
* check in object hash whether this object exists.
@@ -894,7 +894,7 @@ sai_status_t meta_generic_validate_non_object_on_create(
894
894
}
895
895
896
896
/*
897
- * This will be most utilzed for createing route entries.
897
+ * This will be most utilized for creating route entries.
898
898
*/
899
899
900
900
for (size_t j = 0 ; j < info->structmemberscount ; ++j)
@@ -1075,7 +1075,7 @@ sai_status_t meta_generic_validation_create(
1075
1075
1076
1076
bool haskeys = false ;
1077
1077
1078
- // check each attribute separetly
1078
+ // check each attribute separately
1079
1079
for (uint32_t idx = 0 ; idx < attr_count; ++idx)
1080
1080
{
1081
1081
const sai_attribute_t * attr = &attr_list[idx];
@@ -1468,7 +1468,7 @@ sai_status_t meta_generic_validation_create(
1468
1468
return SAI_STATUS_FAILURE;
1469
1469
}
1470
1470
1471
- // check if all mandatory attrributes were passed
1471
+ // check if all mandatory attributes were passed
1472
1472
1473
1473
for (auto mdp: metadata)
1474
1474
{
@@ -1588,7 +1588,7 @@ sai_status_t meta_generic_validation_create(
1588
1588
{
1589
1589
const auto & c = *md.conditions [index ];
1590
1590
1591
- // condtions may only be on the same object type
1591
+ // conditions may only be on the same object type
1592
1592
const auto & cmd = *sai_metadata_get_attr_metadata (meta_key.objecttype , c.attrid );
1593
1593
1594
1594
const sai_attribute_value_t * cvalue = cmd.defaultvalue ;
@@ -1749,7 +1749,7 @@ sai_status_t meta_generic_validation_remove(
1749
1749
{
1750
1750
/*
1751
1751
* We allow to remove switch object even if there are ROUTE_ENTRY
1752
- * created and refrencing this switch, since remove could be used
1752
+ * created and referencing this switch, since remove could be used
1753
1753
* in WARM boot scenario.
1754
1754
*/
1755
1755
@@ -2255,7 +2255,7 @@ sai_status_t meta_generic_validation_get(
2255
2255
* attribute also oid, and then did a "set" on that value, and now
2256
2256
* reference is not decreased since previous oid was not snooped.
2257
2257
*
2258
- * TODO This concearn all attributes not only conditionals
2258
+ * TODO This concern all attributes not only conditionals
2259
2259
*
2260
2260
* If attribute is conditional, we need to check if condition is
2261
2261
* met, if not then this attribute is not mandatory so we can
@@ -3180,7 +3180,7 @@ void meta_generic_validation_post_get_objlist(
3180
3180
* when we doing get on acl field/action. But none of those are created
3181
3181
* internally by switch.
3182
3182
*
3183
- * TODO Similar stuff is with SET, when we will set oid obejct on existing
3183
+ * TODO Similar stuff is with SET, when we will set oid object on existing
3184
3184
* switch object, but we will not have it's previous value. We can check
3185
3185
* whether default value is present and it's const NULL.
3186
3186
*/
@@ -3249,7 +3249,7 @@ void meta_generic_validation_post_get_objlist(
3249
3249
if (!object_reference_exists (oid))
3250
3250
{
3251
3251
// NOTE: there may happen that user will request multiple object lists
3252
- // and first list was retrived ok, but second failed with overflow
3252
+ // and first list was retrieved ok, but second failed with overflow
3253
3253
// then we may forget to snoop
3254
3254
3255
3255
META_LOG_INFO (md, " returned get object on list [%u] oid 0x%lx object type %d does not exists in local DB (snoop)" , i, oid, ot);
@@ -3297,7 +3297,7 @@ void meta_generic_validation_post_get(
3297
3297
switch_id = meta_extract_switch_id (meta_key, switch_id);
3298
3298
3299
3299
/*
3300
- * TODO We should snoop attributes retrived from switch and put them to
3300
+ * TODO We should snoop attributes retrieved from switch and put them to
3301
3301
* local db if they don't exist since if attr is oid it may lead to
3302
3302
* inconsistency when counting reference
3303
3303
*/
0 commit comments