summaryrefslogtreecommitdiff
path: root/pbrd/pbr_nht.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-08-24 15:25:34 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-08-28 07:51:06 -0400
commit734bf907cbb6c8a44af41168a38e2cb57a25b926 (patch)
tree93820a325837dae53ff0d9dfbb4bf3fc82550663 /pbrd/pbr_nht.h
parent9d961247f51f6a9a05ad919de25c59f06056ab95 (diff)
pbrd: Convert pnhc->nexthop to it's own data
The pnhc->nexthop was a pointer copy. Causing issues with the ability to move pointers around for the different pnhc since the pnhc mirrored the nexthop caches. When we received a vrf change if we shared pointers it was impossible to know if we had already updated the code. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_nht.h')
-rw-r--r--pbrd/pbr_nht.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pbrd/pbr_nht.h b/pbrd/pbr_nht.h
index b584863233..bcd770c2cf 100644
--- a/pbrd/pbr_nht.h
+++ b/pbrd/pbr_nht.h
@@ -51,7 +51,7 @@ struct pbr_nexthop_cache {
char vrf_name[VRF_NAMSIZ + 1];
char intf_name[INTERFACE_NAMSIZ + 1];
- struct nexthop *nexthop;
+ struct nexthop nexthop;
bool looked_at;
bool valid;