net/sfc: fix align to power of 2 when align has smaller type
authorAndrew Rybchenko <arybchenko@solarflare.com>
Wed, 24 Jul 2019 13:16:33 +0000 (14:16 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 24 Jul 2019 19:01:11 +0000 (21:01 +0200)
commit827ad8232cb87a0f79e65c3f5bb154a2fd771153
treeb5502167abe2cb173da2603fc9d24943128c2fe3
parent441717b92c2a22021b7a38c43788897a09f23b6d
net/sfc: fix align to power of 2 when align has smaller type

Substitute driver-defined P2ALIGN() with EFX_P2ALIGN() 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>
drivers/net/sfc/base/ef10_rx.c
drivers/net/sfc/base/efx.h
drivers/net/sfc/efsys.h
drivers/net/sfc/sfc_rx.c