diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-24 15:25:34 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-08-28 07:51:06 -0400 | 
| commit | 734bf907cbb6c8a44af41168a38e2cb57a25b926 (patch) | |
| tree | 93820a325837dae53ff0d9dfbb4bf3fc82550663 /pbrd/pbr_nht.h | |
| parent | 9d961247f51f6a9a05ad919de25c59f06056ab95 (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.h | 2 | 
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;  | 
