summaryrefslogtreecommitdiffstats
path: root/zebra/rt.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2023-01-05 20:27:28 +0100
committerDonald Sharp <sharpd@nvidia.com>2023-01-05 20:31:36 +0100
commit68ff69fa27180b7e662916f4c7d45f83f833d986 (patch)
tree9700e67cb23280ec2b0c34285eb4f8cbc6ab149f /zebra/rt.h
parentzebra: Fix distance being set incorrectly on kernel offload update (diff)
downloadfrr-68ff69fa27180b7e662916f4c7d45f83f833d986.tar.xz
frr-68ff69fa27180b7e662916f4c7d45f83f833d986.zip
zebra: Set metric appropriately on route offload to asic
When FRR receives a route from the kernel about the route offload success/failure. The metric being reported is not going to be correct since we may not know it appropriately at this point in time. If we can set the metric to something appropriate. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/rt.h')
-rw-r--r--zebra/rt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/rt.h b/zebra/rt.h
index d8a22d2cf..4cf4c9d78 100644
--- a/zebra/rt.h
+++ b/zebra/rt.h
@@ -35,6 +35,8 @@
extern "C" {
#endif
+#define ROUTE_INSTALLATION_METRIC 20
+
#define RKERNEL_ROUTE(type) ((type) == ZEBRA_ROUTE_KERNEL)
#define RSYSTEM_ROUTE(type) \