From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7C606A0548 for ; Sat, 13 Feb 2021 19:41:23 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E591B40FDF; Sat, 13 Feb 2021 19:41:22 +0100 (CET) Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.174]) by mails.dpdk.org (Postfix) with ESMTP id 78F234068F for ; Sat, 13 Feb 2021 19:41:21 +0100 (CET) Received: by mail-pg1-f174.google.com with SMTP id b21so1800393pgk.7 for ; Sat, 13 Feb 2021 10:41:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csie-io.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=PVDK3IuP0NYMPMewFnxeLP1WRbbkxWhljDgtumvRq1s=; b=kXH/fITQAxwPAib9GJGuXQGva1Wde0l4mjjlE+R+W8qowhCuDb0QVzi8SYQITv9qMM LxxviMF287H7knbKKFUwtealpY16yAGOUafv9rumhLRmO5Bk3oN51RbJ6mYHLQXoJYk9 1O/Lzrj1zJwobhNJjw/pKEuYRoADU2nwQoDf2uAko9xxaCgbyuvDmz7uYszO9OwrPSC5 lE4pqt+piR3oAdSkFKocKbz8owCRTcVzeCXqZOhQyvnMKSytutvUWdYcqpPl6BZleoSv Bk95Ife/IT2fhW2A8vF0VMZJFz3f2ToKoVxUIqcw7UIz2igG2RTXeWgz5cHhV8aj9f6w YiJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=PVDK3IuP0NYMPMewFnxeLP1WRbbkxWhljDgtumvRq1s=; b=Y2O7fn7lB1HhY7Zr1oshyCkeeEFVByMICIGyvp9aspFNVgtTemoM8wMOpv+pduhBsu gziVBRnux8dss0mIkaZjGbKB3tS9GAoM11fz3GeH/4bsIs/R09fw5lW0t1/44rCaGMrB ZsouS4mZflIxbhdzS2qlfLtlF4kB43WeFoqLJkIsUiSWeaAVDGn85RKJSa+scri8fXY/ OqHpW3d6Qm6K+aVxhPSmxwTEiq4aX55KhvaDy56EHapCyFjiYvfGXeuWwb2uxy0a1Ywy jNdyrynli2NZX4ZGLEEZdiGK7a3Vx089Pm9vAit6aXk6845MgqB83+wQLcEVZjyD5GbB J9rQ== X-Gm-Message-State: AOAM5304+RjzmoVm6ccnJ7FwUVBl6YEmILw8HvujKHFw0HhAaSv0XbLx N52xsNFJczLdABP0EhnDBqWIMSMTeterQs3a X-Google-Smtp-Source: ABdhPJxjYRqQIQ5d4MDTQKzVf79jqRk1nW5PnMcecKRnIHBP5kCdyq6RL7YBzgtsqcCPKg/FfwCSaQ== X-Received: by 2002:a62:d453:0:b029:1d6:587b:5d31 with SMTP id u19-20020a62d4530000b02901d6587b5d31mr8311809pfl.58.1613241679902; Sat, 13 Feb 2021 10:41:19 -0800 (PST) Received: from [192.168.42.10] (1-163-93-119.dynamic-ip.hinet.net. [1.163.93.119]) by smtp.gmail.com with ESMTPSA id y67sm13027929pfb.71.2021.02.13.10.41.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Feb 2021 10:41:19 -0800 (PST) From: Huai-En Tseng Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Message-Id: Date: Sun, 14 Feb 2021 02:41:17 +0800 To: users@dpdk.org X-Mailer: Apple Mail (2.3654.60.0.2.21) Subject: [dpdk-users] i40e rte_flow API usage X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 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 all,=20 Here are 3 questions I want to ask. Q1. I try to create a rte_flow to redirect all vlan tagged 2 pkts to = another receive queue in my DPDK application. Despite the flow is created with no error, the flow does not work in my = application. My NIC is Intel X710 and I already tried testpmd with command and it = works: flow create 0 ingress pattern eth / vlan tci is 2 / end actions queue = index 2 / end Here is my code for rte_flow creation: memset(pattern,0,sizeof(pattern)); memset(action,0,sizeof(action)); memset(&attr,0,sizeof(struct rte_flow_attr)); attr.ingress =3D 1; action[0].type =3D RTE_FLOW_ACTION_TYPE_QUEUE; action[0].conf =3D &queue; action[1].type =3D RTE_FLOW_ACTION_TYPE_END; memset(ð_spec, 0, sizeof(struct rte_flow_item_eth)); memset(ð_mask, 0, sizeof(struct rte_flow_item_eth)); eth_spec.type =3D rte_cpu_to_be_16(0x8100); eth_mask.type =3D 0xffff; pattern[0].type =3D RTE_FLOW_ITEM_TYPE_ETH; pattern[0].spec =3D ð_spec; pattern[0].mask =3D ð_mask; memset(&vlan_spec,0,sizeof(struct rte_flow_item_vlan)); memset(&vlan_mask,0,sizeof(struct rte_flow_item_vlan)); vlan_spec.tci =3D 2; vlan_mask.tci =3D 0xffff; pattern[1].type =3D RTE_FLOW_ITEM_TYPE_VLAN; pattern[1].spec =3D &vlan_spec; pattern[1].mask =3D &vlan_mask; pattern[2].type =3D RTE_FLOW_ITEM_TYPE_END; Could any expert here help me find which part I miss? BTW the DPDK version I use is 21.02. Q2. Is there any method I can just redirector tagged packet to another = rx queue? I just try to use above code and replace pattern[1] with = RTE_FLOW_ITEM_TYPE_END but it does not work either. Q3. I just see pppoe item structure in rte_flow.h. Does that mean DPDK support pppoe flow redirector in this current = version without using DDP?=20 Thanks. BR, Huai-En