From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) by dpdk.org (Postfix) with ESMTP id 7C443532D for ; Tue, 11 Jun 2013 06:44:04 +0200 (CEST) Received: by mail-ie0-f169.google.com with SMTP id 10so5005548ied.28 for ; Mon, 10 Jun 2013 21:44:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AVOwfHkwMjQ7oTRbGvJeD791UWo8/ZdkuEZrV+sbq3E=; b=00jOojHLfJfJ/uNM+uDInbqUjO79I4q4wnVvHFfSepsYJ0f424PTXHqlNV0IuafZS1 g3rtkgIy6Q961ZoJ9uEhTFiy35I8b8P5IEX5W1VXny8pzxWK3n7aBkRglIQYPOBKX0Co aJX8O2bL+6z88TJZbQ78KPWV9YOL1Slz0a0bHib24QhEWeNe+73MLSxn6fxLV8t8VXGN 0r+ElDi4JxbWoX9stilrNjGj7k0k+CIdVFaEKU7unaC4MrlTOf4UesksbONDGze1btTO jByejbJhJ0FEX0nXM6QHmw1TKJThmV56vYFKNrguuCdkeZPMdeEqAf6gBU5kJxRBGFZr MoGg== MIME-Version: 1.0 X-Received: by 10.50.109.231 with SMTP id hv7mr44597igb.103.1370925853595; Mon, 10 Jun 2013 21:44:13 -0700 (PDT) Received: by 10.42.44.199 with HTTP; Mon, 10 Jun 2013 21:44:13 -0700 (PDT) In-Reply-To: <201306101118.10282.thomas.monjalon@6wind.com> References: <201306101118.10282.thomas.monjalon@6wind.com> Date: Tue, 11 Jun 2013 07:44:13 +0300 Message-ID: From: Gal Sagie To: Thomas Monjalon Content-Type: multipart/alternative; boundary=089e013a1dee84ad0b04ded98c2c Cc: dev@dpdk.org Subject: Re: [dpdk-dev] L3/L4 Filters configuration 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: Tue, 11 Jun 2013 04:44:04 -0000 --089e013a1dee84ad0b04ded98c2c Content-Type: text/plain; charset=ISO-8859-1 Hello Thomas, thank you for the answer ,I have some follow up questions, I am trying to understand the filtering mechanism better: 1) the FDIR allows me to direct specific filter to a specific RX queue, what is happening to all the other traffic, is it dropped (or sent to the drop queue defined in the fdir struct)? for example what happens to it if i also define another queue and RSS enabled. 2) I defined two queues and two signature filters, lets assume i send a packet that can be matched by both, is the packet duplicated or only the first registered filter match it? What i would like to achieve is the following scenario => Have two filters and 3 queues, each filter associates with a unique queue and all traffic that is filtered going to that queue (this queue receive only this traffic) and the third queue for all the non matched traffic Can this be done and how? Thanks for your help! On Mon, Jun 10, 2013 at 12:18 PM, Thomas Monjalon wrote: > Hello, > > 09/06/2013 15:29, Gal Sagie : > > Is there any chance to see an example of how to configure L3/L4 filters > per > > port in the NIC ? > > also is there any way to control the queue number which a certain RSS > > hashing result map to (would love to see an example of that as well) ? > > You should have a look to the fdir functions into testpmd's directory: > grep -r fdir app/test-pmd > > -- > Thomas > -- Best Regards , The G. --089e013a1dee84ad0b04ded98c2c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hello Thomas, thank you for the answer ,I have some follow= up questions, I am trying to understand the filtering mechanism better:
1) the FDIR allows me to direct specific filter to a specific RX queue= , what is happening to all the other traffic, is it dropped (or sent to the= drop queue defined in the fdir struct)?
=A0=A0=A0 for example what happens to it if i also define another queue and= RSS enabled.

2) I defined two queues and two signature filters, let= s assume i send a packet that can be matched by both, is the packet duplica= ted or
=A0=A0 only the first registered filter match it?

What i would like = to achieve is the following scenario =3D>

Have two filters and 3 = queues, each filter associates with a unique queue and all traffic that is = filtered going to that queue (this queue receive only this traffic) and the= third queue for all the non matched traffic
Can this be done and how?

Thanks for your=A0 help!

On Mon, Jun 10, 2013 at 12:18 PM, Thomas Monjalon <thomas.monjalon@6wind.com> wrote:
Hello,

09/06/2013 15:29, Gal Sagie :
> Is there any chance to see an example of how to conf= igure L3/L4 filters per
> port in the NIC ?
> also is there any way to control the queue number which a certain RSS<= br> > hashing result map to (would love to see an example of that as well) ?=

You should have a look to the fdir functions into testpmd's direc= tory:
=A0 =A0 =A0 =A0 grep -r fdir app/test-pmd

--
Thomas



--
Best Rega= rds ,

The G.=20
--089e013a1dee84ad0b04ded98c2c--