From c5403f15c39ca98902f692953bf22b42050b279e Mon Sep 17 00:00:00 2001 From: Nikolay Aleksandrov Date: Thu, 23 Mar 2023 14:03:31 +0200 Subject: [PATCH] linux_defaults: add local lookup priority to use for fib rules Add the new local lookup priority where we move rule 0 to so it can be used by future changes to ensure proper local lookup rules are installed. Signed-off-by: Nikolay Aleksandrov --- pkg/datapath/linux/linux_defaults/linux_defaults.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/datapath/linux/linux_defaults/linux_defaults.go b/pkg/datapath/linux/linux_defaults/linux_defaults.go index 1258fc3f7c8b8..42416f9245619 100644 --- a/pkg/datapath/linux/linux_defaults/linux_defaults.go +++ b/pkg/datapath/linux/linux_defaults/linux_defaults.go @@ -83,6 +83,10 @@ const ( // before the local table priority. RulePriorityIngress = 20 + // RulePriorityLocalLookup is the priority for the local lookup rule which is + // moved on init from 0 + RulePriorityLocalLookup = 100 + // RulePriorityEgress is the priority of the rule used for egress routing // of endpoints. This priority is after the local table priority. RulePriorityEgress = 110