summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormobash-rasool <mrasool@vmware.com>2023-04-18 00:07:04 +0530
committerGitHub <noreply@github.com>2023-04-18 00:07:04 +0530
commit74aad5ab559cc39f52137292b3b38d2d07eff428 (patch)
tree32d0a939260e40e9e980ad6620d3bf8b3942cddf
parenteda79af4a49911fdff6815ae1a0eb8b3acc2bdf9 (diff)
parent3d8814f8272ecce7b7aafa2a29585dc1ecaba772 (diff)
Merge pull request #13319 from anlancs/pimd-wrong-comment-nht
pimd: Correct the wrong comment
-rw-r--r--pimd/pim_nht.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pimd/pim_nht.c b/pimd/pim_nht.c
index cb0d8c5c92..5f0f2a5933 100644
--- a/pimd/pim_nht.c
+++ b/pimd/pim_nht.c
@@ -737,7 +737,7 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
pnc->last_update = pim_time_monotonic_usec();
if (nhr.nexthop_num) {
- pnc->nexthop_num = 0; // Only increment for pim enabled rpf.
+ pnc->nexthop_num = 0;
for (i = 0; i < nhr.nexthop_num; i++) {
nexthop = nexthop_from_zapi_nexthop(&nhr.nexthops[i]);
@@ -855,7 +855,8 @@ int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS)
nhlist_tail = nexthop;
nhlist_head = nexthop;
}
- // Only keep track of nexthops which are PIM enabled.
+
+ // Keep track of all nexthops, even PIM-disabled ones.
pnc->nexthop_num++;
}
/* Reset existing pnc->nexthop before assigning new list */