net/sfc: fix power of 2 round up when align has smaller type
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 24 Jul 2019 13:16:32 +0000 (14:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Jul 2019 19:01:11 +0000 (21:01 +0200)
Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
defined in libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

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

No differences found