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 6C09BA0487 for ; Wed, 3 Jul 2019 16:51:22 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8280F1BE0; Wed, 3 Jul 2019 16:51:20 +0200 (CEST) Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) by dpdk.org (Postfix) with ESMTP id 5BD74F04 for ; Wed, 3 Jul 2019 16:51:18 +0200 (CEST) Received: by mail-pf1-f176.google.com with SMTP id m30so1397205pff.8 for ; Wed, 03 Jul 2019 07:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cEY9dId2s2kDkbtjc0xpZXkUrvQtw1eXeFOdtnYhcDc=; b=jpwIZuo4Zkeox60+yHqEZsbc30AKNjXS/p1aaCgYDcw7yOAzNryZvSoxBF05fJOGzY m5uYakqI83ZqO/v7LciodibTiFUHvBX8pz0Spcuu1BJcCuRwP1/y5UD5mxrbuUO0D5Qb GuFSWxV9aIGIVccp/yJkabUSE4CUfgFnCrVCJtp0ALATYIJX9ehpDm+1AGexrzTfilP8 wQjtb6F6/fnXnJ+IDllp/nidg36yjCJn2k/t5o1P3pL1Ja7tZjNkpSHJiejb67YGpCKQ 7VggUpd5ZpfRs2A7WzOC4TIzsgELVfp9qgtJW5wjtYD8N6aLeayPyPv6OLZEbY/HeHaa lRNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cEY9dId2s2kDkbtjc0xpZXkUrvQtw1eXeFOdtnYhcDc=; b=kFVxg5CXKl9fu3ShLlPfcUwjTzPN5FcOnjZZ+C5SqexzGQAaUyUxfxty98C4ko2/cW SG+fcUjDdWa8pQcX7B7tX4YvBS/A4MW2NrP3CL6x5hhuokeYZk/rTXptZ3sGsuTk0fTi hg8jklfAxA4StPh4cXpGKD+Dij3jQMJecyCqdUj8NM+wkiWZ8fwK4DVakXxgY3Kbwto2 /XeTw2UVJ04P1lCyUeQ/lYmdFlzHw05F1ep73tshlW3RyfHGZd7UUqjqDwU1Sk88s09g JteKW8fN9dRvVOAX624hy93o+bkcpp74lv4Dq9JdhJXMTZAAw9mGhWZNLyWsKDTokhvg ucFw== X-Gm-Message-State: APjAAAWCuwo6MveAPOWqVg5T222xibrA1NmvnrQWXmgQOueH1zRqEpM8 zifvkbXIjRv57jESjcpwgbhLGg== X-Google-Smtp-Source: APXvYqzE8xfm53R1SkMOL4nucW2ujXNsB8FKkskYe+6SRNrf130E7bE1PkGpbuUJFRlEHW9g34GiPA== X-Received: by 2002:a17:90a:bb0c:: with SMTP id u12mr13498860pjr.132.1562165477622; Wed, 03 Jul 2019 07:51:17 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id p65sm2616055pfp.58.2019.07.03.07.51.17 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 03 Jul 2019 07:51:17 -0700 (PDT) Date: Wed, 3 Jul 2019 07:51:10 -0700 From: Stephen Hemminger To: Huai-En Tseng Cc: users@dpdk.org Message-ID: <20190703075110.13d496ee@hermes.lan> In-Reply-To: <3D036938-873A-44AC-B42F-B63909ADAFF1@csie.io> References: <3D036938-873A-44AC-B42F-B63909ADAFF1@csie.io> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] direct specific packets to specific receive queue 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" On Wed, 3 Jul 2019 16:05:34 +0800 Huai-En Tseng wrote: > Hi, > > I suppose below three things to understand what difference between flex filter, fdir, flex payload and how to use them by tracing source code in testpmd. > > First, while I use flex filter API with rte_eth_dev_filter_ctrl(), RTE_ETH_FILTER_FLEXIBLE and struct rte_eth_flex_filter on my CX4 and X520 its not working. > > And I find that in dpdk NIC driver there are only a little NICs like igb NIC support it, so I assume flex filter does not support most NICs such as i40e, ixgbe, ixgbevf and mlx5. > > Second, I assume the fdir API is a smaller set which is included the flex filter API. > > Third, flex payload is kind of flex filter API application. > > Is all my assumption right? > > And is there any full support hardware list? > > Last question, is there any method that I can direct specific packets to specific receive queue? > > I want to direct pppoe packets to specific receive queue. > > I have tried the raw fdir API but it has limited function in X520, and testpmd flex filter is not working on my CX4 and X520 too. > > I also find there is a feature DDP in Intel 700 series NICs but it seems only detects pppoe header but I need to detect ppp header in pppoe header. > > Thanks a lot. Did you know that flex filter and fdir are older API's that were only supported on a few Intel NIC's. Use rte_flow instead.