From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0060.outbound.protection.outlook.com [104.47.1.60]) by dpdk.org (Postfix) with ESMTP id 5CC62727A for ; Thu, 1 Feb 2018 13:33:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=7w/tOCpWYUY7XlHKCzjnCYmD3tQ3FmAFIgJfJiBgEn0=; b=dayDdnoxx1NPLi0CRxUmpadhHA79/VPC34NRD2ZRD8hiu2q6n2VsJXBDzop+aV67vt5x189r8M2CWjAU0wnioRADP73JjEFMGG3y/RjRC/W7uPkCKORjsUu9wsBMVjLOQp1Eq2Nj4J/2CX8osEGIq3QjCqpLf1fLVKgLwY9KK9Q= Received: from Tophie.ap.freescale.net (192.88.169.1) by VI1PR0401MB2464.eurprd04.prod.outlook.com (2603:10a6:800:55::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Thu, 1 Feb 2018 12:33:32 +0000 From: Shreyansh Jain To: dev@dpdk.org Cc: ferruh.yigit@intel.com, thomas@monjalon.net, matan@mellanox.com, konstantin.ananyev@intel.com, hemant.agrawal@nxp.com, Shreyansh Jain Date: Thu, 1 Feb 2018 18:18:23 +0530 Message-Id: <20180201124823.22621-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180201124439.21633-1-shreyansh.jain@nxp.com> References: <20180201124439.21633-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: BM1PR0101CA0042.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::28) To VI1PR0401MB2464.eurprd04.prod.outlook.com (2603:10a6:800:55::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1a5f10c2-c452-4661-732b-08d569700263 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:VI1PR0401MB2464; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2464; 3:DZiugjKHaEFaCh4tfE4XoQi53ci+mEDVNCFyLWogPHYgU5YYprYC2/OpvX7IIjv7g20Zx17pkAoVbz9QrpN73ZErrz/LvxxWhhr5HWsqxuiWVa4oL70rPXkK1/cx2KS6SUdXG/lugbhHZhcrLNXS9ZT81lFY80WIdI02KklFD5s3MIkCxsaS14LVVIRqAON0nM9rnAvjDwvIvmsh+rY4ABbXtpx7JKI9qtmvGdR2f3UUz6JNRcsMzwOTgamG9OJ2; 25:+68w0HDmyzNNFqqSuEkj2rxQ6jdaMrC1vhOUBrCRfE+UYg1mB6D9NcjebqgI3UGlwQcdJdkhSC3xXIILZxM/yR3INVrZueA64H4vZTtJN3OsnO2JRHLmrQzeLxYGdkSboA+bL5LAjfUGuy85F9bvy2lYfxVG4GVeO/SxC2xuLXhWZV5xE0q/LGNVMG66dgIZMDcA0cV/9loNUesNOucOVhU4SPveZlXTvKk0C8tOBFLgowKPWBO0baeE4IoZiyEOTj2soPjyCn3w3slQscSM58O8Pt5682FtUL4Phf4bDJ3uctmA/qKMkmmdt3JPM85wpEKiNX94GQwaC2XL8RSfmg==; 31:W1z5EEUv3jsIQYzqYrE3mxbFgGKZqvmWDh/5a1f2igESMOE7euJPtjNP3+da8aATUyeOai9Pydx5BksCPCsFPYwCsJM2AgXRk70Z3T1eaHsaF8F6pOXAiTjBST8q4vZgDhPpMPr4XDK1kKRlnZLQLXrQwIGy/qmctwZgnanjhEtV2ygfeLHqdUkcI28iAlA3p4uq1Y5q5+QMHNppfFH/rJIj1KkAVSRONiTaCd3tlmc= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2464: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2464; 20:F4NvrW//C4CWf6X12XYEAI7gFvWLZEXtUDVSLT+YrT4HgsF4Pi1NKPQpCVHXak0haJL47c1id19UbS4xhaweyFlKWT6orM8KMAn5lXomQCh27mg4vo40oRbPVd4ZOXpIq8sZDahX5DXC1jAZH0DONzOVLhNUkMawjI17OVXgCTpTXldJfH8bnTQ6Hudl2JKKVlE0p07+RmgiOEqOK4EBNixjQLsJUSaJP1bZIM1WeS6o4aon93N0E+ibQOM0ti461Y/lcdDp9lpTm4Ab3bWUWwJFJLdobF0e9O4SXpjdBqnDHpXis8yxRJ8t4BaA1bvGeDTYjqk5A/wAQiMFaOFlaP103GsksUs7mvPy8DWI65k/D0uv+dz6C+llZnrj+oyxL4OFEp4Cfd/pdRE+qbfuOK4FvLDTZfupixNsnHPiMwo+8On2Bo39Wz65UvCoTBzGVD1XxOavzVSGKJmsEQF6dhqAOCe/ehyTRedkxmJTFvEn9N0p2HiA3GfOiFpn1iPW; 4:uV8GD4JcJPe0yO2D0TjJc8FajSmKjRnkyIMfF34UWzhinJfsyH95tId1vgzpELRoMvI96O6I/pynUDJ3jTqwF23bEuN+AZd+N/57wNxbBg2rvUvOMlr9Xh2YyEULaIRZ8ErjA1B00Sm4JE9hTO7rS/wbgveIGPURuELHBVUheun0ZFBqENhTIeez99zRLWdrU9XiLcYzpHFobWEveTTH2rr/0v0iL0ilJFICamjKz/NEOSafjS5ePgmtHJaGEJOGIP0nTikK7ToXqOhheaemCDukrNNyOiGGvNfJ7YXfImPZKtv+yowI6swUiW0SG2mi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3231101)(2400082)(944501161)(93006095)(93001095)(3002001)(6055026)(6041288)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR0401MB2464; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2464; X-Forefront-PRVS: 0570F1F193 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(376002)(39860400002)(346002)(189003)(199004)(86362001)(97736004)(81166006)(76176011)(2906002)(66066001)(8936002)(47776003)(2351001)(59450400001)(51416003)(105586002)(106356001)(316002)(305945005)(6116002)(81156014)(50226002)(52116002)(2950100002)(966005)(7736002)(6666003)(6916009)(5660300001)(25786009)(3846002)(8676002)(1076002)(53936002)(68736007)(36756003)(48376002)(6486002)(4326008)(16586007)(50466002)(2361001)(478600001)(53376002)(6506007)(16526019)(26005)(1720100001)(186003)(6306002)(6512007)(386003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2464; H:Tophie.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2464; 23:wOBPY8GT1bMk/oJ+ud1jjCJ7cd09FmcT8XAHzna?= =?us-ascii?Q?YPStlnSO28+51tizJOuAMheEqHcVufpVTKR6ELGfmwprxX0yC2UsiisF1est?= =?us-ascii?Q?3JCg4WE2jcXe/5BCJuphPiOFvcVeluQFB26KXmgT72xTSDmtgH0Gm7SNioxf?= =?us-ascii?Q?KrcedXH8GpjeqhzuAvSshcxe9EizVrrKasx76ahGiM1nhoG1OHtZ7FjqwHJL?= =?us-ascii?Q?/pxRxs0WwyXq/28tyujg5BM5BZ0CVxOcNohOe8VcPvPuw6APD0y6K8Dm5se2?= =?us-ascii?Q?8ddh0fJCwDKDRY/KUl3jYYXOoTHAc7tYTlt6fzdxltDxam8bAKhEeUA/RnJ5?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dFVyGfMBuU6Z5F7DTVGI9r+peR70eVQL?= =?us-ascii?Q?T6lPM30Sypo79i/xpN8nKPuH8MAVLxapFiUmodXrd?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2464; 6:+ZYZVUCycti6Ef/1HvVJuYDZCT2OxiufSvhzBdtuKOgv3usKG0egV6Yarz4V9geJVw2WLS0yAJn9LKny+fnABWZb9lsRa7iILjThN10Wh12b0rd+4lbrW7Oo6cMJui0TaRsfNfM5XvNohOMQIRzSvLTwWSXWbi/A9osB1NHhdl6TGpkmLOvSsT6oxSqQZ52550d1yDbJ74yMc8I7cFyrPnVna3ulcyQ36zC9C/97Dr5oZdkgR+mSoVOzST7eGH7FvYO2YjrwEVI7HmLX5OWgWGwK4dbTX1yipuSWD4znjN9oXOCCNERSsfcg2sT4Ih+lzOIjnaFfq2LytiL66val46w61JsdzIH4ufmg2WqfSds=; 5:aXfSNT2F4Z/70Hw3zrH582TC9bCAr41OOiutdKb3K3KY3KER8adDGNxe1DUQ07FrGXtnrUUD3GHX7AhuhJ+WNIe1qeyiGySymulAKKzpTjUFv6NgeycwlnFd/10ZNxzHxYH9kDjrLdJKOJbjLCpSd/j8sX8d2nWT7au2MS/o4OI=; 24:675hOkWKvtx4bWiQ1P+R18Z4m26dMVB76IDYrbDvO6EbyYD7ccwCi05BgFPkJG8TTM3aD38S4rNj/drenoK9F1HINW+vOZkc6ffFjbrKZD4=; 7:CMANHtbp5G0jNECp6WUng8keOQ8uVUaAlaZPtvMva4DLDK3S+oq1Jgj6nSzuOMeOzzMgHuSHJvZns456uegKqqUMLndM9okrkmAMMlTCMQq+5XFytMYaBdz0MoBPzrU+n5mnne9whzn20OQ21BNcu+571sQHGl/txpd0aiG+zR427Q6cmCi30YJryo0QeS9FqyqHKqP/fkIrU3OCdLlZ91eN1Pi8jRH3mMjvHUBfu7XMMRxm6rtNpUNqSAxUAAS5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Feb 2018 12:33:32.3243 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1a5f10c2-c452-4661-732b-08d569700263 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2464 Subject: [dpdk-dev] [PATCH v2] doc: add preferred burst size support 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: Thu, 01 Feb 2018 12:33:38 -0000 rte_eth_rx_burst(..,nb_pkts) function has semantic that if return value is smaller than requested, application can consider it end of packet stream. Some hardware can only support smaller burst sizes which need to be advertised. Similar is the case for Tx burst. This patch adds deprecation notice for rte_eth_dev_info structure as two new members, for preferred Rx and Tx burst size would be added - impacting the size of the structure. Signed-off-by: Shreyansh Jain --- * Refer: http://dpdk.org/dev/patchwork/patch/32112 for context v2: - fix spelling error in deprecation notice doc/guides/rel_notes/deprecation.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index d59ad5988..fdc7656fa 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -59,3 +59,11 @@ Deprecation Notices be added between the producer and consumer structures. The size of the structure and the offset of the fields will remain the same on platforms with 64B cache line, but will change on other platforms. + +* ethdev: Currently, if the rte_eth_rx_burst() function returns a value less + than *nb_pkts*, the application will assume that no more packets are present. + Some of the hw queue based hardware can only support smaller burst for RX + and TX and thus break the expectation of the rx_burst API. Similar is the + case for TX burst. ``rte_eth_dev_info`` will be added with two new + parameters, ``uint16_t pref_rx_burst`` and ``uint16_t pref_tx_burst``, + for preferred RX and TX burst sizes, respectively. -- 2.14.1