Re: bgpd refactor struct prefix

2021-07-26 Thread Sebastian Benoit
Claudio Jeker(cje...@diehard.n-r-g.com) on 2021.07.14 09:33:19 +0200: > On Tue, Jun 29, 2021 at 12:00:24PM +0200, Claudio Jeker wrote: > > This diff moves the rib_entry pointer re into the union to safe some > > space. For add-path I need to add a few more u_int32_t and that would > > blow the size

Re: bgpd refactor struct prefix

2021-07-14 Thread Claudio Jeker
On Tue, Jun 29, 2021 at 12:00:24PM +0200, Claudio Jeker wrote: > This diff moves the rib_entry pointer re into the union to safe some > space. For add-path I need to add a few more u_int32_t and that would > blow the size of struct prefix from 128 to 132 bytes. malloc would round > that up to 256by

bgpd refactor struct prefix

2021-06-29 Thread Claudio Jeker
This diff moves the rib_entry pointer re into the union to safe some space. For add-path I need to add a few more u_int32_t and that would blow the size of struct prefix from 128 to 132 bytes. malloc would round that up to 256bytes and that is bad for the struct that is allocted in millions in bgpd