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 BC3FCA05D3 for ; Sat, 25 May 2019 16:54:32 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 09BC7F11; Sat, 25 May 2019 16:54:32 +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 80DBFA49 for ; Sat, 25 May 2019 16:54:30 +0200 (CEST) Received: by mail-pf1-f182.google.com with SMTP id u17so7044230pfn.7 for ; Sat, 25 May 2019 07:54:30 -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=OTOrV5DRplLKADzUbgwiKvN7OCIpNzXjltxyg2exPnA=; b=iGz9W6v6RcQr/l6ig1vuIcZ8nTEq2Kfo2E7nhKLyOVzuv0wD6XqO5jTp2MVGXgQSC8 vjbkxi6Cw9wFKOYWbYkStoEuzccve0wAZ9BFe5vaTM35u92VZxIhYNgh9LJg+PATmpUI F9J92x/ZwthEtycHZo7M4O67E4MSVyKR6MjPXJ6n00lJ6u7gurHfpJ1ZIeI2rE6RuKsP y0g731IvZMKo3yQ9gAbE99cZMpE73Ts43uvTjPLjnuwYmsJ6vyfByIq/63bP0EEGdHUa ivpecMKIT+A9qC6ySEEkQErMExRnVgzOV2TXJPgGar6ObXwEOTfbow02UX5txdU/cfSd 3nqw== 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=OTOrV5DRplLKADzUbgwiKvN7OCIpNzXjltxyg2exPnA=; b=VlZII/dryn+tM7YRw/GGXOfj8t9Owj5EsLcToObtjL9dAHtPU/y+OUKezENdxCHXxD zaIR/OoCRxtj0FFOtLeDHGS3vtQHYmcY8c30BuAPuO7KtOZO0tseEAoi0OiD6lX6IteB ZeqlTC2gydWOQp43sUP+Dv7vkUWp1tU8aMONUPSyBtLkAI7VL9H6DNDvYlV7YIGaS0n0 5txi+/cmWpzgfYBoDZqMHi6ZGUWcHMAl6NPfvC9MfHa8AvQ9oFdSBAn/NRFOGxtsffGI tWz2MSZEE93Ru8ZMIpjjau4Gddjc3iPWjNkabI1oynt1dW7Jf7/TmTlEJEohMMIeZ5p0 PFhA== X-Gm-Message-State: APjAAAW8pWAwZy18gV0CYmVupBsJP6U1pHWfX3xUzxpW0JfIujZNECu0 dwPFe9+kVION72gzsXsZWWFO6Q== X-Google-Smtp-Source: APXvYqz2CG2vr40gtRbZsMvpI+94N/oaAxhfu9kkXfKPPO7b8KSu2SMFuqc7T+sjsoc5JMwjv6sKzg== X-Received: by 2002:a17:90a:bf01:: with SMTP id c1mr16758984pjs.78.1558796069418; Sat, 25 May 2019 07:54:29 -0700 (PDT) Received: from hermes.lan (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id j72sm5775799pje.12.2019.05.25.07.54.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 May 2019 07:54:29 -0700 (PDT) Date: Sat, 25 May 2019 07:54:27 -0700 From: Stephen Hemminger To: "ZhangHaisen" Cc: Message-ID: <20190525075427.2e583989@hermes.lan> In-Reply-To: <143901d512a3$2aad5730$80080590$@bigo.sg> References: <143901d512a3$2aad5730$80080590$@bigo.sg> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-users] flow director ATR mode 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 Sat, 25 May 2019 10:40:07 +0800 "ZhangHaisen" wrote: > Hi, > > I have some question about flow director ATR mode: > > 1. Does DPDK support ATR mode which is described in > https://software.intel.com/en-us/articles/setting-up-intel-ethernet-flow-dir > ector as : In ATR mode, Intel Ethernet FD uses fields from the outgoing > packets in the Tx queues to populate the 8K-entry Perfect-Match filter > table. > > 2. If yes , how to config the eth dev with the DPDK APIs, such as > rte_eth_dev_configure(),rte_eth_tx_queue_setup(),rte_eth_rx_queue_setup()? > Is there any example code? > > > > Thanks a lot, > > Zhanghaisen The rte_flow API is what you want. https://doc.dpdk.org/guides/prog_guide/rte_flow.html