@@ -62,7 +62,7 @@ void FgNhgOrch::update(SubjectType type, void *cntx)
62
62
SWSS_LOG_WARN("Hit unexpected condition where structs are out of sync");
63
63
}
64
64
nexthop_entry->second.link_oper_state = LINK_UP;
65
- SWSS_LOG_INFO("Updated %s assoicated with %s to state up",
65
+ SWSS_LOG_INFO("Updated %s associated with %s to state up",
66
66
update->port.m_alias.c_str(), ip.to_string().c_str());
67
67
68
68
if (!m_neighOrch->getNeighborEntry(ip, nhk, macAddress))
@@ -481,9 +481,9 @@ bool FgNhgOrch::invalidNextHopInNextHopGroup(const NextHopKey& nexthop)
481
481
482
482
483
483
/* setActiveBankHashBucketChanges: Sets hash buckets for active banks and called on a PER bank basis
484
- * This function deals with a scenario where next-hop changes occured for the route,
484
+ * This function deals with a scenario where next-hop changes occurred for the route,
485
485
* and the next-hop change didn't cause an entire bank to go active/inactive.
486
- * The function uses bank_member_changes to compute the hash buckets to modify, in order to satisy the next-hop
486
+ * The function uses bank_member_changes to compute the hash buckets to modify, in order to satisfy the next-hop
487
487
* availability for the route/neigh.
488
488
* Eg: Prefix A had nhs 1, 2, 3 with 1, 2, 3, being equally distributed over hash buckets
489
489
* 0-59(20 buckets per nh). If there was a nh removal of nh 2, this fn would equally redistribute hash buckets
@@ -763,12 +763,12 @@ bool FgNhgOrch::setInactiveBankToNextAvailableActiveBank(FGNextHopGroupEntry *sy
763
763
764
764
765
765
/* setInactiveBankHashBucketChanges: Sets hash buckets for inactive banks and called on a PER bank basis.
766
- * This function deals with scenarios where next-hop changes occured for the route,
766
+ * This function deals with scenarios where next-hop changes occurred for the route,
767
767
* and the next-hop change causes an active bank to become inactive, or an inactive bank to become active or
768
768
* inactive bank to remain inactive.
769
769
* The function uses the bank member diffs provided in bank_member_changes and uses it to compute
770
- * the hash buckets to modify, in order to satisy the next-hop availability for the route/neigh.
771
- * Eg: Lets assume prefix A had nhs 1, 2, 3, 4, 5, 6 with nhs being equally distirbuted over hash buckets
770
+ * the hash buckets to modify, in order to satisfy the next-hop availability for the route/neigh.
771
+ * Eg: Lets assume prefix A had nhs 1, 2, 3, 4, 5, 6 with nhs being equally distributed over hash buckets
772
772
* 0-59(10 per nh). Now there was a nh deletion of 1, 2, 3 which constituted bank 0(4, 5, 6 constituted bank 1)
773
773
* This function will identify that all of bank 0's nh are down and re-assign all the hash buckets(0-29) for these nhs to
774
774
* nhs from bank 1, along with making local struct changes to track this for future route/neigh changes.
@@ -781,7 +781,7 @@ bool FgNhgOrch::setInactiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_r
781
781
782
782
if (bank_member_changes[bank].nhs_to_add.size() > 0)
783
783
{
784
- /* Previously inactive bank now transistions to active */
784
+ /* Previously inactive bank now transitions to active */
785
785
syncd_fg_route_entry->syncd_fgnhg_map[bank].clear();
786
786
for (uint32_t i = fgNhgEntry->hash_bucket_indices[bank].start_index;
787
787
i <= fgNhgEntry->hash_bucket_indices[bank].end_index; i++)
@@ -805,7 +805,7 @@ bool FgNhgOrch::setInactiveBankHashBucketChanges(FGNextHopGroupEntry *syncd_fg_r
805
805
}
806
806
else if (bank_member_changes[bank].nhs_to_del.size() > 0)
807
807
{
808
- /* Previously active bank now transistions to inactive */
808
+ /* Previously active bank now transitions to inactive */
809
809
if (!setInactiveBankToNextAvailableActiveBank(syncd_fg_route_entry, fgNhgEntry,
810
810
bank, bank_member_changes, nhopgroup_members_set, ipPrefix))
811
811
{
@@ -1130,7 +1130,7 @@ bool FgNhgOrch::setFgNhg(sai_object_id_t vrf_id, const IpPrefix &ipPrefix, const
1130
1130
fgNhgEntry->hash_bucket_indices.size(), BankMemberChanges());
1131
1131
if (fgNhgEntry->hash_bucket_indices.size() == 0)
1132
1132
{
1133
- /* Only happens the 1st time when hash_bucket_indices are not inited
1133
+ /* Only happens the 1st time when hash_bucket_indices are not initialized
1134
1134
*/
1135
1135
for (auto it : fgNhgEntry->next_hops)
1136
1136
{
0 commit comments