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 4A56EA0096 for ; Thu, 9 May 2019 04:01:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 0583D34F0; Thu, 9 May 2019 04:01:30 +0200 (CEST) Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) by dpdk.org (Postfix) with ESMTP id 478272082 for ; Thu, 9 May 2019 04:01:28 +0200 (CEST) Received: by mail-pl1-f170.google.com with SMTP id x15so302218pln.9 for ; Wed, 08 May 2019 19:01:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csie-io.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:message-id:date :to; bh=P53lwxKrezY10WexTtzFqHYCD4/J+Iu0nxH9dzmMCQU=; b=RVokqgcBxyKLjqYFEdOwk6ynWokv80aoYQj/Tm+FIpkSrkCdJ0K79lGrFiPa/FAvtr MZQfGMbk75/YJuqk5GNzLCtDirSbxkBHWtsmV6gU5oM1L+yz6IV9Fuajj+MBJQUz8WUD CAoaUwapi6BC7ObdOByegfrvFr0ewB3CB8lC9oSjIgzQDHX7eijRRctuVJnl9V3odJJc +LddE8FZXdd/qOw2i0MjTtffgU3tvwlQULcblTKSlKDsPjShHzTRFkJ0OJOqEtfSd2hh 3RLHU+yL8WYLS0Qil93AuXkNR/+SSSkAe78Gizhst3OwfXDyJjQgj2prXeYJTRZWj2lG L7lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:message-id:date:to; bh=P53lwxKrezY10WexTtzFqHYCD4/J+Iu0nxH9dzmMCQU=; b=V2b8TY9jn0J4z5EiU6zzuOrlTa4Rg8hfY+3XfHS6IlHnUxdPdPhQWBzT2OArB6sg9o ntc0Cb+BrB9t5uqPlfSX8n9BBHNW3wJ3RYn38pBYOMuCpSq473ZoXIT6jnc/4kkKqfPm V3V3+TgpUighl3a5Dplu/Pmbmp2Ogm8qUm2zjBhL09tXZJq6hElCv4USp8DAkR6H5ciL Kg2wmfMI/KQKnlEeoRtXZpmizzEnYgCXs5GKH8A3kO6oBMVLvW6iY7vwGf0s9muPdfx9 Rp7N2Ji5zxyJtGx8rse1/9xnWuPfLFS7ZOBFbrxPW33q5oFseZjdlfxVs529zCKd4B+F RI4w== X-Gm-Message-State: APjAAAVi0qwj1Cgj4dYfNn2gWYWcISsGBWxi1H2uhAbbTmSgUnPFImUU +igf1Z3/CYCO7A+3BplDQUNVLWWsPFY= X-Google-Smtp-Source: APXvYqy5pjmURYJmW+9BqFYYQRYtG8B85wPNRO0AmxBZpzZWCF4Dsn70PIn9FdMfNHeDWWEfWtnr4g== X-Received: by 2002:a17:902:322:: with SMTP id 31mr1606123pld.204.1557367286759; Wed, 08 May 2019 19:01:26 -0700 (PDT) Received: from ?IPv6:2001:b400:e3de:a3cb:71e3:f993:503d:794? (2001-b400-e3de-a3cb-71e3-f993-503d-0794.emome-ip6.hinet.net. [2001:b400:e3de:a3cb:71e3:f993:503d:794]) by smtp.gmail.com with ESMTPSA id q1sm542819pgj.44.2019.05.08.19.01.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 May 2019 19:01:25 -0700 (PDT) From: =?utf-8?B?5pu+5oe35oGp?= Mime-Version: 1.0 (1.0) Message-Id: Date: Thu, 9 May 2019 10:01:22 +0800 To: users@dpdk.org X-Mailer: iPhone Mail (16E227) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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,=20 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 l= et user to set contents and masks. How do I do in the structure rte_flow_item_raw? Thanks a lot, Best Regards,