Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-05-04 | Explicit definition structures of route attributes | Maria Matejka | |
Changes in internal API: * Every route attribute must be defined as struct ea_class somewhere. * Registration of route attributes known at startup must be done by ea_register_init() from protocol build functions. * Every attribute has now its symbol registered in a global symbol table defined as SYM_ATTRIBUTE * All attribute ID's are dynamically allocated. * Attribute value custom formatting hook is defined in the ea_class. * Attribute names are the same for display and filters, always prefixed by protocol name. Also added some unit testing code for filters with route attributes. | |||
2022-05-04 | Conf: Symbols are properly scoped | Maria Matejka | |
Now there is a persistent root symbol scope and all scopes have their symbol hashes to store local symbols and not leak any symbol out. | |||
2022-05-04 | Replaced boilerplate eattr allocation by ea_set_attr() | Maria Matejka | |
2022-05-04 | Enforcing certain data structure explicit paddings. | Maria Matejka | |
Implicit paddings have undefined values in C. We want the eattr blocks to be comparable by memcmp and eattrs settable directly by structrure literals. This check ensures that all paddings in eattr and bval are explicit and therefore zeroed in all literals. | |||
2022-05-04 | Protocols use EA_LITERAL_* to set attributes | Maria Matejka | |
2022-05-04 | Local route attributes are always allocated from tmp_linpool | Maria Matejka | |
2022-05-04 | Filters always allocate from tmp_linpool | Maria Matejka | |
2022-05-04 | Attribute list normalization cleanup | Maria Matejka | |
2022-05-04 | Moved filter value union to lib | Maria Matejka | |
2022-05-04 | Complex route attributes are data structures, shall be in lib also | Maria Matejka | |
2022-05-04 | Splitting route data structures out to lib | Maria Matejka | |
2022-05-04 | FIB is a data structure generic enough to be in lib | Maria Matejka | |
2022-05-04 | Filters: removing adata_empty() duplicating lp_alloc_adata() | Maria Matejka | |
2022-05-04 | Unified attribute and filter types | Maria Matejka | |
This commit removes the EAF_TYPE_* namespace completely and also for route attributes, filter-based types T_* are used. This simplifies fetching and setting route attributes from filters. Also, there is now union bval which serves as an universal value holder instead of private unions held separately by eattr and filter code. | |||
2022-05-04 | Opaque types are named opaque also in filters | Maria Matejka | |
2022-05-04 | Special attribute types for enums | Maria Matejka | |
2022-05-04 | Dropping EAF_VAR_LENGTH as the attribute data is either embedded or adata | Maria Matejka | |
2022-05-04 | Filter: Bitfield eattrs reading / writing moved to filter code | Maria Matejka | |
Before this change, fetch-update-write and bitmasking was hardcoded in attribute access code cased by the attribute type. Several filter instructions are used to do it instead. As this is certainly going to be a little bit slower than before, the switch block in attribute access code should be completely removed in near future, helping with both performance and code cleanliness. The user interface should have stayed intact. | |||
2022-05-04 | Filter operations: bitwise AND and OR | Maria Matejka | |
2022-05-04 | Implicit ROA check converted to explicit filter instruction sequence | Maria Matejka | |
2022-05-04 | Fixed spurious undef of route attributes | Alexander Zubkov | |
2022-04-13 | RIP: fixed the EA_RIP_FROM attribute | Maria Matejka | |
The interface pointer was improperly converted to u32 and back. Fixing this by explicitly allocating an adata structure for it. It's not so memory efficient, we'll optimize this later. | |||
2022-04-06 | BGP uses lp_save / lp_restore instead of linpool flushing | Maria Matejka | |
It is too cryptic to flush tmp_linpool in these cases and we don't want anybody in the future to break this code by adding an allocation somewhere which should persist over that flush. Saving and restoring linpool state is safer. | |||
2022-04-06 | All linpools use pages to allocate regular blocks | Maria Matejka | |
2022-04-06 | BGP: Fixed LLGR depreferencing in bgp_rte_mergable | Maria Matejka | |
2022-04-06 | Protocols have their own explicit init routines | Maria Matejka | |
2022-04-06 | Unsetting route attributes without messing with type system | Maria Matejka | |
2022-04-06 | Eattr flags (originated and fresh) get their own struct fields | Maria Matejka | |
2022-04-06 | Minor fix: f_val literals should always have named struct fields | Maria Matejka | |
2022-04-06 | Converted Slab allocator to typed lists | Maria Matejka | |
2022-04-06 | Slab allocator can free the blocks without knowing the parent structure | Maria Matejka | |
2022-04-06 | Typed lists for easier walking and stronger type checking | Maria Matejka | |
2022-03-15 | Printf variant with a result allocated inside a pool / linpool | Maria Matejka | |
2022-03-14 | Slab memory allocator unit test | Maria Matejka | |
2022-03-09 | Fixed a static assert in page allocator | Maria Matejka | |
2022-03-09 | Merge remote-tracking branch 'origin/master' into haugesund | Maria Matejka | |
2022-03-09 | Merge commit '60880b539b8886f76961125d89a265c6e1112b7a' into haugesund | Maria Matejka | |
2022-03-09 | BGP Flowspec validation: Removed in-route optimization for multithreading ↵ | Maria Matejka | |
compatibility | |||
2022-03-09 | Merge commit 'e42eedb9' into haugesund | Maria Matejka | |
2022-03-09 | Merge commit '5cff1d5f' into haugesund | Maria Matejka | |
Conflicts: proto/bgp/attrs.c proto/pipe/pipe.c | |||
2022-03-09 | Merge commit 'd5a32563' into haugesund | Maria Matejka | |
2022-03-09 | Fixed resource initialization in unit tests | Maria Matejka | |
2022-03-09 | Linpools with pages fixed to the final page allocator version | Maria Matejka | |
2022-03-09 | Merge commit '0c59f7ff' into haugesund | Maria Matejka | |
2022-03-09 | Revert "Bound allocated pages to resource pools with page caches to avoid ↵ | Maria Matejka | |
unnecessary syscalls" This reverts commit 7f0e59820899c30a243c18556ce2e3fb72d6d221. | |||
2022-03-09 | Revert "fixup! Bound allocated pages to resource pools with page caches to ↵ | Maria Matejka | |
avoid unnecessary syscalls" This reverts commit bea582cbb53e30dd32a5b6829c7443e0e5558d11. | |||
2022-03-09 | Revert "Multipage allocation" | Maria Matejka | |
This reverts commit 6cd37713781a3092f8166b2178fae35cbfec1e28. | |||
2022-03-09 | Revert "fixup! Multipage allocation" | Maria Matejka | |
This reverts commit a54f75f454b7ed8c8ff2c1787a506528f22cbae7. | |||
2022-03-09 | Single-threaded version of sark-branch memory page management | Maria Matejka | |
2022-03-02 | Replacing BGP temporary linpools by the common temporary linpool | Maria Matejka | |