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 64FA1A0524; Mon, 27 Jul 2020 06:50:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 19A9D1BFCF; Mon, 27 Jul 2020 06:50:31 +0200 (CEST) Received: from mail-il1-f193.google.com (mail-il1-f193.google.com [209.85.166.193]) by dpdk.org (Postfix) with ESMTP id 67FC01BE8A for ; Mon, 27 Jul 2020 06:50:29 +0200 (CEST) Received: by mail-il1-f193.google.com with SMTP id z3so1738477ilh.3 for ; Sun, 26 Jul 2020 21:50:29 -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=0AyAaBERqlL7KMx7E5KCIDrvtPadfKXdC4xQFUTAJbU=; b=E7mNIxejdGCEIinjmRTCui5eldj7p8xJZ/QmLomCtr1TVZtjtMIYf1QvZ6an34g7DU 7cltmIjzHnLB3N8RJCyMiZdPXRkp9fU2XBwHbowrijbPvgwcee9PzJkIWI2lXuh4sWaD gnTmQz1AwM4Rpz44TnpZ0aK4coDPnJSPuxTuNv1LqXzjBvaHwkcQdpa92n6IRB6DenzG 7CWksgMfUzaiydXkORtb1Ldo3lmDasNcrC6f6UcOqcmEsItUGOZTFjxhL6gr3M5veOkm zWApvJB8Ya/mcGzLRroTl8gkt96Q6dHd9F6CZpjVyI8NonKiIKUR96wAyhOoVwh11PCB S4DA== 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=0AyAaBERqlL7KMx7E5KCIDrvtPadfKXdC4xQFUTAJbU=; b=Q9NemwTRwOyOOGLCeZFL9SOCFWMNNWAvHDtZM0qT06QdvbkIUSkEE5jKwdWOUt+dwN Tyn05/6P5kwc6iKJ4lBKPnHMo5fw6ny9IQWGNDVNg08DBeEhznTES66LFe1BW4Pt1bth miugBz2nNR2pIRI6a5GudiH4Qc4S3XZjgBay+odpqMz1FzUPANoNn1t9wIxyO613xzJi CF/ql0/FKGWbvbfApaCT3QbIREcaBbH7t49pWHydvuYsQH4Fde8AG8NshaNmk/pv0/4X NqeIzn7Rra61VRciHb9yru4nsrMYv/cj+bqfNMirO5k8iZ6bmX2TkksF9UblGw8Uae5Z Ul0g== X-Gm-Message-State: AOAM530ki6c5H+BqnSH+DM6EN3px6vClWkw4KoRfsWg28pu6MhgBzYU9 zw+JOAoDD5aYYU3ZWDYHXdYP4/MP5lMaGDG03d8= X-Google-Smtp-Source: ABdhPJymRh8U4YqLJRCnHxoXREugWn7BfFQfLVFqb2UINRgfzBtQOjv9YvkvM29eN8FWi8Kv43jL3za+0sLUcl46nuE= X-Received: by 2002:a92:6a07:: with SMTP id f7mr10267731ilc.271.1595825428658; Sun, 26 Jul 2020 21:50:28 -0700 (PDT) MIME-Version: 1.0 References: <1595793496-73205-1-git-send-email-orika@mellanox.com> In-Reply-To: <1595793496-73205-1-git-send-email-orika@mellanox.com> From: Jerin Jacob Date: Mon, 27 Jul 2020 10:20:12 +0530 Message-ID: To: Ori Kam Cc: Jerin Jacob , Wang Xiang , Matan Azrad , Slava Ovsiienko , John McNamara , Marko Kovacevic , 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, deri@ntop.org, fc@napatech.com, arthur.su@lionic.com, Thomas Monjalon , Raslan Darawsheh , Yuval Avnery Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH v1] 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 Mon, Jul 27, 2020 at 1:28 AM Ori Kam wrote: > > diff --git a/app/test-regex/hello_world.rof2 b/app/test-regex/hello_world.rof2 > new file mode 100644 > index 0000000..fb7db75 > --- /dev/null > +++ b/app/test-regex/hello_world.rof2 > @@ -0,0 +1,45 @@ > +# > +# rof_version: 2 > +# > +# date:20200210_164643 > +# > +# rxp_compiler:5.7.18007 Please don't check-in vendor/driver specific file formats in the main repository. See below. > +# > +# rof_revision:0 > +# > +2, 0x00000000, 0x0000000004055254 > +3, 0x00000000, 0x0000000007055254 > +1, 0x00000005, 0x0000000000aa0008 > +1, 0x00000006, 0x00000000dddd00aa > +4, 0x00010010, 0x0000000000000000 > +4, 0x00010011, 0x0000000000000000 > +4, 0x00010012, 0x0000000000000000 > +5, 0x00010010, 0x0000000000000000 > +5, 0x00010011, 0x0000000000000000 > +5, 0x00010012, 0x0000000000000000 > +6, 0x00000000, 0x6c6c65680040bd82 > +6, 0x00000001, 0x6f77206f0040bd82 > +6, 0x00000002, 0x00646c720040bd62 > +6, 0x00000003, 0x0000000100403a48 > +6, 0x00000004, 0x00000001003b3c1f > +6, 0x00000005, 0x0000000000000000 > +6, 0x00000006, 0x0000000000000000 > +6, 0x00000007, 0x0000000000000000 > +6, 0x00d30000, 0x0000000000000000 > +6, 0x00e401e5, 0xbdb9180002000000 > +6, 0x00e80000, 0x31ac75f69abc779c > +6, 0x00ec0000, 0xabe575e975011cf4 > +6, 0x00ed0000, 0x38bf9e2967d22ac4 > +6, 0x00f00000, 0x34f501ce6aa8a034 > +6, 0x00f10000, 0x85e40fd9e10676d7 > +6, 0x00f40000, 0x1258c0a059dc9464 > +6, 0x00f401e5, 0x680262622a400800 > +6, 0x00f50000, 0x000d32453675686d > +6, 0x00f60000, 0x4136d69d550adc7a > +6, 0x00f70000, 0x6db55b9daab1c703 > +4, 0x00010010, 0x0000000087a5837c > +4, 0x00010011, 0x00000000d75b7cab > +4, 0x00010012, 0x000000000884a03a > +5, 0x00010010, 0x0000000087a5837c > +5, 0x00010011, 0x00000000d75b7cab > +5, 0x00010012, 0x000000000884a03a > + > +Running the Tool > +---------------- > + > +The tool has a number of command line options. Here is the sample command line: > + > +.. code-block:: console > + > + ./build/app/testregex -w 83:00.0 -- --rules app/test-regex/hello_world.rof2 --data app/test-regex/input.txt --job 100 Instead of giving the binary rule format, Primary option could to be compile the rule by the application itself. If the driver does not have such capability then the application can look for binary rule file in such case please don't host binary rules in dpdk.org. > -- > 1.8.3.1 >