diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2023-10-02 15:09:30 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2023-10-02 15:09:30 +0200 |
commit | 21213be523baa7f2cbf0feaa617f265c55e9b17a (patch) | |
tree | 97d0374225e267fe6b3c0cc64eacbe5395ba00b6 /nest/route.h | |
parent | 8ad9c4bb339172d445d1346876b2c9f3c27199c1 (diff) |
Nest: Expand rte_src.private_id to u64
In general, private_id is sparse and protocols may want to map some
internal values directly into it. For example, L3VPN needs to
map VPN route discriminators to private_id.
OTOH, u32 is enough for global_id, as these identifiers are dense.
Diffstat (limited to 'nest/route.h')
-rw-r--r-- | nest/route.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nest/route.h b/nest/route.h index feb1fa60..4fe43e6f 100644 --- a/nest/route.h +++ b/nest/route.h @@ -439,7 +439,7 @@ struct nexthop { struct rte_src { struct rte_src *next; /* Hash chain */ struct proto *proto; /* Protocol the source is based on */ - u32 private_id; /* Private ID, assigned by the protocol */ + u64 private_id; /* Private ID, assigned by the protocol */ u32 global_id; /* Globally unique ID of the source */ unsigned uc; /* Use count */ }; |