From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ob0-f172.google.com (mail-ob0-f172.google.com [209.85.214.172]) by dpdk.org (Postfix) with ESMTP id 06EDF5A80 for ; Fri, 16 Jan 2015 17:42:43 +0100 (CET) Received: by mail-ob0-f172.google.com with SMTP id va8so19904261obc.3 for ; Fri, 16 Jan 2015 08:42:42 -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=XIsobQyVcQwNOd+cbU2lXD19N8QuhsezfWnEg8fuR2w=; b=NDbNo6pCoZUqPXFVqxCGbviaUssyFcIQlmAtRIGJiqGht7BVQqqaHpgPlsa5JVYxZy GpHBGCPSBy96doLvY3nhR+D/3/Xq/WPHyEKFw2LRQl7WHHzy9H4fIO+oz2sB1jRWf+Pp dITNxC8YOAMdbw381wzHafp7jXKkKch1L5rDY= 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=XIsobQyVcQwNOd+cbU2lXD19N8QuhsezfWnEg8fuR2w=; b=fs6YsK2T2tkM1QBAIjnc0F3OTZ3kDFyTKb4VDj46KCAF00CMcom+05RxYRwLwtqlWH 31OLitXEsnHpc7tXfduFL6khmnu07v5Az2+PZ3MZlPPHzC9TNZ7rNo4zfBBiyp6x1/Mx TqQD3GTYwg95GnAbBXAaR4yJuBDI2B0Oslt1JOgJPExz7+grSvRWOVBTiFBSxezLhgYe zMew8thHYroXusg62ANahEs2qPKS9+MorsRTGR/0l5qbBEdMdpAXp/XtiwXBtrVlioc1 zlsX1/Xs3oyy4WDrn1BXasnMROZ1i0dIcSdAl3u0pp0jWH7nt//V6taRKkQnEJ1NzuBT r2bw== X-Gm-Message-State: ALoCoQkGWOzk9D35ja5IR3IucwyhDqX/SYTHbASLZy5JvmxSEak/wkSzptqF+g0+Ku5xVZpVqRC5 MIME-Version: 1.0 X-Received: by 10.182.22.198 with SMTP id g6mr10220664obf.16.1421426562294; Fri, 16 Jan 2015 08:42:42 -0800 (PST) Received: by 10.202.48.79 with HTTP; Fri, 16 Jan 2015 08:42:42 -0800 (PST) In-Reply-To: <20150116105627.GB10516@bricha3-MOBL3> References: <20150114102722.GC10476@bricha3-MOBL3> <20150115144449.GA1880@bricha3-MOBL3> <20150116105627.GB10516@bricha3-MOBL3> Date: Fri, 16 Jan 2015 11:42:42 -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 16:42:43 -0000 Hi Bruce, Perhaps this can be worked around by setting rx_drop_en in the rte_eth_rxconf and using small values for number of rx descripters so that the NIC drops when it is out of RX descriptors for that queue? As long as NIC can still provide q_ipackets/q_errors then this might be faster than doing a RX in software and drop. --Kam On Fri, Jan 16, 2015 at 5:56 AM, Bruce Richardson < bruce.richardson@intel.com> wrote: > On Thu, Jan 15, 2015 at 08:06:52PM -0500, Kamraan Nasim wrote: > > >>> 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 > > > I don't believe there is any other way to drop them from the queue other > than > RX and drop. It's not the most efficient way to do so (since you have to > allocate, > fill and free an mbuf), but it's the only way that an app can do so without > adding new functions to the driver(s). > > /Bruce >