From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30069.outbound.protection.outlook.com [40.107.3.69]) by dpdk.org (Postfix) with ESMTP id 32E92293B for ; Thu, 7 Dec 2017 08:43:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=verint.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D4XrnE4ocFVurKoyAJxp/lald2OC2ClNZCoNDGbvkdw=; b=erWckPo3xzr+UV2PUxPtmUDt4taHa+gS8V0TICGTxm4xMuUallly5XLsurXgLMsXv2BXNqvbQX8S6MQ79I+LVg4h+3jpJLQcN8VdwDcOnB0EUCMA9vMgwqSarG2TlNIn2/6RSr0U4CuaYNG/z8TaGAFyrFl4jUJxsNzq1uSIexU= Received: from VI1PR0102CA0016.eurprd01.prod.exchangelabs.com (2603:10a6:802::29) by AM0PR0102MB3411.eurprd01.prod.exchangelabs.com (2603:10a6:208:2::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 7 Dec 2017 07:43:25 +0000 Received: from VE1EUR01FT005.eop-EUR01.prod.protection.outlook.com (2a01:111:f400:7e01::204) by VI1PR0102CA0016.outlook.office365.com (2603:10a6:802::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Thu, 7 Dec 2017 07:43:25 +0000 Authentication-Results: spf=pass (sender IP is 193.27.93.18) smtp.mailfrom=verint.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=bestguesspass action=none header.from=verint.com; Received-SPF: Pass (protection.outlook.com: domain of verint.com designates 193.27.93.18 as permitted sender) receiver=protection.outlook.com; client-ip=193.27.93.18; helo=mail.verint.com; Received: from mail.verint.com (193.27.93.18) by VE1EUR01FT005.mail.protection.outlook.com (10.152.2.142) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.282.5 via Frontend Transport; Thu, 7 Dec 2017 07:43:25 +0000 Received: from TLVCAS3.Verint.Corp.Verintsystems.com (10.61.241.147) by TLVCAS2.verint.corp.verintsystems.com (10.61.241.145) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 7 Dec 2017 09:43:24 +0200 Received: from TLVMBX1.Verint.Corp.Verintsystems.com ([169.254.2.245]) by TLVCAS3.verint.corp.verintsystems.com ([::1]) with mapi id 14.03.0319.002; Thu, 7 Dec 2017 09:43:24 +0200 From: "Dorsett, Michal" To: Stephen Hemminger CC: "users@dpdk.org" , "Maimon, Royi" , "Heijmans, Merav" Thread-Topic: [dpdk-users] Round-robin instead of RSS Thread-Index: AdNuDIDHMg2ZJ0tcS1edzH1JssI6av//9+aA//9YLhCAAkK4gP//UY4g Date: Thu, 7 Dec 2017 07:43:24 +0000 Message-ID: References: <20171205143431.79d47d61@xeon-e3> <20171206150511.75ba1d12@xeon-e3> In-Reply-To: <20171206150511.75ba1d12@xeon-e3> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.61.241.157] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:193.27.93.18; IPV:CAL; SCL:-1; CTRY:IL; EFV:NLI; SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(2980300002)(438002)(13464003)(45984002)(199004)(189003)(24454002)(47776003)(7736002)(305945005)(107886003)(9686003)(229853002)(356003)(6246003)(46406003)(55846006)(6116002)(23726003)(106466001)(102836003)(4326008)(33656002)(72206003)(3846002)(26826003)(478600001)(69596002)(8676002)(6916009)(2950100002)(53546010)(8746002)(106002)(93886005)(8936002)(2920100001)(54906003)(50466002)(76176011)(86362001)(5660300001)(81166006)(81156014)(97756001)(2906002)(7696005)(316002)(2900100001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0102MB3411; H:mail.verint.com; FPR:; SPF:Pass; PTR:bzq-193.27.93-18.bgp.bezeqint.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; VE1EUR01FT005; 1:gSHG1GsEQfOfIbQdmlBN6D9X1FoCnY8EYtQ9470PMhiVLqE1GPyPg5uM93rMtFbc+38fhyy5ahLCvJads8VPzp5yU1wWQIazLfhPt8VKD5OyleXo+m8z6yuGFuLD8wsx X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c4bf3e9-194e-46c3-d2d0-08d53d46332c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:AM0PR0102MB3411; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0102MB3411; 3:GJy9mVfCenm5UD756kOlGXwxjH2r5MFX6xd7HNFzO7r/raJG2UNaj9e7vQnpF9uvJN9za6hHKHDp166ZZat5rnqRD4PrKM73tV1dgPiFp2kd9l0QvJFSJ8lYauxth7wU+wKekfhBbVBExNyKzkMr6FGk0fe0MCYiX48yW4CAZOmCYcg9FHmqhXhBvcK2stZO7Bdib4WGqHyrgQp3Vt+YKt+Lj3cLEvPx5j+kdoU5Y9wfOR+IT3cU7UIdYaNegd8LeJ4FFjn2kWio/5JmZxk2DNhbL3ZxomEs085tqF/eCuqWw+PQlzcGeVnBLKET3x6LNVHKettO0ylPF64riQrQoQ==; 25:ftGCtnjBv3LUvSsP/9EyC8pQjZTMQjVoRfZOsYOkjiU20GwSOZe37xAtT8RwnxNl9f858QDIFFgKbNsQk/JQQdoAeQs9EWwpFR1gRuCMQ9iy2q0K5BD9/abqrOk/pp0R0kplVaX0/lUsQlxg06o+L7Fv4vZkCsLx5FOtwQNEC8HhGFq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FCP0uLhDmYUa0mXFqmqR8F8Lhk8NnHnev8raIbjfQWk+r0KXczPUucb6ygn8v47LOlCECYabom5CliQ6EB9LZ4wwNzx3/3cRuEzeINEWH+I4VWzevgcOSiP4CNvV6YQbBbZpB91QLrfr5q9ed+bZzmu/FhBmAc6HfnfHs16JNXhiJwoAB/swBF5w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(93006095)(93004095)(3231022)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558100)(6072148)(201708071742011); SRVR:AM0PR0102MB3411; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM0PR0102MB3411; X-Forefront-PRVS: 05143A8241 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR0102MB3411; 23:PnFY3/jyIUOpNCPKrNRqmxFuEE3WLFEnxsprF05?= =?us-ascii?Q?SdIonAROx0k0AmyHBAojXwAg8iPabW3FF0MLVGRMViVZ5uqPSDQAQQJhStRW?= =?us-ascii?Q?KswJ0g+0nCivFeudEmq9RSpAUYjKo0DauRUYKVmIuMBAsG7dZnUngNCqoypE?= =?us-ascii?Q?VCj7GZcXEHmKf5L8yWfYpqzp+sLeYMMMYZWIv9qViSIx2BstuivRpXVjkxOA?= =?us-ascii?Q?hg5e+fMmwyD6Ksm5XLjrRdRGqUaxt/pZ/J1P+Pj07kFjeew3N9wt3XTz4CWs?= =?us-ascii?Q?S+HhJyEkSIJDCeMhnvwVvoSLjY8LlGsNw9xh4h1HfMdsDQsSNoSngN2DZlAs?= =?us-ascii?Q?roAxaOxEtYIjFcScuzDZ5nKOrbQ+Ls/ZG5mOh1Izt8qsdGbnQzb1c5ll3cGj?= =?us-ascii?Q?nkrdUZJV2+M0YknuIftqwW37Tir+PwyG2hp6b+NrNzj31RTGP2GmUZSUmKac?= =?us-ascii?Q?+vGzZT9fzwgOd3h4WDFGMjtaE0WCoROdBvqNzR69+LTbuScVx9wF4VWqljG2?= =?us-ascii?Q?SZv0xIgQU1taLjmlmd+uWqUP2ky7GgSIDycBGzZ1/RyRUOiLESPuh3qUwNgn?= =?us-ascii?Q?Sv8eXMwrNJT+v1t7PJ5GXsu7d/uK2fUREpdhPcjEbwghw9h1mmuoopOOm8HZ?= =?us-ascii?Q?rM48uG7T4nFB0PIWRU999pvZ556WlbGStxPmF/iM1DdwRRTD7lTp31BwDlum?= =?us-ascii?Q?qtMwS75C+wRRzMLsXTaT59Ui/KAPohEWaXW60ucN6B+/QDReO9TsmYWTdkRp?= =?us-ascii?Q?1Q/mL2jYBq/daEiIFMDmR6X3dBjLawD6RDPQCb+dfL2IlI9iAD5Ju6mdVmB9?= =?us-ascii?Q?KX4EuiU3cfSgMj7FQGw9gLSMXe3Yi9OhbuKDKD6WTojENMx8uMftTVxUe91q?= =?us-ascii?Q?9EawahKY48gTnTcI1xmiqrtNNs4FmSThziev5JlikEhww/EXXmXZTfXZWLfX?= =?us-ascii?Q?DW2N2dBcUmji/UOtbsY1qrhi5JygEqs+I6bRiAYLdLBQIxblNzcd5qMMANGA?= =?us-ascii?Q?c4WJEJ0eN/FAg96AffgcBpjyCXN20sbRp9PJUkpJzGBOVmjuQx+UagLk/s5H?= =?us-ascii?Q?92tXQY5OMd/omS1TvweR3XOKtOVewcdxuQSq9w5mljRpD6L/lt2D0IkxH6F8?= =?us-ascii?Q?XdhE9T5eu5p7ubbLHDWTVoctOu/WczC0RPdaWLSnCxzwKzJO6Cj4xLwvCg/2?= =?us-ascii?Q?luFG9aVvYTK0nZoIMPdiWh9FEyNUnY6P42J++?= X-Microsoft-Exchange-Diagnostics: 1; AM0PR0102MB3411; 6:ZpGhIV++es3FL5o7ncU/CSefANQ5j7yItbKD/FIrXNK0KCLQM+rmcK7ENNFkr6Eb1ql8HzfUj30qGrWgi9F1oh1n4kU8ALeTSZfgJwaVPApYz62M9EHe1jgDZodKpfs+JtZg53KOZT1V+bA2E2eQSshUoGFUkf2YVyH9Ykc/8wCDmz6fqErd5DjldmPA+xX5MOsSPeVGNtxCvjOcDhaY+Sm91n+H1Z8g3thYRHfY7YCvQKU9h3XJwSM+tBYkhI1RgK+FWAkmuEnJ9C4oIV1QJbr1Zh4/W+JXMx2c76tzjNmnOT4L5kD9i8O5mCWABOiHdvMENGEMgovegyJYYyRjtAr6wYjYsqkLwQo+IDU3JEo=; 5:9z5zkFhA3F2m6xT5rIpi0DM4ZUSkZdIXRJHQMQIeKsDvoYQtUGeX+RovsfIyYto7NPjzrE077TbmV3ZbYhdhwQr8lVRvt1yxYoqQaDVwtv5XoKII+xB11AaFobIty/8ARNUIVkcC164e5NV3E555YWYCmUa9mBNhIifqKdCJnxc=; 24:qcQb6Ff4UuRXDt+c6kn22IPVLPJJlMvzeImFLuYItKCafsNyJ0cXR5rMHio0DxJQf6mLHfxRM60O/tjEDRMud7vzPaJpKQ6WhA3IvgXCh9c=; 7:T6yUklxAq4RHMzy+Ck+BVeMwXlW/QD4JKQzfwtvnwqjMrhxPhT2Gv3zpkGfl+cnYLu02DnAKrBva0sj+jFnOuuxSzc9tmpjVLvcHdZQpY703zEyJBNhTc71uCWXYMC7o+No5NsTpxR6U+oCaij4qw9cLNKbkYubbIOE4ZCzC5B9d005jehbUs7zOe69s+z+YODQneRckpp+0fqVVlkwdORgeyKBz9fCX10VCG1TrsnTnZKTXJPzb6nDJs1oHa5il SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: verint.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 07:43:25.4779 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c4bf3e9-194e-46c3-d2d0-08d53d46332c X-MS-Exchange-CrossTenant-Id: bb2ed304-4099-49cf-b081-cbb7a3a580ca X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=bb2ed304-4099-49cf-b081-cbb7a3a580ca; Ip=[193.27.93.18]; Helo=[mail.verint.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0102MB3411 Subject: Re: [dpdk-users] Round-robin instead of RSS 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: , X-List-Received-Date: Thu, 07 Dec 2017 07:43:27 -0000 Hmmm... It's taking me a little time to digest... Let me see if I understan= d (please indicate true/false on the following): 1. If a single queue is used w/o RSS, that queue can be larger than 1M, and= the device would be able to handle it. 2. Are you suggesting moving mbufs from a private ring buffer I maintain to= the device by dumping them into the TX queue? How is that done? Is there a= DPDK example for this? I may have additional questions. Thank you very much for your response! Michal -----Original Message----- From: Stephen Hemminger [mailto:stephen@networkplumber.org] Sent: Thursday, December 07, 2017 1:05 AM To: Dorsett, Michal Cc: users@dpdk.org; Maimon, Royi ; Heijmans, Merav = Subject: Re: [dpdk-users] Round-robin instead of RSS On Wed, 6 Dec 2017 06:43:02 +0000 "Dorsett, Michal" wrote: > I think my wording was not clear enough: > > Every packet that enters through the device will be delayed by our applic= ation for 1 second. > Given 10Gbps worth of traffic, for example, at an average packet size of = 600 bytes, this is roughly 2M packets per second. > > A 710-series NIC makes use of 1M mbufs in a queue at the very most. In or= der for us to delay 2M packets, we need to create several queues per NIC. > I understand RSS is in the hardware, but hardware can be programmed, too,= and hopefully turned off - and that's my question - whether, in addition t= o the RSS there is a round-robin policy that can be configured. > > Thanks, > > Michal What I was suggesting is keep an internal ring buffer of packets. Use a timer (rte_timer) to move the packets from ring buffer to device. If you poll timer at 1000 hz, that would only be 2000 packets per interval. The hardware queue can handle that. RSS only matters on receive. You can dump any packet in any Tx queue. On receive hardware supports: * all packets on single queue * packets spread across multiple queues by hash (RSS) * packets directed to queue based on flow (a.ka. Flow Director). This electronic message may contain proprietary and confidential informatio= n of Verint Systems Inc., its affiliates and/or subsidiaries. The informati= on is intended to be for the use of the individual(s) or entity(ies) named = above. If you are not the intended recipient (or authorized to receive this= e-mail for the intended recipient), you may not use, copy, disclose or dis= tribute to anyone this message or any information contained in this message= . If you have received this electronic message in error, please notify us b= y replying to this e-mail.