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 20343A0487 for ; Thu, 4 Jul 2019 05:55:02 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 34CA71E20; Thu, 4 Jul 2019 05:55:01 +0200 (CEST) Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.182]) by dpdk.org (Postfix) with ESMTP id 3ADF61BE0 for ; Thu, 4 Jul 2019 05:54:59 +0200 (CEST) Received: by mail-pf1-f182.google.com with SMTP id x15so2285127pfq.0 for ; Wed, 03 Jul 2019 20:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=csie-io.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yMSf1Qf0wkEukAzz5vLzxD/WbBU1x3BtIlihbCCtTFI=; b=Yfs+mWUuvJbhetPb69np4ABoFlq9Gy2FNF/PEsMpTnBnzFVebdYZJTHywUL4vYPPUm 0ksBBsrtRaOCLxySc7Q4S1xzdE++ydZ6oFK+YfxPJVkBM7bdVsHPxuQ3sPi7dNWqxNe9 2EX5bR1upQj1Bj9TBrK+b6+Gvywg9oXT2iOzIGoEuJh1Ht3Sw2CfCLUgD2DYyZ7fMPYE UkqPDmyJh2QjLsAx6tNAWqQf72zTj+hc5uJAChiOiBH0cTU3c3IDTUK1wO349l2q9cRA ewcIymEhBZaDy9NdHUtGNRg2Llg2a0/UGNNY/qFybSoMhAS27UUushulSjp/KYhhJ1YX VsTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=yMSf1Qf0wkEukAzz5vLzxD/WbBU1x3BtIlihbCCtTFI=; b=hVLPxH4s/syogBG8eIUNTk0eHBsru9f1vI/ZXSmjVgAVrMRTb3T3fUigPK9E5WSuL5 OIWTYEaNt/B2fiPW2o/IQ3+WWsRbie0ep01rS5vCeRJXdhKh/AW3bZn1K9M0WphOcGhu jGsz6B4ZMfQGLHaXKl3JxYgh2Hw+VZgmneGFG1lituW2djEmxIQtoYkQxp/D0yuIAOPv 4k8zdoB5JiOUdO6HmzLINqjTjcEvgG7TdrNcAmknOzODOZevHJ9kRALim6p/FaxUCQId jqa8dZAn9xdJer5MCM3rvUdHGCsnowpT53FMXkHG9zXvcNEpeA7BHDkZv6freS/OqJfV kQPQ== X-Gm-Message-State: APjAAAXvtMtHQP5frz2vjUs+kJ5ZpFyuXcRKVkSAT7KfuFiRN+ZeW9fT 35XwQuIXItk0b8oKrDPc9k8JABaLoVw= X-Google-Smtp-Source: APXvYqyv7bZpjNwFXnTwU8b7ZEU+QCK21/Of+iUvu/sQemdzQ+KiiZmNywpjDuprivwc0gbpFfPBIw== X-Received: by 2002:a65:4b8b:: with SMTP id t11mr32404172pgq.130.1562212498307; Wed, 03 Jul 2019 20:54:58 -0700 (PDT) Received: from 2001-b400-e2ac-1a8f-5078-afd1-5d66-f20b.emome-ip6.hinet.net (2001-b400-e2ac-1a8f-5078-afd1-5d66-f20b.emome-ip6.hinet.net. [2001:b400:e2ac:1a8f:5078:afd1:5d66:f20b]) by smtp.gmail.com with ESMTPSA id t4sm9683630pgj.20.2019.07.03.20.54.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 03 Jul 2019 20:54:57 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) From: Huai-En Tseng In-Reply-To: <20190703075110.13d496ee@hermes.lan> Date: Thu, 4 Jul 2019 11:54:50 +0800 Cc: users@dpdk.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <3D036938-873A-44AC-B42F-B63909ADAFF1@csie.io> <20190703075110.13d496ee@hermes.lan> To: Stephen Hemminger X-Mailer: Apple Mail (2.3445.104.11) 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" Hi Stephen, Thanks for reply. I have the impression that rte flow raw API only support a few Intel = NICs and is only in physical function not virtual function. Is there other method to match raw byte string and direct to specific = receive queue, there are only 2 bytes can be accessed on X520 NIC. Or should I just buy a Intel 700 series NIC? By the way, what is flex payload, is this a kind of feature only on = Intel 700 series NICs? Thanks a lot. > Stephen Hemminger =E6=96=BC = 2019=E5=B9=B47=E6=9C=883=E6=97=A5 =E4=B8=8B=E5=8D=8810:51 =E5=AF=AB=E9=81=93= =EF=BC=9A >=20 > On Wed, 3 Jul 2019 16:05:34 +0800 > Huai-En Tseng wrote: >=20 >> Hi,=20 >>=20 >> 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. >>=20 >> 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. >>=20 >> 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. >>=20 >> Second, I assume the fdir API is a smaller set which is included the = flex filter API. >>=20 >> Third, flex payload is kind of flex filter API application. >>=20 >> Is all my assumption right? >>=20 >> And is there any full support hardware list? >>=20 >> Last question, is there any method that I can direct specific packets = to specific receive queue? >>=20 >> I want to direct pppoe packets to specific receive queue.=20 >>=20 >> 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. >>=20 >> 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. >>=20 >> Thanks a lot. >=20 > Did you know that flex filter and fdir are older API's that were only = supported on a few Intel NIC's. >=20 >=20 > Use rte_flow instead.