summaryrefslogtreecommitdiff
path: root/pbrd/pbr_nht.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-08-24 15:14:44 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-08-28 07:51:06 -0400
commit9d961247f51f6a9a05ad919de25c59f06056ab95 (patch)
treec076f6a8f5fff1379584a958b5ba0a9638bf5b32 /pbrd/pbr_nht.h
parente7ff02539c22d6fde61844640bc1659e8588c09b (diff)
pbrd: When multiple items share the pnhc do the right thing
We had multiple pnhc cache entries with the same nexthop pointer. This causes some large amount of confusion. Fixup the code to handle this situation better. Ticket: CM-31044 Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_nht.h')
-rw-r--r--pbrd/pbr_nht.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbrd/pbr_nht.h b/pbrd/pbr_nht.h
index a1099a00c6..b584863233 100644
--- a/pbrd/pbr_nht.h
+++ b/pbrd/pbr_nht.h
@@ -53,6 +53,7 @@ struct pbr_nexthop_cache {
struct nexthop *nexthop;
+ bool looked_at;
bool valid;
};