net/sfc: unify power of 2 alignment check macro
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 24 Jul 2019 13:16:34 +0000 (14:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Jul 2019 19:01:11 +0000 (21:01 +0200)
commit0270853d94e298820f3361b43dfdbf95e6a05c88
tree45f68de97438eda4ce74f2b87068296c3e0ad833
parent827ad8232cb87a0f79e65c3f5bb154a2fd771153
net/sfc: unify power of 2 alignment check macro

Substitute driver-defined IS_P2ALIGNED() with EFX_IS_P2ALIGNED()
defined in libefx.

Add type argument and cast value and alignment to one specified type.

Fixes: e1b944598579 ("net/sfc: build libefx")
Cc: stable@dpdk.org
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
drivers/net/sfc/base/ef10_rx.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/efsys.h