From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 2EB4CA0096 for ; Thu, 9 May 2019 04:10:46 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8B1A23977; Thu, 9 May 2019 04:10:45 +0200 (CEST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by dpdk.org (Postfix) with ESMTP id CDB112C18 for ; Thu, 9 May 2019 04:10:43 +0200 (CEST) Received: by mail-lf1-f41.google.com with SMTP id n22so328126lfe.12 for ; Wed, 08 May 2019 19:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csie-io.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ooeL2B/pmZ4JtKLcGy6jpuFS25o3JRzFUohNGcYBS1w=; b=a4iEXamMsg9rF4l+d6pToPLCywun06TKa4Y2fnuOQfFzDoXhgQZAFzyRyVLGyX6A1R MBmK5V2uN0qwwYSSh5Z7s63t8zLVyBz85ZvajkmffJXpPKu1x6xsAKe+a5B4w8evKTlw Hve7PCZefDKMWZqd/QbkhJdjNrIfbihgH7KaswEnB5iDjdfb1LHlwFABwohUfnQ5ym+F j2T5cq8mfWZoDm0djM7qO4bXYgdEkAOF199HxIyEONKQxvBGPol/k9ERvWR4LPMXvnWh /Pb7BCMRqq2mbUQ4GgGV9rl/8jNzNJOQTRttDrHCovwg9krEtVXd0FupKaF2Nm6rHYIL LRwQ== 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=ooeL2B/pmZ4JtKLcGy6jpuFS25o3JRzFUohNGcYBS1w=; b=AYXS9LFW63qGh8sWYkahpDOxfyhAwfW5E+jQUK3PzItXZ+gld7GRw5QyZKB1sIdTEf YapaHzhYvzqxki8v9XmFIISyqYhUsD+pu+JxO6qpDwTfvxvAclMzpA1moN+rEBWjhPyH TADp4s2F1kmb0NHDdObC2G89BZouP58CJshWwwX98IfTkweA5lvpA+8fdXWQgjtX+UBI 45RDR0v8/SIDb/X4SN6trLw8J9v4Yh/kguC0uINLOfOdGGQqGEVXd29VszGFqmwxAV4O /phIBiwas/KAZUubVziacT6xD3C5kMrmIBdQXjXNW4hB/TMjmOguY+H09wMF1MYhbXgL Ah7Q== X-Gm-Message-State: APjAAAV6w394RoKxArb7D/eWfDtAJuQ76Ahn5Id/+hXYJJK1P79vJ5Ab 8G5hUevwJZ8KfQf4fE/l0hJ6i//rLoWvedmFCDiXmA== X-Google-Smtp-Source: APXvYqzP8BJ/TkLCNVR2kaHgiHjRydT9mdOIXsfrYx27r6wdlPsW17HFlndo4Z0jiua8XCGDugBFlTV/frNd0KB7+lI= X-Received: by 2002:a19:c60f:: with SMTP id w15mr715536lff.61.1557367843174; Wed, 08 May 2019 19:10:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?5by15pWs5piK?= Date: Thu, 9 May 2019 10:10:32 +0800 Message-ID: To: =?UTF-8?B?5pu+5oe35oGp?= Cc: users@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-users] Flow director struct rte_flow_item_raw guild X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" Hi =E6=87=B7=E6=81=A9, On the second line of the detailed description of the struct reference , it says "Matches a byte string of a given length at a given offset." I think *pattern* is the byte string to look for. Regards, Frank On Thu, May 9, 2019 at 10:01 AM =E6=9B=BE=E6=87=B7=E6=81=A9 w= rote: > > Hi, > > I have a few questions about structure rte_flow_item_raw. > > In DPDK API doc, it shows there are some below elements in this structure > > uint32_t relative:1 > uint32_t search:1 > uint32_t reserved:30 > int32_t offset > uint16_t limit > uint16_t length > const uint8_t * pattern > > Now I can understand the relative and search elements are used to > determine search type. > > The offset element is used to set the start search point in packet. > > The limit element is used to set the end search point in packet. > > However, I can=E2=80=99t understand what the pattern element is used to? > > What kind of pointer should I assign to the pattern element? > > Besides, in other rte_flow_item_* structures, there are clearly elements > to let user to set contents and masks. > > How do I do in the structure rte_flow_item_raw? > > Thanks a lot, > > Best Regards, > > --=20 =E5=BC=B5=E6=95=AC=E6=98=8A Frank Chang Email: frank@csie.io https://frankchang.me *High Speed Network Lab * *National Chiao Tung University*