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 E3968A055F; Thu, 27 Feb 2020 15:55:57 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 34D5637AF; Thu, 27 Feb 2020 15:55:57 +0100 (CET) Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by dpdk.org (Postfix) with ESMTP id 2D0291F1C for ; Thu, 27 Feb 2020 15:55:56 +0100 (CET) Received: by mail-io1-f67.google.com with SMTP id d15so3508246iog.3 for ; Thu, 27 Feb 2020 06:55:56 -0800 (PST) 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=7UwwhB5IRHbDN2uvAab+olLkPng0EEo1jon95aKw+f4=; b=hE3jk+Vivk3jRduN2HryUPJCfP3h9P8P3i7mN/cA3HZfmARy1YWXVNYcomcaH/5APY bnGjwYjboFFY7vaIx6Xdiz8vJVKXoDUyD2AS5Xliwxb4tj/RdFJzVPCHQLcFZ0AVaYtH QHbQPYYimdnmHTD8Ix1I+aqpTHj4JexLBVLQZndxUZEng2kZQFKqXUbq7YCjiZGIxSvK SfRduZv5MPK0OIpxumyy/6qvuuRkcj1rtgUe3zNG32tLGnx5zG16zXJfPk6OrPSYMpd3 wVDFiNmK48dtp5VHxc1QSzJ1p5jbsR7wWpPFOtDJH0fJrSWXVCSgTVhHHKUVp/NvlQUo Di0w== 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=7UwwhB5IRHbDN2uvAab+olLkPng0EEo1jon95aKw+f4=; b=uh0pEYePYiazD+AF5UChMF1Y9bglgZkJQwuHZbcIw6OsGPZahuwiyIEYBgdIjpuqo+ JVw1WD+H16/TEd8qZGWC3ycwtrcWJ/iOuqTqylILMWGk0krC6FfSivdgUqcJRbQIPCIN QK2SJh7WWRbM0ssOABod7SNgmkrjrtv3Mc7W3h5sJuavsUCJnqDp6BUxiDHcV2qUAmi3 L805lat7JiLfTQma9cuGldI3hpaqwnaFvbkEcql7TrtIaq77S+e6a6x/sy3EDkcL+5E+ TxbqF7EMaVBFMmv/WMFJ6+JJ/9pLtZLS5wImQuUTxsnoKYksHMNF/MbUuzYH9OgIwI40 t4tA== X-Gm-Message-State: APjAAAW3e25zLKlK1eyuw+VKQ+2kPdsSs/N+QyIW50DhMZhltnnE2BX4 jKrENnK9sDjGsXLuObu6BEjHyY/OL1eTm9WHiR8= X-Google-Smtp-Source: APXvYqx9OsM39HHwTWRPBrJBtmIc2pbjWVxu5b1ir6yho0UmMpCE80lYbYsJv4UXryutBRdV09IOjn7etSZGgReVXE8= X-Received: by 2002:a6b:c742:: with SMTP id x63mr5202996iof.162.1582815355355; Thu, 27 Feb 2020 06:55:55 -0800 (PST) MIME-Version: 1.0 References: <20190627155036.56940-1-jerinj@marvell.com> <1582814448-93489-1-git-send-email-orika@mellanox.com> In-Reply-To: <1582814448-93489-1-git-send-email-orika@mellanox.com> From: Jerin Jacob Date: Thu, 27 Feb 2020 20:25:38 +0530 Message-ID: To: Ori Kam Cc: Jerin Jacob , xiang.w.wang@intel.com, dpdk-dev , Pavan Nikhilesh , Shahaf Shuler , Hemant Agrawal , Opher Reviv , Alex Rosenbaum , dovrat@marvell.com, 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 v4] regexdev: introduce regexdev subsystem 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, Feb 27, 2020 at 8:11 PM Ori Kam wrote: > > From: Jerin Jacob > > Even though there are some vendors which offer Regex HW offload, due to > lack of standard API, It is diffcult for DPDK consumer to use them > in a portable way. > > This _RFC_ attempts to standardize the RegEx/DPI offload APIs for DPDK. > > This RFC crafted based on SW Regex API frameworks such as libpcre and > hyperscan and a few of the RegEx HW IPs which I am aware of. > > RegEx pattern matching applications: > * Next Generation Firewalls (NGFW) > * Deep Packet and Flow Inspection (DPI) > * Intrusion Prevention Systems (IPS) > * DDoS Mitigation > * Network Monitoring > * Data Loss Prevention (DLP) > * Smart NICs > * Grammar based content processing > * URL, spam and adware filtering > * Advanced auditing and policing of user/application security policies > * Financial data mining - parsing of streamed financial feeds > * Application recognition. > * Dmemory introspection. > * Natural Language Processing (NLP) > * Sentiment Analysis. > * Big data databse acceleration. > * Computational storage. > > Request to review from HW and SW RegEx vendors and RegEx application > users to have portable DPDK API for RegEx. > > The API schematics are based cryptodev, eventdev and ethdev existing > device API. > > Signed-off-by: Jerin Jacob > Signed-off-by: Pavan Nikhilesh > Signed-off-by: Ori Kam > --- > V4: > * Replace iova with mbuf. > * Small ML comments. > V3: > * Change subject title. > V2: > * Address ML comments. > +/** Struct to hold scatter gather elements in ops. */ > +struct rte_regex_iov { > + RTE_STD_C11 > + union { > + uint64_t u64; > + /**< Allow 8-byte reserved on 32-bit system */ > + void *buf_addr; > + /**< Virtual address of the pattern to be matched. */ > + }; > + rte_iova_t buf_iova; > + /**< IOVA address of the pattern to be matched. */ > + uint16_t buf_size; /**< The buf size. */ > +}; rte_regex_iov structure is stale . Please remove it.