diff options
author | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-04 20:04:43 +0200 |
---|---|---|
committer | Stephen Worley <sworley@cumulusnetworks.com> | 2019-10-25 17:13:43 +0200 |
commit | d3a35138115f89c19d0c44776da705b52975909f (patch) | |
tree | faa42b7560abce2b2cf7f230214e7818dd1b0c70 /pbrd | |
parent | pbrd: nexthop_group delete cb don't free pbr->nhg (diff) | |
download | frr-d3a35138115f89c19d0c44776da705b52975909f.tar.xz frr-d3a35138115f89c19d0c44776da705b52975909f.zip |
lib,pbrd,zebra: Use one api to delete nexthops/group
Reduce the api for deleting nexthops and the containing
group to just one call rather than having a special case
and handling it separately.
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_nht.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/pbrd/pbr_nht.c b/pbrd/pbr_nht.c index 062cfd015..7ccd14d1f 100644 --- a/pbrd/pbr_nht.c +++ b/pbrd/pbr_nht.c @@ -578,8 +578,6 @@ void pbr_nht_delete_individual_nexthop(struct pbr_map_sequence *pbrms) hash_release(pbr_nhg_hash, pnhgc); - _nexthop_del(pbrms->nhg, nh); - nexthop_free(nh); nexthop_group_delete(&pbrms->nhg); XFREE(MTYPE_TMP, pbrms->internal_nhg_name); } |