Skip to content

Commit

Permalink
Fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Junchao-Mellanox committed Jan 21, 2022
1 parent 564ef4a commit 9e39e72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,8 +1272,8 @@ void IntfsOrch::addIp2MeRoute(sai_object_id_t vrf_id, const IpPrefix &ip_prefix)
{
gCrmOrch->incCrmResUsedCounter(CrmResourceType::CRM_IPV6_ROUTE);
}
IpPrefix prefix = ip_prefix.getIp().to_string();
gRouteOrch->onAddOtherRouteEntry(vrf_id, prefix);

gRouteOrch->onAddOtherRouteEntry(vrf_id, IpPrefix(ip_prefix.getIp().to_string()));
}

void IntfsOrch::removeIp2MeRoute(sai_object_id_t vrf_id, const IpPrefix &ip_prefix)
Expand Down Expand Up @@ -1303,8 +1303,8 @@ void IntfsOrch::removeIp2MeRoute(sai_object_id_t vrf_id, const IpPrefix &ip_pref
{
gCrmOrch->decCrmResUsedCounter(CrmResourceType::CRM_IPV6_ROUTE);
}
IpPrefix prefix = ip_prefix.getIp().to_string();
gRouteOrch->onRemoveOtherRouteEntry(vrf_id, prefix);

gRouteOrch->onRemoveOtherRouteEntry(vrf_id, IpPrefix(ip_prefix.getIp().to_string()));
}

void IntfsOrch::addDirectedBroadcast(const Port &port, const IpPrefix &ip_prefix)
Expand Down
6 changes: 3 additions & 3 deletions orchagent/routeflowcounterorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ void RouteFlowCounterOrch::doTask(Consumer &consumer)
{
KeyOpFieldsValuesTuple t = it->second;

string key = kfvKey(t);
string op = kfvOp(t);
auto data = kfvFieldsValues(t);
const auto &key = kfvKey(t);
const auto &op = kfvOp(t);
const auto &data = kfvFieldsValues(t);
if (op == SET_COMMAND)
{
size_t maxMatchCount = ROUTE_PATTERN_DEFAULT_MAX_MATCH_COUNT;
Expand Down

0 comments on commit 9e39e72

Please sign in to comment.