Make <add|del|change>_route() static to finish the transition to the new kpi.

Discussed with:	glebius
This commit is contained in:
Alexander V. Chernikov 2020-08-11 07:21:32 +00:00
parent 9a00f6d067
commit 136a1f8da8
2 changed files with 9 additions and 9 deletions

View File

@ -76,6 +76,12 @@ struct rib_subscription {
struct epoch_context epoch_ctx;
};
static int add_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc);
static int del_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc);
static int change_route(struct rib_head *, struct rt_addrinfo *,
struct rib_cmd_info *rc);
static void rib_notify(struct rib_head *rnh, enum rib_subscription_type type,
struct rib_cmd_info *rc);
@ -128,7 +134,7 @@ rib_add_route(uint32_t fibnum, struct rt_addrinfo *info,
return (add_route(rnh, info, rc));
}
int
static int
add_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc)
{
@ -389,7 +395,7 @@ rt_unlinkrte(struct rib_head *rnh, struct rt_addrinfo *info, int *perror)
return (rt);
}
int
static int
del_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc)
{
@ -566,7 +572,7 @@ change_route_one(struct rib_head *rnh, struct rt_addrinfo *info,
return (0);
}
int
static int
change_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc)
{

View File

@ -113,12 +113,6 @@ struct radix_node *rt_mpath_unlink(struct rib_head *rnh,
struct rt_addrinfo *info, struct rtentry *rto, int *perror);
#endif
struct rib_cmd_info;
int add_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc);
int del_route(struct rib_head *rnh, struct rt_addrinfo *info,
struct rib_cmd_info *rc);
int change_route(struct rib_head *, struct rt_addrinfo *,
struct rib_cmd_info *rc);
VNET_PCPUSTAT_DECLARE(struct rtstat, rtstat);
#define RTSTAT_ADD(name, val) \