git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/sfc: fix align to power of 2 when align has smaller type
[dpdk.git]
/
drivers
/
net
/
sfc
/
sfc_rx.c
diff --git
a/drivers/net/sfc/sfc_rx.c
b/drivers/net/sfc/sfc_rx.c
index
23dff09
..
e6809bb
100644
(file)
--- a/
drivers/net/sfc/sfc_rx.c
+++ b/
drivers/net/sfc/sfc_rx.c
@@
-1019,7
+1019,7
@@
sfc_rx_mb_pool_buf_size(struct sfc_adapter *sa, struct rte_mempool *mb_pool)
* Start is aligned the same or better than end,
* just align length.
*/
- buf_size =
P2ALIGN(
buf_size, nic_align_end);
+ buf_size =
EFX_P2ALIGN(uint32_t,
buf_size, nic_align_end);
}
return buf_size;