diff mbox series

[ovs-dev,v2,4/6] route-table: Expose route_table_parse_ns.

Message ID cabf6e3bc3f92b54278f092e45d113312ebcd73e.1732630344.git.felix.huettner@stackit.cloud
State Changes Requested
Delegated to: Eelco Chaudron
Headers show
Series OVS Patches for OVN Fabric Integration | expand

Checks

Context Check Description
ovsrobot/apply-robot warning apply and check: warning

Commit Message

Felix Huettner Nov. 26, 2024, 2:37 p.m. UTC
This will be also used on the OVN side to parse route table updates.

Signed-off-by: Felix Huettner <felix.huettner@stackit.cloud>
---
 lib/route-table.c | 4 +---
 lib/route-table.h | 3 ++-
 2 files changed, 3 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/lib/route-table.c b/lib/route-table.c
index d7d86f9ae..a9a9c6b85 100644
--- a/lib/route-table.c
+++ b/lib/route-table.c
@@ -65,8 +65,6 @@  static bool route_table_valid = false;
 static void route_table_reset(void);
 static void route_table_handle_msg(const struct route_table_msg *,
                                    void *);
-static int route_table_parse_ns(struct ofpbuf *, void *change,
-                                const char *netns);
 static void route_table_change(const struct route_table_msg *, void *);
 static void route_map_clear(void);
 
@@ -207,7 +205,7 @@  route_table_reset(void)
 
 /* Return RTNLGRP_IPV4_ROUTE or RTNLGRP_IPV6_ROUTE on success, 0 on parse
  * error. */
-static int
+int
 route_table_parse_ns(struct ofpbuf *buf, void *change_,
                      const char *netns OVS_UNUSED)
 {
diff --git a/lib/route-table.h b/lib/route-table.h
index b3d2a8741..1e9f51a98 100644
--- a/lib/route-table.h
+++ b/lib/route-table.h
@@ -24,7 +24,7 @@ 
 #include <stdbool.h>
 #include <stdint.h>
 
-#include "openvswitch/types.h"
+#include "openvswitch/ofpbuf.h"
 
 struct route_data {
     /* Copied from struct rtmsg. */
@@ -55,6 +55,7 @@  uint64_t route_table_get_change_seq(void);
 void route_table_init(void);
 void route_table_run(void);
 void route_table_wait(void);
+int route_table_parse_ns(struct ofpbuf *, void *change, const char *netns);
 bool route_table_fallback_lookup(const struct in6_addr *ip6_dst,
                                  char name[],
                                  struct in6_addr *gw6);