diff options
author | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-30 10:17:26 +0200 |
---|---|---|
committer | Sai Gomathi N <nsaigomathi@vmware.com> | 2022-06-30 10:49:54 +0200 |
commit | 229a20e2adaadfce5a196428439d92c19d35711e (patch) | |
tree | f0f30570f8bcb2792188d659637373109d86522d /pimd | |
parent | Merge pull request #11428 from SaiGomathiN/pimdebug (diff) | |
download | frr-229a20e2adaadfce5a196428439d92c19d35711e.tar.xz frr-229a20e2adaadfce5a196428439d92c19d35711e.zip |
pimd: Modifying member of pim_instance to accomodate IPv6 changes
Modifying igmp_watermark_limit of struct pim_instance
to gm_watermark_limit which is to be used for both IGMP and MLD.
Signed-off-by: Sai Gomathi N <nsaigomathi@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim6_cmd.c | 2 | ||||
-rw-r--r-- | pimd/pim_cmd.c | 10 | ||||
-rw-r--r-- | pimd/pim_igmp.c | 4 | ||||
-rw-r--r-- | pimd/pim_instance.h | 2 | ||||
-rw-r--r-- | pimd/pim_vty.c | 4 |
5 files changed, 11 insertions, 11 deletions
diff --git a/pimd/pim6_cmd.c b/pimd/pim6_cmd.c index 4f0758cf6..a32752590 100644 --- a/pimd/pim6_cmd.c +++ b/pimd/pim6_cmd.c @@ -687,7 +687,7 @@ DEFPY (ipv6_mld_group_watermark, { PIM_DECLVAR_CONTEXT_VRF(vrf, pim); - /* TBD Depends on MLD data structure changes */ + /* TBD Depends on MLD data structure changes */ (void)pim; return CMD_SUCCESS; diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 817ebcc25..91cc3aa79 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -1135,12 +1135,12 @@ static void igmp_show_groups(struct pim_instance *pim, struct vty *vty, bool uj) json = json_object_new_object(); json_object_int_add(json, "totalGroups", pim->igmp_group_count); json_object_int_add(json, "watermarkLimit", - pim->igmp_watermark_limit); + pim->gm_watermark_limit); } else { vty_out(vty, "Total IGMP groups: %u\n", pim->igmp_group_count); vty_out(vty, "Watermark warn limit(%s): %u\n", - pim->igmp_watermark_limit ? "Set" : "Not Set", - pim->igmp_watermark_limit); + pim->gm_watermark_limit ? "Set" : "Not Set", + pim->gm_watermark_limit); vty_out(vty, "Interface Group Mode Timer Srcs V Uptime \n"); } @@ -3334,7 +3334,7 @@ DEFPY (ip_igmp_group_watermark, "Group count to generate watermark warning\n") { PIM_DECLVAR_CONTEXT_VRF(vrf, pim); - pim->igmp_watermark_limit = limit; + pim->gm_watermark_limit = limit; return CMD_SUCCESS; } @@ -3349,7 +3349,7 @@ DEFPY (no_ip_igmp_group_watermark, IGNORED_IN_NO_STR) { PIM_DECLVAR_CONTEXT_VRF(vrf, pim); - pim->igmp_watermark_limit = 0; + pim->gm_watermark_limit = 0; return CMD_SUCCESS; } diff --git a/pimd/pim_igmp.c b/pimd/pim_igmp.c index 849216af6..6ffeeb965 100644 --- a/pimd/pim_igmp.c +++ b/pimd/pim_igmp.c @@ -1009,8 +1009,8 @@ static void igmp_group_count_incr(struct pim_interface *pim_ifp) uint32_t group_count = listcount(pim_ifp->gm_group_list); ++pim_ifp->pim->igmp_group_count; - if (pim_ifp->pim->igmp_group_count - == pim_ifp->pim->igmp_watermark_limit) { + if (pim_ifp->pim->igmp_group_count == + pim_ifp->pim->gm_watermark_limit) { zlog_warn( "IGMP group count reached watermark limit: %u(vrf: %s)", pim_ifp->pim->igmp_group_count, diff --git a/pimd/pim_instance.h b/pimd/pim_instance.h index 23b9df4af..684785dd1 100644 --- a/pimd/pim_instance.h +++ b/pimd/pim_instance.h @@ -173,7 +173,7 @@ struct pim_instance { struct thread *t_gm_recv; unsigned int igmp_group_count; - unsigned int igmp_watermark_limit; + unsigned int gm_watermark_limit; unsigned int keep_alive_time; unsigned int rp_keep_alive_time; diff --git a/pimd/pim_vty.c b/pimd/pim_vty.c index 4dd139873..b00c25a48 100644 --- a/pimd/pim_vty.c +++ b/pimd/pim_vty.c @@ -260,9 +260,9 @@ int pim_global_config_write_worker(struct pim_instance *pim, struct vty *vty) ++writes; } - if (pim->igmp_watermark_limit != 0) { + if (pim->gm_watermark_limit != 0) { vty_out(vty, "%sip igmp watermark-warn %u\n", spaces, - pim->igmp_watermark_limit); + pim->gm_watermark_limit); ++writes; } |