strange that on make check l2fwd test fails due to small packet rate

1405 maximum packets per second.

without patch:
6475 maximum packets per second.

test consumes that less then 5000 is error.

Please check on your machine.

Maxim.


On 01/15/2016 16:27, Bill Fischofer wrote:


On Thu, Jan 14, 2016 at 11:12 AM, Zoltan Kiss <zoltan.k...@linaro.org <mailto:zoltan.k...@linaro.org>> 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 <zoltan.k...@linaro.org
    <mailto:zoltan.k...@linaro.org>>


Reviewed-by: Bill Fischofer <bill.fischo...@linaro.org <mailto:bill.fischo...@linaro.org>>


    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(&params);
            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", &params);
    _______________________________________________
    lng-odp mailing list
    lng-odp@lists.linaro.org <mailto:lng-odp@lists.linaro.org>
    https://lists.linaro.org/mailman/listinfo/lng-odp




_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to