From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30086.outbound.protection.outlook.com [40.107.3.86]) by dpdk.org (Postfix) with ESMTP id 168031B304 for ; Mon, 5 Feb 2018 07:07:43 +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=OzJbk8717G/xr2yoDBUiKXEXg9NdFBx54yYJNmZWxc8=; b=qo4szNVp4fEDiW36X29eb9XzuwwB28zNrd9lPd6qr1c27aYd/OklbBCoWNTQqUKE3DKe0KOyzoUAx8i/PGGpVxyXwfuhoWekrY5C/G8f4qljQfTXRDpEphgrD+4io3wUv2z5fILSnlhEGZFXKxHv2nmzAdgx/fS6two+t/J5RTA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (192.88.169.1) by DB6PR0401MB2453.eurprd04.prod.outlook.com (2603:10a6:4:35::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Mon, 5 Feb 2018 06:07:40 +0000 From: Shreyansh Jain To: dev@dpdk.org Cc: ferruh.yigit@intel.com, thomas@monjalon.net, bruce.richardson@intel.com, konstantin.ananyev@intel.com, hemant.agrawal@nxp.com, matan@mellanox.com, Shreyansh Jain Date: Mon, 5 Feb 2018 11:52:22 +0530 Message-Id: <20180205062222.27522-1-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180201124823.22621-1-shreyansh.jain@nxp.com> References: <20180201124823.22621-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.88.169.1] X-ClientProxiedBy: PN1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::18) To DB6PR0401MB2453.eurprd04.prod.outlook.com (2603:10a6:4:35::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: b077d3eb-57d6-44e0-4332-08d56c5ec493 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0401MB2453; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2453; 3:4koVWn2oOOSLYt8z47sFOBLn/xYWAYbZYUbnMZ4RMEkkapnyu0txseCHhcQ+Kv7O/WrvSotBZmknVmPp6ukw/sbaRjpaKZ6PvnwnVGc+G4cuPqizGlurRa/34aX0tF+tgsESOXxzPijbni5rEuF5Or4o5DmJkEp8TYX4frRf+16Px4LDVBZdmJxgFrVw7OWZsqtqOjLcjkFtLT+V76J97OvnbM34BFBoXVAYLMo55hoZYTLx1F+FKuLLHvO7VQCR; 25:Vdh42VB2l2ZMfzYuk3mcTavZx5Y4C6Gs9yf8L/8deWkyHBNbOp9cNanXaCKKr4yuLv3G4jYPU/zDc06k4kcUxCQ8fLfNWxOJMqTJqSYHvbuou/8Wz2UkFGsZ2daktwffHjUoOtihYaF+14FfbReg3HwhzLNoOy6NQK0jNp51K+oXfDnw8bFUdjYI9Oah7Id1oCM3+jJYHyKncqaxdaWPBrJHU4VlsvTnDU+pHQYzO8rW9fn6BfGU6BUraLPQHVQrhW1C/Bus1x8Q+NOq8sjiM9YtYnzvdWV55us46QTqnQaxZhAquXkyWnknXupI2/pkPa9BqY/oKGeLOM4F67z3eQ==; 31:p5xWpZqA2kT0jQsy6+8oD1eS/aw4RdcZXYFPYVS77v8/MyJgQSRH6oU9LVOkh0KpwIC6gZ9ZeWUuua4C55AoGyXFMcf7jsklDYTnez1kJ6lSNtmxbP4FoOQA9mnCfy4VohKmPw5/uq77FqkDpXN3cKcNLsD5FKuLE+rzH4NnsljiIVKkSVV90HMRW497kja8vMdTtGGTsMEWJHB0kFAkFg1dNT9rPXsgbqjrJ5y348E= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2453: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2453; 20:E0SLL6HXcysWHSMALhnwWvq0pZMndS1tnx4OWzocKji2ux+G0HMXJs17lJ5Bsy86KI0cQk+QXE2b3sBHVmA2rzmV2LTOgXL9YexyBIpQ04IWdBbp9T0wN6EFbmjiruTecBfkGW5vyFTiEELpCVUB3APW2AQ1PKwMsRIBj2P97EXp/9tpJcsmDM7cyhCEcECJ2ZbJgFHVr2mcmrkdepXqHcvNi0lbUV8IEPnOxRM1cxYL5aQrnGzeaQH/ykwJiH/tFYnZ3u4uxLuldKyqxWakniHL6FnGzoMcQisJObu2PU3/xvlrvaFp1y8b4thlHXkmP//3+65xbULqsDQ4uXbFurLvovX6dgkI40W5GWJz4eED07955PqlTCVGgD4pmCNfCPjPfXhfUmiVIL/1BCV8I5YTF+ex0cSOIcK2L9qgwwL7bgIh4FolOs4SZmb6A+AwG31a8pvbT2zww5JO17V25eUGNa2Eqqc8OPaNtTiYyQdEUI9VaeH82bCGxBgMj1NA; 4:rruOG8K7rQf8Fd3lTnNWVMyByR2y/+nwN73rcHp8r/MSu3Ett06dZk2WPHaTYZ+FNSYyYqVwZZp1FwGZf0HNZoOLVggk/x9IVKPhSeCInvIfPQmSUIAFeTySe4qg9bFQKLjwsniMMdfWLttuMINCFioReL14xW0E5EYojl01aX0ndHGFvBw1G/GwqMkj8TlzrMa2fIfnP8x5BUDn3Hb0zs+vHmG0nuXflyrNQlJB3Zj7K3DvqQ/XZ5Z/5PVRj0+MSdIKz7UhNs34d0OGzzOU8QIQe0SBZEVl7G7gyGvmRbJQ9iJWV1za4uLluOZRJ/o9JgnQftGq3qkqVoRV+NOguCynMOoRYwDJ7mij+V7o3fs= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3231101)(2400082)(944501161)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DB6PR0401MB2453; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2453; X-Forefront-PRVS: 0574D4712B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(366004)(396003)(376002)(39380400002)(189003)(199004)(59450400001)(51416003)(16586007)(2351001)(106356001)(2906002)(105586002)(4326008)(8936002)(50226002)(305945005)(26005)(81166006)(6666003)(8676002)(478600001)(6512007)(53936002)(25786009)(5660300001)(52116002)(6916009)(7736002)(48376002)(47776003)(68736007)(81156014)(6506007)(6486002)(2950100002)(386003)(36756003)(66066001)(50466002)(316002)(76176011)(16526019)(186003)(2361001)(86362001)(97736004)(3846002)(6116002)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2453; 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; DB6PR0401MB2453; 23:bOBfSjOMcA5aPiUhvH1CszQONXjmA2I4sAMHL2M?= =?us-ascii?Q?MQaFGkDSZA/QvK9z/X59wKjaJRSGrjnjRRV+jebMu4wzkCd2SunH7gwG4POM?= =?us-ascii?Q?9n1kxizR4UQhNSo0FwgaHXmizDl8PFPk7qmUCZg9tUma2YkIryMtSy2dyRRY?= =?us-ascii?Q?L2G/yUT95OLzmF4FWO+GxTgcSypz/wcVSvQbnEh6JfUUgsG3SzPf9ZLlnUvQ?= =?us-ascii?Q?3ILg4QdgrJ4Y5HfkTi08npCF2Xmsp3kLHU+SybK/cTh4j5iaQ2006NgZr3PP?= =?us-ascii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-CrossTenant-OriginalArrivalTime: 05 Feb 2018 06:07:40.2567 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b077d3eb-57d6-44e0-4332-08d56c5ec493 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2453 Subject: [dpdk-dev] [PATCH v3] 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: Mon, 05 Feb 2018 06:07:44 -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 new members, for preferred Rx and Tx burst and ring size would be added - impacting the size of the structure. Signed-off-by: Shreyansh Jain Acked-by: Hemant Agrawal Acked-by: Andrew Rybchenko Acked-by: Bruce Richardson --- v3: Modification to deprecation notice to add ring size as member v2: Spell check doc/guides/rel_notes/deprecation.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index d59ad5988..91de3c62c 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -59,3 +59,16 @@ 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 as well as ring sizes. ``rte_eth_dev_info`` will be added + with following new parameters so as to support semantics for drivers to + define a preferred size for Rx/Tx burst and rings. + + - Member ``struct preferred_size`` would be added to enclose all preferred + size to be fetched from driver/implementation. + - Members ``uint16_t rx_burst``, ``uint16_t tx_burst``, ``uint16_t rx_ring``, + and ``uint16_t tx_ring`` would be added to ``struct preferred_size``. -- 2.14.1