]> git.puffer.fish Git - matthieu/frr.git/commit
pimd: Avoid unnecessary vrf lookup
authorSarita Patra <saritap@vmware.com>
Tue, 12 Jul 2022 13:00:57 +0000 (06:00 -0700)
committerSarita Patra <saritap@vmware.com>
Tue, 12 Jul 2022 13:09:04 +0000 (06:09 -0700)
commitaf9c8e7666f91b8837c027ac733b512fe6f3a37e
tree3f33399d8eb945b605836170c8d959e60141456f
parent554350c87a1da915ff555ed91fab35be94ff4c07
pimd: Avoid unnecessary vrf lookup

In several places, we are getting the vrf structure using
vrf_lookup_by_name(). Again we are passing vrf->vrf_id to
pim_get_pim_instance() to get the pim_instance.

The API pim_get_pim_instance() again get the VRF structure using
vrf_lookup_by_id(). This is avoided in this PR.

Signed-off-by: Sarita Patra <saritap@vmware.com>
pimd/pim_cmd.c
pimd/pim_cmd_common.c