From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00044.outbound.protection.outlook.com [40.107.0.44]) by dpdk.org (Postfix) with ESMTP id 7A6162A6C for ; Fri, 20 Oct 2017 19:00:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/wR7IyD162u6RqNr0nHz/jm6Y26XHg7PcQrMxEHchSU=; b=dxf/N0+LvvJEOfur1ZLpGwsLc2nWyJXDsv6A3NaEsCelcSHBKExLiUeiTCzFiQVa5g/hM8A8If7zbom9OAzKv/MbomVM7GkWY5cIqFoUKG/Bhhja/5UoiBlLjwPy8kks09q+p1tONSwDN7Cibf4I73SB15sV2Z2RIVxlM5FeoNU= Received: from yongseok-MBP.local (209.116.155.178) by AM5PR0501MB2036.eurprd05.prod.outlook.com (2603:10a6:203:1a::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 20 Oct 2017 17:00:09 +0000 Date: Fri, 20 Oct 2017 09:59:58 -0700 From: Yongseok Koh To: Andrew Rybchenko Cc: Bruce Richardson , "dev@dpdk.org" Message-ID: <20171020165957.GA17026@yongseok-MBP.local> References: <20171020115823.GA21216@bricha3-MOBL3.ger.corp.intel.com> <56be56b2-092a-ddc1-85ef-6e14065382bd@solarflare.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56be56b2-092a-ddc1-85ef-6e14065382bd@solarflare.com> User-Agent: Mutt/1.7.2 (2016-11-26) X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: MWHPR20CA0018.namprd20.prod.outlook.com (2603:10b6:300:13d::28) To AM5PR0501MB2036.eurprd05.prod.outlook.com (2603:10a6:203:1a::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5325c1e-fca2-4bf7-f57e-08d517dc05ea X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603229); SRVR:AM5PR0501MB2036; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2036; 3:kNBH7h/o0yX5BZTHHT3U4ZFtPpCJpqF8g+0iTsAz/h2pPMq4d552DJv9EN/68TIc4HcUQnuDyUTEh0r0HJitiXHmi8gLgof+HHpGrhuh2l7MvjrgF1waiVWCjd+uXTN6ACQdc9CkOG+l1WSy+4utiobbTT1DiENbadha312GM/BlrdR42trHO1FYNzkOm7v6HRaXKICH1DbfjJuNHl1KgOzTNIgGNOmVG07RdE7SN1eCtnRXPgpVquGCcgPp6sz1; 25:ZMETfkNiD4Q5WWCMzIQBI/p95eiYrdKc/RF9UbPgFgFQJKh8XPtnaRWhvleEnHKDnw0HA55NAQE+qoVvJvqI9N++RdSlyQE/5Kuzv2q3lNRCLrt2Y3azRspENFzzv++DxcJ7s2AtbsWEQgzZ5huhuHI9q1hjt6xCkJ1ViJFKdxwCinS2PWTufxzpenr5Q+GV9h84xTF/H59GG4GQ8EvksegzsTDiFTTTfepDI+xf0yHraM482iFRlP7Yx4OhFUbdEbegFY/SVjlmLaQAfz9+Abb1JIBdpc5zQLdty3tBVjpDTUK4XCjLp9VHlw03WCisDQg6GTfM4Whv12x7WIHWtQ==; 31:Ox3neP0hBmBRok5JiLXZpXWZXBfwK6fBgQsnXlfV4KpKcLYnHJt18O/dS4gvsRzAz4CswqJwBBToTbCLPx+w+zGljCofAn2pyC/DQ29FT2LZ/UxENhpwVzt1jb6/M21NpB33xginNzKzk0xEXVtsCZHjbSO/hqupV3cYJMwuLkf7pNp1/CMNff9l6oFlIyQPmFnUBS+00QtG1WzPXPA+yLMtTXWZ+qznkxN/gm+ZBzE= X-MS-TrafficTypeDiagnostic: AM5PR0501MB2036: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2036; 20:fOaFTN4EbKN3abZPS2JGImtNFFxDG1KfDLG8gOD5X5HE7fAnQQ3XWCiOweJevV2s7B+tb7Uspbgm6rSwwesoLkchEdxy+fBv4vZ33Ere17telqRUFhsmhLhZKpkDLu59RnJmL6VlxcIJp4cNahn64vEKbL2DQ8AEaIqxz2AmTh+xLxJ0xQm5d7wHmJWhQNJzCE3DlIZ7mv3W+c1Z/cuJaZMhNDu75iiJLlMHVQXYF2J9lLs8vYpZSLr8IvSeWJiwaR2uicDKgF1c3XN6jPpAEXfiUxjxP42H0tZnjpRyd/VMDMJFI8iNb6RJjRpayUFyePiMQoQuivevBNYVxZh7pmIiieoKfNtM8+N4GOznx6AkvZg9SlajMqjWMzofv1qa4O+K/asL/iEI3x4+eYhSZoLiAfwNR0xdMNDRZ1wmqWsMQtwPdx62iidUM6yRKGfFh5KzGOFl0CGdDrybYd6bmMhZZT12918MCmFu93H3tlrepbWpFCoSWeoTJoSabxRH; 4:TIx0IWrtJOdc8FkEDtmvY65ryOBX/m/FQ1zX/pmtnVH0wTStiz2E4PD5iFHcDkTkkmHMDaoD/SDGQc0usiSJuv80niE4tW7n9q5BtinoEjyl9NttPvf4h6iJJYbFvG+Y6xGkqjZw+zI2XlCubJqFmMem1voHif4UOID0VokdrCAKpNuSUZmgsAk91P7zr96KTsnqzpMOD+Pydjfb1SwYaEOD5JCX43p92T2LAcLHvdxrluJZdCCQylA27BV+Og2B X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3231020)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0501MB2036; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0501MB2036; X-Forefront-PRVS: 0466CA5A45 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(376002)(346002)(199003)(189002)(24454002)(5660300001)(16586007)(2950100002)(6246003)(9686003)(54906003)(305945005)(6916009)(7736002)(16526018)(25786009)(4326008)(53936002)(106356001)(8676002)(81156014)(3846002)(23726003)(53546010)(1076002)(93886005)(8936002)(68736007)(478600001)(105586002)(98436002)(81166006)(316002)(33656002)(6116002)(55016002)(66066001)(50466002)(6506006)(2906002)(97736004)(47776003)(86362001)(50986999)(58126008)(229853002)(101416001)(54356999)(189998001)(83506002)(6666003)(76176999)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0501MB2036; H:yongseok-MBP.local; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0501MB2036; 23:mxHYikUb7E8MkNIbyH5ckdqPo1oEzyJTBBQtvPf?= =?us-ascii?Q?cZ49a4r9bLf/0FVFnN7X0f8n5W910dEioofJCL6ogDuhxHCoXgMjscXpucSb?= =?us-ascii?Q?D4NfDLL3ca1idWTWlMJ6QJ8i8cxnEm6OIbTGVr17d4a2U4FSYlES7de6STei?= =?us-ascii?Q?uPuv4vVjuSupvkIPk4k6fzEY+JxLEe1peAFrU33WizERyzWtex6qV1EvrsSO?= =?us-ascii?Q?itW/5BuigzduVt1caOyov4FSZtWtn1jF8fh+32Z3ERGFNzwUSZHqGkrR0/8N?= =?us-ascii?Q?B5B/uU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JpGB7jhdY?= =?us-ascii?Q?DfnZQ775gicTqgVZ0FL/3Wc8rlSaZ35kNCFObIeUhMqoRbNMNdNEb6Oy+lC2?= =?us-ascii?Q?sLIsIkXgHProz0FxIE4Yn253ju09AffZsJG66FFWz?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0501MB2036; 6:G4I6sz6BzxhrgOVY9xAOaIFZJwq7tYx+Bv1pX6ve1MJaopGW74aW4fuqMyVrFG6ADVVijr9mwBAd67WMoOJwkl6h2B4E0zkmHQIcJ1pxqXh/NH/rUxheFBhYeZ839n2xJNYrFF5Wm7es91nrQnrtSwbemBcYiPMg7Oy1kGTXJwtLd2QJyU58sbwBij3r1lHqoohBJNR/2pRYgY6saCY3R1rVzWF06tCSvIIt4yOPpWshGS9i1j3KJJ6E/tGk4z2KmlmQ8QqGz8ima2V/MoDBlCaVy3Jpt6NRywUUgaZCr7yL9MWd3B2bkCSGQq1XBH+hBfg3AbinKSiDPBg7bvmwEQ==; 5:zxfYPWwhQ5WqUg3FAxAew6Us0kCtTzSWzJ0QefutWX4MGGk8KUQRkNwl+iexgMqB02f4npGPEdM8xrHaTYt2Xyhivkqu9V7yb84kbHTRCS62WDpoNTo9NhLydhZX6f10TYRi3WjF4QKqyXmK7dkDpw==; 24:1M+MIcmbyvhDGtYBXR4yC3HmIblez/hUqGFHlts1e69nvJoPFC8qGIz3f/r6MIIJS29q6fWxszWWVqNzcNmtZ9m0XJZdQk1LNuqIYqtIxKE=; 7:GTaNCPggXPQpgRccALGRe/oDACnvWX/urvMRsQSv0kxgguUS90S65fuTAZQhwzWd2wxJ/ddfh0PDvMIMjm7sO/lnTRizMQx57Z0/fnHNpafp/LpDpjuITFEfszMOuPE24dLTrVwB/ArLFFNhLa3VW5S3wpMQMeaxTm503cr8C4+iJGa7QnT/K+3AMY5YPIswugpk10knlK+xlprF5G64CXeZraRjn4TqVKgdY8m9Exo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 17:00:09.3727 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0501MB2036 Subject: Re: [dpdk-dev] Requirement of minimum Rx burst size for PMDs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Oct 2017 17:00:11 -0000 On Fri, Oct 20, 2017 at 03:23:10PM +0300, Andrew Rybchenko wrote: > On 10/20/2017 02:58 PM, Bruce Richardson wrote: > > On Fri, Oct 20, 2017 at 01:07:17PM +0300, Andrew Rybchenko wrote: > > > On 10/20/2017 04:18 AM, Yongseok Koh wrote: > > > > Therefore, how about adding min_rx/tx_burst_sz in struct rte_eth_dev_info and > > > > have PMDs fill it in on dev_ops->dev_infos_get() so as to make apps comply with > > > > it. > > > Just for my understand, what should happen if application wants to send only > > > one packet? 5 packets? 33? 35? > > I actually think there is a mistake in the original mails. At least for > > Intel PMDs there is no restriction on min TX burst sizes in any code > > path. The vector RX on the other hand does require a minimum number of empty > > buffers to be passed to it, so you need to request no fewer than 4 > > packets in a burst. If only one packet is available that will still be > > returned to you, but you must request at least 4 > > I see. The thread subject says Rx, but Tx (min_tx_burst_sz) is mentioned > above. > If Tx is mentioned by mistake, it is clear now. Oops, Tx was mistakenly mentioned. Neither Intel nor Mellanox PMD has such restriction on Tx burst size. Will come up with a patch for it soon. Thanks, Yongseok