[dpdk-dev] [PATCH v6 01/21] mem: add length to memseg list

Shreyansh Jain shreyansh.jain at nxp.com
Thu Sep 27 13:05:05 CEST 2018


On Thursday 27 September 2018 04:10 PM, Anatoly Burakov wrote:
> Previously, to calculate length of memory area covered by a memseg
> list, we would've needed to multiply page size by length of fbarray
> backing that memseg list. This is not obvious and unnecessarily
> low level, so store length in the memseg list itself.
> 
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>   drivers/bus/pci/linux/pci.c                       | 2 +-
>   lib/librte_eal/bsdapp/eal/eal_memory.c            | 2 ++
>   lib/librte_eal/common/eal_common_memory.c         | 5 ++---
>   lib/librte_eal/common/include/rte_eal_memconfig.h | 1 +
>   lib/librte_eal/linuxapp/eal/eal_memalloc.c        | 3 ++-
>   lib/librte_eal/linuxapp/eal/eal_memory.c          | 4 +++-
>   6 files changed, 11 insertions(+), 6 deletions(-)
> 

Acked-by: Shreyansh Jain <shreyansh.jain at nxp.com>



More information about the dev mailing list