From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by dpdk.org (Postfix) with ESMTP id CA7689A for ; Mon, 6 Jan 2014 16:20:52 +0100 (CET) Received: by mail-we0-f182.google.com with SMTP id q59so16048370wes.13 for ; Mon, 06 Jan 2014 07:22:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=zDPOkPd2rLzuuE4Uk7u8V9k3rX3ai+MPTpvBPit84Fc=; b=CERQcf++3pel7AfwzkcZx7Hh0QtP6RpGiD7Cze6e93dpl9f8MhcG0YZTt9Qhe72qBN XApawp5is4SzzOzJheB0v8oDnb8dQPxvHzW/UCjCD2NKobYGYFOAm+DULHc4B50g4x22 no9ap7X15xhw7Jh3+XfgXNnR9ZqcXtwix4TX5eIxYvXQt/aV9BK5YJ/omcWq7Fq3wcQD 16LYq/2h+m0l9dppgymBCj+UW5OD1XHjpXAmCwXabq0jC41foYchk84VmmScbvx/9FDX U1cdapJ/hVokGO4rR+cOCY8HunJk5wYZEnMWJBoXRPaL45k6FlqFUKUH6EuYj4cgGObt QhiA== X-Gm-Message-State: ALoCoQnHcBSvbxOSDV2Iecx0UpGF77eawNzf93oCnFCnX/cGLEOEsvhzzOyMSo1DcJToOtRTcngg X-Received: by 10.194.60.73 with SMTP id f9mr1854677wjr.65.1389021724039; Mon, 06 Jan 2014 07:22:04 -0800 (PST) Received: from [10.16.0.189] (6wind.net2.nerim.net. [213.41.180.237]) by mx.google.com with ESMTPSA id xl18sm18379666wib.9.2014.01.06.07.22.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 06 Jan 2014 07:22:01 -0800 (PST) Message-ID: <52CACA17.7000202@6wind.com> Date: Mon, 06 Jan 2014 16:21:59 +0100 From: Ivan Boule User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 MIME-Version: 1.0 To: Michael Quicquaro References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] Redirection Table X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jan 2014 15:20:53 -0000 On 12/31/2013 08:45 PM, Michael Quicquaro wrote: > Has anyone used the "port config all reta (hash,queue)" command of testpmd > with any success? > > I haven't found much documentation on it. > > Can someone provide an example on why and how it was used. > > Regards and Happy New Year, > Michael Quicquaro Hi Michael, "RETA" stands for Redirection Table. It is a per-port configurable table of 128 entries that is used by the RSS filtering feature of Intel 1GbE and 10GbE controllers to select the RX queue into which to store a received IP packet. When receiving an IPv4/IPv6 packet, the controller computes a 32-bit hash on: * the source address and the destination address of the IP header of the packet, * the source port and the destination port of the UDP/TCP header, if any. Then, the controller takes the 7 lower bits of the RSS hash as an index into the RETA table to get the RX queue number where to store the packet. The API of the DPDK includes a function that is exported by Poll Mode Drivers to configure RETA entries of a given port. For test purposes, the testpmd application includes the following command "port config X rss reta (hash,queue)[,(hash,queue)]" to configure RETA entries of a port X, with each couple (hash,queue) contains the index of a RETA entry (between 0 and 127 included) and the RX queue number (between 0 and 15) to be stored into that RETA entry. Best regards Ivan -- Ivan Boule 6WIND Development Engineer