Skip to content

Commit

Permalink
northd: Make bfd_connections static in build_parsed_routes.
Browse files Browse the repository at this point in the history
Make hamp bfd_connections pointer static in build_parsed_routes and
parsed_routes_add routines since it is used just as input.

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Han Zhou <hzhou@ovn.org>
  • Loading branch information
LorenzoBianconi authored and hzhou8 committed Aug 23, 2024
1 parent 01119a5 commit 32fb586
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions northd/northd.c
Original file line number Diff line number Diff line change
Expand Up @@ -11113,7 +11113,7 @@ parsed_route_lookup(struct hmap *routes, size_t hash,
static void
parsed_routes_add(struct ovn_datapath *od, const struct hmap *lr_ports,
const struct nbrec_logical_router_static_route *route,
struct hmap *bfd_connections,
const struct hmap *bfd_connections,
struct hmap *routes, struct simap *route_tables,
struct hmap *bfd_active_connections)
{
Expand Down Expand Up @@ -11226,7 +11226,7 @@ parsed_routes_add(struct ovn_datapath *od, const struct hmap *lr_ports,

void
build_parsed_routes(struct ovn_datapath *od, const struct hmap *lr_ports,
struct hmap *bfd_connections, struct hmap *routes,
const struct hmap *bfd_connections, struct hmap *routes,
struct simap *route_tables,
struct hmap *bfd_active_connections)
{
Expand Down
2 changes: 1 addition & 1 deletion northd/northd.h
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ void northd_indices_create(struct northd_data *data,
void route_policies_init(struct route_policies_data *);
void route_policies_destroy(struct route_policies_data *);
void build_parsed_routes(struct ovn_datapath *, const struct hmap *,
struct hmap *, struct hmap *, struct simap *,
const struct hmap *, struct hmap *, struct simap *,
struct hmap *);
uint32_t get_route_table_id(struct simap *, const char *);
void static_routes_init(struct static_routes_data *);
Expand Down

0 comments on commit 32fb586

Please sign in to comment.