diff options
| author | Wesley Coakley <wcoakley@nvidia.com> | 2021-05-14 22:53:56 -0400 |
|---|---|---|
| committer | Wesley Coakley <wcoakley@nvidia.com> | 2021-05-16 17:33:03 -0400 |
| commit | 389571aaf4666129c0f68a1d111b4db5d1f1650c (patch) | |
| tree | 6433404b758a7db69de7cae7b26170bd2c71fc93 /lib/northbound_cli.c | |
| parent | a63273a5b48bcae375af39928bafafadc6a31e0c (diff) | |
pbrd: use sparse table for allocated NHG table IDs
Represent installed ("allocated") NHG tables with a hash keyed by table
ID. Replaces a pre-allocated array of booleans that implemented this
functionality before.
+ PBR table range > 65535 is fixed (was OOB access before :))
+ Pre-compute next available ID to save time when only checking
if all tables are allocated
Signed-off-by: Wesley Coakley <wcoakley@nvidia.com>
Diffstat (limited to 'lib/northbound_cli.c')
0 files changed, 0 insertions, 0 deletions
