mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-11-03 18:25:01 +00:00
bgpd: Fix function indirection when none is needed
bgp_update_main was only called by bgp_update. bgp_update only called bgp_update_main. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com> Reivewed-by: Daniel Walton <dwalton@cumulusnetworks.com>
This commit is contained in:
parent
33983476f7
commit
a7ee645d23
@ -2154,11 +2154,11 @@ bgp_update_martian_nexthop (struct bgp *bgp, afi_t afi, safi_t safi, struct attr
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int
|
||||
bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
|
||||
struct attr *attr, afi_t afi, safi_t safi, int type,
|
||||
int sub_type, struct prefix_rd *prd, u_char *tag,
|
||||
int soft_reconfig)
|
||||
int
|
||||
bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
|
||||
struct attr *attr, afi_t afi, safi_t safi, int type,
|
||||
int sub_type, struct prefix_rd *prd, u_char *tag,
|
||||
int soft_reconfig)
|
||||
{
|
||||
int ret;
|
||||
int aspath_loop_count = 0;
|
||||
@ -2516,15 +2516,6 @@ bgp_update_main (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
bgp_update (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
|
||||
struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type,
|
||||
struct prefix_rd *prd, u_char *tag, int soft_reconfig)
|
||||
{
|
||||
return bgp_update_main (peer, p, addpath_id, attr, afi, safi, type, sub_type,
|
||||
prd, tag, soft_reconfig);
|
||||
}
|
||||
|
||||
int
|
||||
bgp_withdraw (struct peer *peer, struct prefix *p, u_int32_t addpath_id,
|
||||
struct attr *attr, afi_t afi, safi_t safi, int type, int sub_type,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user