[dpdk-dev] [PATCH] parray: introduce internal API for dynamic arrays

Thomas Monjalon thomas at monjalon.net
Tue Jun 15 08:48:14 CEST 2021


14/06/2021 17:48, Morten Brørup:
> > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Thomas Monjalon
> It would be much simpler to just increase RTE_MAX_ETHPORTS to something big enough to hold a sufficiently large array. And possibly add an rte_max_ethports variable to indicate the number of populated entries in the array, for use when iterating over the array.
> 
> Can we come up with another example than RTE_MAX_ETHPORTS where this library provides a better benefit?

What is big enough?
Is 640KB enough for RAM? ;)

When dealing with microservices switching, the numbers can increase very fast.




More information about the dev mailing list