From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C2F77A00C5; Thu, 4 Jun 2020 06:56:40 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 16C811D5C4; Thu, 4 Jun 2020 06:56:40 +0200 (CEST) Received: from mail-il1-f170.google.com (mail-il1-f170.google.com [209.85.166.170]) by dpdk.org (Postfix) with ESMTP id 23DEF1D57F for ; Thu, 4 Jun 2020 06:56:38 +0200 (CEST) Received: by mail-il1-f170.google.com with SMTP id v11so4848585ilh.1 for ; Wed, 03 Jun 2020 21:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oXvPLGbxMAL/glwKOZx6T3niGB5eJ6CHF9fo40Mr8mo=; b=MnjuFZsEditLnzYFdHV9msRCLLyT+vMSo1RBIjXxTNyB3N7dKq7a5uRpRQ7L/0gUNN nDPF10BD4BmkreCVonx3gQOJkSNV8R9BT5PvSDfK/DAbOEmrR1DW/ySSpW5YWHA3ddRb g0WKgkzumdK1il2FwSk+/eWw5p2IU/ct9aii6DINKMsZ8qFnAKUOr+QNiO26P8HY6//M Oe+Qoo/KR27sTwcXyMoIQjh4DSUvFf6eX6gcb3cwXWEVisCPdeAvLyoWrJcTV/mdYHOH 8MOTmg16eUuseD3d6f//HhVD2IZP/nSMn5xHWDBOW9GrbU7V+dDRniY7e4ARkm6hKPWx cDHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=oXvPLGbxMAL/glwKOZx6T3niGB5eJ6CHF9fo40Mr8mo=; b=l6mg5ZslGYxSG37tXj+N9FJ/BLWmvKPgdnVrqnZLUhCzWrnwVyOfYhaJPYSbSSJPEq THlBU8u1empL9J+wo1af1wKAG6AFezIfZ3WdrsMTYRR9Jw/4vcBFc/Dg+tHqDOMtONBX gR0uMGq/SqstqVTCP7PjmXNctqLS696tizlJotoOWSATZys3y9PibcZfx8mQtwGz31uN ZAbI2yj+CENqmaRpmo7e0qxXeTouX82bqIvPdHQSEK/p9bL/eSqGSlgBxxU5ySvNw6xs D0Ont80zEGEK5YRU4/x+O9qTdHJH7zBL5+7hAt0+WFvOUf6SsiHwWLcjXaNVoozpY270 E9dA== X-Gm-Message-State: AOAM531nMrJYLpyk/qWP2uTMHRF7Sb5Davj3VMnCz6nqpVRa+uRWJfU0 tOIrxOneohuMijXcPB0HrJRV1O4ebDafi8r7NNE= X-Google-Smtp-Source: ABdhPJxOhwW8lB5TreFdp9IqLNv6JYkMRQESFHpExHqvAbdkJb6LFdUvhr6UA2vLCvJ3naCrDvcSd5VVIzP7E84s9ZQ= X-Received: by 2002:a92:d38e:: with SMTP id o14mr2573546ilo.162.1591246596977; Wed, 03 Jun 2020 21:56:36 -0700 (PDT) MIME-Version: 1.0 References: <1591219752-46544-1-git-send-email-orika@mellanox.com> In-Reply-To: <1591219752-46544-1-git-send-email-orika@mellanox.com> From: Jerin Jacob Date: Thu, 4 Jun 2020 10:26:20 +0530 Message-ID: To: Ori Kam Cc: Jerin Jacob , Wang Xiang , Guy Kaneti , dpdk-dev , Pavan Nikhilesh , Shahaf Shuler , Hemant Agrawal , Opher Reviv , Alex Rosenbaum , Dovrat Zifroni , Prasun Kapoor , Nipun Gupta , "Richardson, Bruce" , yang.a.hong@intel.com, harry.chang@intel.com, gu.jian1@zte.com.cn, shanjiangh@chinatelecom.cn, zhangy.yun@chinatelecom.cn, lixingfu@huachentel.com, wushuai@inspur.com, yuyingxia@yxlink.com, fanchenggang@sunyainfo.com, davidfgao@tencent.com, liuzhong1@chinaunicom.cn, zhaoyong11@huawei.com, oc@yunify.com, Jim Thompson , hongjun.ni@intel.com, j.bromhead@titan-ic.com, deri@ntop.org, fc@napatech.com, arthur.su@lionic.com, Thomas Monjalon Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [RFC] app/test-regex: add RegEx test application. X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Thu, Jun 4, 2020 at 2:59 AM Ori Kam wrote: > > Following the new RegEx class [1]. > There is a need to create a dedecated test application in order to > validate this class and PMD. > > Unlike net device this application loads data from a file. > > This commit introduce the new RegEx test app. > > The basic app flow: > 1. query probed RegEx device. > 2. configure the probed device accoding to the device caps. > 3. read a rule database file. > 4. read a data file to be searched. > 5. allocate one mbuf. > 6. select the request job len, based on the number of jobs requsted. > 7. create one RegEx op which uses the mbuf defined in step 5. > 8. attach the data buffer at offset 0 with len accoding to request > len to the mbuf as external buffer. > 9. enqueue one job. > 10. wait for completion of the job. > 11. check job results and print them. > 12. move the mbuf to point to the next part of the buffer. > 13. while there are more parts jump to 9. > > Future improvments to this application may include: > 1. submiting more then one job at a time. > 2. working with more then one queue. > 3. support out of order. > 4. allow runtime rule updating. > > This commit is only at RFC level, which means that > the code is only basic reference and can't be compiled and doesn't > include error or edge case handling. > > [1]https://patches.dpdk.org/cover/69919/ > > Signed-off-by: Ori Kam IMO, this kind simile application with fixed-function can go in the example folder. I think, for app/test-regex, it better to have a framework to add new tests, modes, parse the modes, etc. Please see git log app/test-eventdev/ initial check-ins for the skeleton as a reference