Re: [dpdk-dev] [PATCH 0/3] net/sfc: fix power of 2 alignment macros

2019-07-24 Thread Andrew Rybchenko
On 7/24/19 3:59 PM, Andrew Rybchenko wrote: P2ROUNDUP() and P2ALIGN() macros are buggy when alignment type is smaller than type of the value to be aligned. IS_P2ALIGNED() has no the problem since it cast its arugments to uintptr_t inside, but fixed anyway to follow the same approach as new EFX_P

[dpdk-dev] [PATCH 0/3] net/sfc: fix power of 2 alignment macros

2019-07-24 Thread Andrew Rybchenko
P2ROUNDUP() and P2ALIGN() macros are buggy when alignment type is smaller than type of the value to be aligned. IS_P2ALIGNED() has no the problem since it cast its arugments to uintptr_t inside, but fixed anyway to follow the same approach as new EFX_P2ROUNDUP() and EFX_P2ALIGN(). Patches have ch