From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f171.google.com (mail-ob0-f171.google.com [209.85.214.171]) by dpdk.org (Postfix) with ESMTP id 20F6F58F7 for ; Fri, 16 Jan 2015 02:06:53 +0100 (CET) Received: by mail-ob0-f171.google.com with SMTP id va2so6692214obc.2 for ; Thu, 15 Jan 2015 17:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sidebandnetworks.com; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=AgIf8PgAK0mK0swNmjQTPdIv+YoAds0Yoe62bxdVbDs=; b=OEjuInisP5n/9a5voAWV/WfTRjwumWNXjqgKIaqY/V/sfnUre153bk1b88fDhn9ftM bZLwaLCv8CUPIz/ET1+MIDskU5yut7BdndDZdZNC9/3YmEluiPxSP3AwO97L99ERpKx2 woQEh9bOOgvT+OQSb4n5DxMgYtrYTbDfXKSlI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=AgIf8PgAK0mK0swNmjQTPdIv+YoAds0Yoe62bxdVbDs=; b=DU5vm/Uzhg1pxtk4ziwEK1IC3hpSRPSEsfyFzrpl68eqjYMTuRbjXUHewJqBdO7a/F HcYBVh4MfTbf956QmztGztrlcSlPWT4bglMY84FH5YEAXr/jVr9gVJfJBnTCL4mVeX0q FTwVayt5jLP/AcMo6Z2KuG9rrc18coQFXcr5YgcQlBzP86ExYAzM20RwO7ir9VruCthE +csI/rh8hMiWwySBTIfv4sIDXdiZmWBUjvzlMZm7b8SKTGSq3dONs/rPGgC1Jt0Z83Cx /YJajlgL1zDkOYwcW1utGVmREstsmejBW1ncV7Hx8Ig9XsrD5HZaNp0FekvIlcR1AyDx rEIg== X-Gm-Message-State: ALoCoQl+43+IhbhQ+yChnjwUneoaJXfU5YTpnW6YebgY52Si5fCxwDsbaJ2AWs/Glg+TnofFKEx9 MIME-Version: 1.0 X-Received: by 10.182.56.70 with SMTP id y6mr7781636obp.55.1421370412377; Thu, 15 Jan 2015 17:06:52 -0800 (PST) Received: by 10.202.48.79 with HTTP; Thu, 15 Jan 2015 17:06:52 -0800 (PST) In-Reply-To: <20150115144449.GA1880@bricha3-MOBL3> References: <20150114102722.GC10476@bricha3-MOBL3> <20150115144449.GA1880@bricha3-MOBL3> Date: Thu, 15 Jan 2015 20:06:52 -0500 Message-ID: From: Kamraan Nasim To: Bruce Richardson Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Cc: dev@dpdk.org, Ean Houts , Jun Du Subject: Re: [dpdk-dev] Does I210 NIC support Flow director filters? 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: Fri, 16 Jan 2015 01:06:53 -0000 >>> update the RSS RETA table so that traffic doesn't get sent >> to that queue via RSS. Is that what you are asking? Thanks Bruce, that's exactly it. Basically each filter will forward traffic to a unique RSS queue which can allow me to calculate filter match statistics for that queue(or filter). At that point I would like to drop the filtered packet. Is there any way to drop the filtered packet in the RSS queue without doing a rte_eth_rx_burst() and dropping it then? --Kam On Thu, Jan 15, 2015 at 9:44 AM, Bruce Richardson < bruce.richardson@intel.com> wrote: > On Wed, Jan 14, 2015 at 04:59:17PM -0500, Kamraan Nasim wrote: > > Many thanks Helin and Bruce :) > > > > Now if 1Gb NICs don't support fdir filters then im wondering how would we > > count the number of packets matching a filter. > > > > Regular 5tuple filters don't have any stats similar to "fdirmatch"(in the > > rte_eth_stats > struct). > > One way I can think of is to use regular ibytes/ipackets stats for the > > queue to which the packets are being redirected in the 5tuple filter but > > this seems a bit hacky + there is no way to distinguish this packet > > throughput from the regular traffic that the NIC is forwarding to that > > specific queue. > > > > Is there a way to EXCLUSIVELY bind a 5tuple filter to an RSS queue so > that > > only matched traffic is forwarded there? > > > > > > --Kam > > > > What you can do is use a 5-tuple filter to send traffic to a queue. What > you > can also do is update the RSS RETA table so that traffic doesn't get sent > to that queue via RSS. Is that what you are asking? > > /Bruce > > > On Wed, Jan 14, 2015 at 5:27 AM, Bruce Richardson < > > bruce.richardson@intel.com> wrote: > > > > > On Tue, Jan 13, 2015 at 11:21:08PM -0500, Kamraan Nasim wrote: > > > > Hello, > > > > > > > > I've been using DPDK fdir filter APIs for 82599 NIC(Niantic) and they > > > work > > > > very well. > > > > > > > > Was wondering if I these could also be used for I210, 1Gbps NICs? > > > > > > > > The other option is to use 5tuple > filters(rte_eth_dev_add_5tuple_filter > > > > < > > > > http://dpdk.org/doc/api/rte__ethdev_8h.html#aaa28adafa65a4f47d4aeceaf1b08381b > > > >), > > > > however these do not support IPv6 yet. > > > > > > > > > > > > Have people in the community had any luck with configuring L3/L4 > hardware > > > > filters for the I210 NIC? > > > > > > > > Thanks, > > > > Kam > > > > > > Flow director filters are not supported for 1G NICs. Sorry. > > > > > > /Bruce > > > >