On Thu, Jan 14, 2016 at 11:12 AM, Zoltan Kiss <[email protected]> wrote:
> The current code looks awkward, it defines pkt.num as 564. Clean that up > and set it to 8k to make sure even several big descriptor rings could be > accomodated. > > Signed-off-by: Zoltan Kiss <[email protected]> > Reviewed-by: Bill Fischofer <[email protected]> > > diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c > index a85b830..a4c6e49 100644 > --- a/test/performance/odp_l2fwd.c > +++ b/test/performance/odp_l2fwd.c > @@ -33,7 +33,7 @@ > /** @def SHM_PKT_POOL_SIZE > * @brief Size of the shared memory block > */ > -#define SHM_PKT_POOL_SIZE (512*2048) > +#define SHM_PKT_POOL_SIZE 8192 > > /** @def SHM_PKT_POOL_BUF_SIZE > * @brief Buffer size of the packet pool buffer > @@ -535,7 +535,7 @@ int main(int argc, char *argv[]) > odp_pool_param_init(¶ms); > params.pkt.seg_len = SHM_PKT_POOL_BUF_SIZE; > params.pkt.len = SHM_PKT_POOL_BUF_SIZE; > - params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE; > + params.pkt.num = SHM_PKT_POOL_SIZE; > params.type = ODP_POOL_PACKET; > > pool = odp_pool_create("packet pool", ¶ms); > _______________________________________________ > lng-odp mailing list > [email protected] > https://lists.linaro.org/mailman/listinfo/lng-odp >
_______________________________________________ lng-odp mailing list [email protected] https://lists.linaro.org/mailman/listinfo/lng-odp
