Re: [dpdk-dev] [PATCH] lib/rib: Add Routing Information Base library

2017-07-11 Thread Vladimir Medvedkin
Thanks, I'll change it. 2017-07-11 23:28 GMT+03:00 Stephen Hemminger : > On Tue, 11 Jul 2017 19:33:05 + > Medvedkin Vladimir wrote: > > > + > > +#define ROUNDUP(x, y) x - 1) >> (32 - y)) + 1) << (32 - y)) > > There is already RTE_ALIGN_FLOOR/RTE_ALIGN_CEIL > > > > +#define RTE_DIR24_8_

Re: [dpdk-dev] [PATCH] lib/rib: Add Routing Information Base library

2017-07-11 Thread Stephen Hemminger
On Tue, 11 Jul 2017 19:33:05 + Medvedkin Vladimir wrote: > + > +#define ROUNDUP(x, y) x - 1) >> (32 - y)) + 1) << (32 - y)) There is already RTE_ALIGN_FLOOR/RTE_ALIGN_CEIL > +#define RTE_DIR24_8_GET_TBL24_P(fib, ip) \ > + ((void *)&((uint8_t *)fib->tbl24)[(ip

[dpdk-dev] [PATCH] lib/rib: Add Routing Information Base library

2017-07-11 Thread Medvedkin Vladimir
RIB is an alternative to current LPM library. It solves the following problems - Increases the speed of control plane operations against lpm such as adding/deleting routes - Adds abstraction from dataplane algorythms, so it is possible to add different ip route lookup algorythms such as DXR