From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EC96FA034C for ; Tue, 18 Aug 2020 14:41:06 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D00EB2B94; Tue, 18 Aug 2020 14:41:06 +0200 (CEST) Received: from delivery.mailspamprotection.com (delivery.mailspamprotection.com [146.66.121.87]) by dpdk.org (Postfix) with ESMTP id 4E7502B91 for ; Tue, 18 Aug 2020 14:41:05 +0200 (CEST) Received: from 72.204.214.35.bc.googleusercontent.com ([35.214.204.72] helo=es18.siteground.eu) by se23.mailspamprotection.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1k80uy-000H5R-BR; Tue, 18 Aug 2020 07:41:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=filipjaniszewski.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Sender: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=M2H7RXbRbkJ/nAD1G58b1vACDoNl4RqCMKw7ZjPZCEY=; b=ixKpA0WxN5otryZR/GpMufJuWg Qq2GnPO1/eeMwKK/jf+27qpjQe/LZWCCSTrBN96Y5iAxd4RT70Yhz2d8LhlRUqsDP5fq2GxEBPd3x 0ATno/J1wIyIqPvkt4hKJfEa4NsnVcV/f94hGHTAoHXn4MSZn3p0WuHBVxIaFi3+n4Km2cVGbcrPS OQeQ4lXGq+VqC7+kRvPpbYw7BNwjLd7Nscimld4v3UOb96pETEpTmtCZLIcN2TMnXylXOIKliY648 GJ7Cx8Q3lPRWcQB86hMWubRONtIcxtgT+DkBE+N0rBYj32C7/Oh8XNGx6zI/96PoDxk4pbiebL9tz SLRTXM2A==; Received: from [89.64.148.179] (port=34958 helo=localhost.localdomain) by es18.siteground.eu with esmtpsa tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.90devstart-1178-b07e68e5-XX) (envelope-from ) id 1k80uw-0004mD-Uj; Tue, 18 Aug 2020 14:40:42 +0200 To: Tom Barbette , "users@dpdk.org" References: <9a39c4d5-8248-5223-df10-1c25fa1331c0@filipjaniszewski.com> <8c8034d8-4cd5-bd0b-0958-14d08f5ae6e3@kth.se> From: Filip Janiszewski Message-ID: <2f9d3b69-4fef-b179-6510-2d2d4c23ec02@filipjaniszewski.com> Date: Tue, 18 Aug 2020 14:40:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <8c8034d8-4cd5-bd0b-0958-14d08f5ae6e3@kth.se> Content-Type: text/plain; charset=iso-8859-15 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: 35.214.204.72 X-SpamExperts-Domain: es18.siteground.eu X-SpamExperts-Username: 35.214.204.72 Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=35.214.204.72@es18.siteground.eu X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.23) X-Recommended-Action: accept X-Filter-ID: Mvzo4OR0dZXEDF/gcnlw0Uc1Z+hCSaILZIw3vLzlsGSpSDasLI4SayDByyq9LIhVdEMqqLFYYN+W VcnzPWJywETNWdUk1Ol2OGx3IfrIJKyP9eGNFz9TW9u+Jt8z2T3KvY2jVFWQfFeu+5dFXby93o/w udTyfNATXcaUWleDawfpzC+j93kqFixic/GGvpgbHedRSE93uDxnADSUk6PYp9fwYErb4UK8xFf9 7EoF4gw/UJCMH7m8eS1ms/ugYQLuls3pNwdaZyHgjdfqegHcQETZLhIpYRzCGFrhtWiCAvXDenQL ELqxC4ob28h1UNRh1nWPOnBkf4IGA0FokCs7xsCozJiPhkKcmPm/MRoYCz3t6JtTTglxNZAq/da6 Ra+kXqjmcbX4yaHaUpl/rQnUujwX8glEDxkXwLkCckHFIUOu1WaiZswnh7amfkLTIEwd6LkGFt94 dBx3TpAokA4UmbCGVypsM2xk+Fb6Uy9BG+eG09xLM7yGwGwdmctNXf+yF45HU3lWdqhlsf8B0aV+ vL3Or8mN7chAnlpECmTvLwDcItXNVtxTOVykeSEx5zSLw5l3uZFrvDvy5OIkicbIMi+EBctHgf4r D/N3vbhyxAXh0zyP68ySEW4aLV9ERAoueidq3iNRzekPrC7Y4CpEtUXtQhr43M8eCrxQqJFh3M5a JDwSGW2RjqJ2ZimPQm0DFH069urP+T0mXHxFNmQkKyk4xAm9D8KTeKJT7gNACPfrpX5tbW2x+DbE 8DYItjA39TeWSJTzwviyvVQEosVBnFegW+eU6cSQVmeZiPiXhR1uDyT/WcqhQttJo3tb2wjwB5hQ 6nsDvccjqgmDvD9Wh/WXMhF/IYkxojl38DpJDQ9fS9s5XUYLi1ZJ0wR9fSpmT74ZEqLd8l9FM+v8 +4kcTUolxPbCFJYSbnQR5+/eQQhXBg3AmeSvYtZxyvuZch8STcwyJUzFGfI4wIpfBoEQH3bRmAKx ZZOP+wyeJl0vJgo6jFoAemPOSKCrFRjeQEAzXPWlFdaGOH191uXjgjQN/Wfp4/KhWJCVKR/3JSKU fdCLHJSMzzRqxvsq4Rjythv5xGEEFrHycVaMksc0lW2vFVoUFCp3ieI8O9oFIHlCbLQ1Q2yTITNE qokCKaRTOpRiwI+Su78ACPMi6R8F+k8VABpBWEuYxu4gh2g8uA6s+0d49DjiWowOnKvI8aF4jzAu m5K7ofIBKmUnQfav9lv7pxkPlt5z6biQ5+57PUqmpK4= X-Report-Abuse-To: spam@quarantine1.mailspamprotection.com Subject: Re: [dpdk-users] Round-robin packet distribution 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" Hi, We had a look at that, and decided that it might be a bit too complicated to implement in our SW and will not work in a performant way as we might wish, ideally we're looking for a simple approach even if not ideal.. So, I was wondering if we can get at least a "fair" distribution (no round robin) using rte flow? And BTW, is it even possible to access the checksum from this API using for example the pattern matching with an offset that points to the proper byte location in the packet? (It seems it can't be done without modification to the driver..) Thanks Il 7/25/20 10:28 AM, Tom Barbette ha scritto: > Hi Filip, > > This is not possible, but you may use the idea of Sprayer > (http://www.gta.ufrj.br/ftp/gta/TechReports/SCC18d.pdf) to dispatch > packets randomly (use RSS on the checksum). > > However, in our paper RSS++ > (https://www.diva-portal.org/smash/get/diva2:1371780/FULLTEXT01.pdf) we > show it's nearly always a bad idea because you'll have to share state, > and even for "stateless" function, that leads to a very bad locality in > a firewall as the same rules have to be fetched to L1 to all cores at > the same time when you receive a burst of similar packets. > > Tom > > Le 24/07/2020 à 12:05, Filip Janiszewski a écrit : >> Hi, >> >> Is there a way in DPDK to configure the NIC to distribute the incoming >> packets to multiple queues in a round robin fashion? Without taking into >> account the payload/headers or type of packet, just plain round robin >> distribution to multiple queues. >> >> I'm struggling to obtain a fair mechanism using RSS, perhaps the >> rte_flow API can do the trick? Any other suggestion? >> >> Thanks >> -- BR, Filip +48 666 369 823