net/sfc: fix mbuf data alignment calculation
Unlike ffs() rte_bsf32() counts bit position from 0. Fixes: 0c7a0c35f24c ("net/sfc: calculate Rx buffer size which may be used") Cc: stable@dpdk.org Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
parent
0f5b98a56d
commit
bd0c7b4d76
@ -887,7 +887,7 @@ sfc_rx_mbuf_data_alignment(struct rte_mempool *mb_pool)
|
||||
|
||||
order = MIN(order, rte_bsf32(data_off));
|
||||
|
||||
return 1u << (order - 1);
|
||||
return 1u << order;
|
||||
}
|
||||
|
||||
static uint16_t
|
||||
|
Loading…
x
Reference in New Issue
Block a user