From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0042.outbound.protection.outlook.com [104.47.32.42]) by dpdk.org (Postfix) with ESMTP id C81831BF59 for ; Wed, 27 Jun 2018 18:20:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rThkTqZBSfN/PrZm8tqIPDaPspfOA8zgcKSBYlOShGI=; b=YUanDB3V7QqQeQrTxLKTSA8W8txXZukRc/XP46hBuOAq47B89gYRMeoZmVPYYqINNEHLK3RbDoU5a24PcFVzKLGKQDjKOWCoOfwbfA2jjDb3cMxkZw5QI6Ouj3ZbSOwQycJfEffXaeWWcQbJIOfVlYhd5Empk9PK9zGqLw0eXm8= Received: from jerin (50.233.148.156) by CO2PR07MB2518.namprd07.prod.outlook.com (2603:10b6:102:12::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.884.20; Wed, 27 Jun 2018 16:19:57 +0000 Date: Wed, 27 Jun 2018 21:49:49 +0530 From: Jerin Jacob To: Honnappa Nagarahalli Cc: dev@dpdk.org, gavin.hu@arm.com, nd@arm.com Message-ID: <20180627161947.GA28037@jerin> References: <1530115574-102162-1-git-send-email-honnappa.nagarahalli@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1530115574-102162-1-git-send-email-honnappa.nagarahalli@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: BN6PR2001CA0036.namprd20.prod.outlook.com (2603:10b6:405:16::22) To CO2PR07MB2518.namprd07.prod.outlook.com (2603:10b6:102:12::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fe5bba0-5da3-44fb-b52c-08d5dc49d556 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:CO2PR07MB2518; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 3:7/n1CIsgSHg41fMht8wqEYrJuijwQLqYcohISZZRwWMv0a78rUMp7LNzlZmXF5ArnadOsPl4KkpT5FAlWi0+i7rKXUWc7yIPEytByBOXlSYKBcwH1kANBjn8NTPp30RFXxqu1cVdaRgEgprdyualIUsQFx7OVI964r6uV/3Bcf0Ok8Poat/yyRpnmQNYsXN+WugjZax7OMmYl50m2v0Lyi5+Aeh4gn+ruGSfyE5R53SVPUsmRkWeUGdf/WyZRMAi; 25:SgR0qI4XwxyAKH5P9uZo4U9nRQ4M/UOGitoWH3UFRooVoSJFMX+xOHoS0kQ/KeO8KmFRWRsEoi3DekStic+JaQ6GM7yAzoSioyaZo4uxxF2mrn4swpG1FyyzL9qp/nxrTGmDyF21DHn1o4Kv0yGTcVLZEz+xzW4BDZOeng0NGA/tw7a/2NsGcLqT/Lks0hzXrsKzdhqlQOCZP7l2+XJWwdExGSVQ5fHPx5V0PoPlczwkK7Jpie2aHwZrh4CJN2iyjohbKNRsKqDZb+rEENukCCvWTz/9pq6TSfrFwGJ2Rk1TmhDdgh0OTN6qG4CSuYohLmf20kC3/eOdqY8v5TfBbQ==; 31:WBU7Fo3EUGv7+jOIZXROqlDe60bPs67AfiYbrxJuvYakGkEy3Jd5XpLbg+eLJuNgDnzIQPh8lFwp1a2GQbCmzCumc0GIBfwSN1NS58OaJ0Cr92PfuO/FLaTC7/7olZDz661GD6rl5WGtbCYKeGF7rD+LVDj/83HcVRMfDdIhlK9gbr7WNkbD6eThpwS3vvaYBOBZ92ZR1U5LLD9Fs2FFsWmE2qj36bmm274hpPy9CcI= X-MS-TrafficTypeDiagnostic: CO2PR07MB2518: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 20:6ci9HnFn6GxiMC+GuVybG/ZWevj+eQ4dursir5MP0/LjghsUh6h1WdAbPneLWOvkTGzXwea44puAmfbnHATPNJYdZ/4xcxFK87jHg8UdQI0FW/19A8yze85gXQWbSYRXTquvPNqjJbco1uWrR3FmiM8yJaRhBr65m8XPTjYdysZl9FNBmAEePUbwVK4gqXu2UlGRFYwSjYaIQ6AZlTECqBvupA+9+N+ifxTulTtVWryG4OJEjgEwag/OmqouNRw6KP2khXrj/nm3BW+d1IYXffB6pAoMfRNjqJ3oclSomC0Ltm07p94hy+vRK3yypjwjF8q/jK7y4kR237bNoE/pEeJKmMxNYHFlOc50L5dw5ns9g1SDpKjTuYPqMziM0fztAWZFUhDDmyEE487QBmWM1vy3CECNqC7CPLxmngDX72vHATr35UVVCvhj9Zd9NFVC39rs1MTBJs0byRJ/cS8+epzObk8tYlmRXv6UMAQgjYtVdkeBpZ5mmNFgJqD0zALH0gcFPeF6VIdkLsGr1XWR1JXb93Puw81o3TenvUUxLYq2IFgsb5NrITZ8jOJn9L+gYBZYRuHeDF1WLvRIwQcNRXaq4dwxt4DSO9NQUQhWu90=; 4:nhtkhcksmvZvwcOCuaKAnG/aQuwDnuzdu7MRnvQk10tMK/L3/w3+n1UJVj+EzyBbC+w+IezUYJmJm2cCEJEnYq4IxW5UYk/irm9qbHy4npO0KSOK6ExoqrpMi+S+vnVFNVwCSGOV5L6SzaY6383vbB00Jh8astIOi1hW7o5IRkcu25K9qPepspu/szk3gGPZCE8kMkLbqREFJN53ryDKG/L94vEHXZ2Ualqh77CXfPPxObibzdx2w+bXuqkXd+SjyQs0GfAp3bgqSsF+RoqLPBaikc9Ipzo1M2Sw0+JgUqk5Tnk8PmoKmvpZv4QzaokU X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3231254)(944501410)(52105095)(3002001)(10201501046)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:CO2PR07MB2518; BCL:0; PCL:0; RULEID:; SRVR:CO2PR07MB2518; X-Forefront-PRVS: 0716E70AB6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(136003)(39860400002)(396003)(199004)(189003)(13464003)(51234002)(81166006)(6116002)(476003)(478600001)(6666003)(229853002)(66066001)(7736002)(81156014)(9686003)(8936002)(6496006)(956004)(53936002)(76176011)(486006)(33896004)(55016002)(446003)(305945005)(44832011)(1076002)(6346003)(26005)(3846002)(106356001)(16526019)(6916009)(186003)(386003)(52116002)(11346002)(5660300001)(23726003)(6246003)(105586002)(97736004)(33656002)(50466002)(316002)(8676002)(72206003)(47776003)(58126008)(16586007)(25786009)(33716001)(42882007)(4326008)(68736007)(14444005)(2906002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2518; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB2518; 23:1zDpbUqkM0tmUsmBMoOAuUvgAjfoNSjcmIjICs1UH?= =?us-ascii?Q?mH0KBwqjjXZattqkUtHN5aWxB5Uf86VYKRjpDw6uQsnpl8VeBeduXeU5/lSJ?= =?us-ascii?Q?wxGeaHd2YtkaXOq2vlBUiTVeZAtmr9+v3WpoMGhNohntWnSedUkltQ8ux4n7?= =?us-ascii?Q?01hkeB3TtRjTsTFAMLnPLKzf+m3eLEERJtMFx4UeEduFwIv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X0rz9XTgWKEl5IDTONfnCWADqxenWYHsLmZI4+Zf3HkUCu?= =?us-ascii?Q?3BUm1vUYa9ZQabkNhk5yGMQuGHasngdSSZJLpnUUmr+gaqOqd7pNiR0eBOM2?= =?us-ascii?Q?+8TFGF51qBOznLFVoYmXQUGRrnAg84oUXtF6LqxiIBmg9an6U/gLUAB3PoTs?= =?us-ascii?Q?cI5u3YgPSNy+N9/1wraTzHnTgHjjCOiqwv5IInEzdTJAcruue/4Jgb5NnOck?= =?us-ascii?Q?Vu/rrMrYIKbYV3ssFvd1N7jA3GqAiRvoGIF9FMsKHLo/qqUix4QhZMc+E7mp?= =?us-ascii?Q?fb3CVSCT8VMWAKKZsbih2txkBo=3D?= X-Microsoft-Antispam-Message-Info: uu2j9lynxSzMRWXa0N24INvCFksZObzneKDs+KSJbb/cPqmV7NikRo5oHu1R3h4rFD5Fu1g9EQY3z2sU0TmV6qL6OFA2ZLpn87vEsKQiiVGagoU9T9BXNtJkd9L4PwOO8PzRys6GXWoGb7axXr7Dux3qp2BDs4lFQKALtSiodXYHbcYVgNy9A9XqJcQAMn48swoJoRN52Kok5VgpXrlpxSfSRLJPWBkIPgL+k06UaTYNZHVT5LRl7e0w0OJXicnyrLvulsW2+s35Mv1bIOS59MoPSVsMN0SLdtFKq9W/14qmMQnKHR+us1Rbo4D3Krod9mQH3o7cUX6rPrfU1uZ3FFVi/T5ke650DChp9boCVIk= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 6:fS+FTDAOZ2ZTYQzBifYHT8oOf5TtJzmw7EMf8D8KudTImUzb9x9S8f8i7SmIPs0JqNslFq48wYgbI7zsvcWYOy1t64AZwt1cHc4onEX5BWG5KUKfulZL9s8uOXWDt63rFrc48TuV7Yc4XvX00p0ZzzRnnEdspiydHGuql4PM8u6rAY1c8SY8y2+OXSzSDTiwIWMoTQQr5z/f1zz1yvXkoO69+CBQJWGvYQLx01KKnJ/UtraqmSE2qhURXBDmsK04lkgZeGWjfbposAr1fD1J2yTOfpyqWeXes8C/nrPVqMT3IGQEvcdOCLxnP+QoGQvnrB6CP3icEUVy+JBo9+LEi2KSvGkPT5L818xBBtevJOtrbzHTWHWsMaIH6yPxfd4ptROEsixNp/H8hrvL5QoBNoqW6vOdAHPhhzRQGUEyTKHCersOsEpQPV6Dw6H9IyBPLwH+IhAaToxwZgVnTr9Pxg==; 5:yeVOeCcPSXRQeQnc6n4PO2vzTajdsFs+cfQcJNzUvb+0V16+QVzS+tMi+BDQNYjNE++xas6pI0gbTbOOOa8c/Hf0TFIb5iE0iPZW9GX7Vz4N5xqecEfVLlB9Z20B909aBDtKmEtAgOYW95lz/9Os4ql2lFaMXpDGn3wJbkls7UE=; 24:k5dC/MEJQrN69d32l20uiuLGc1QInailVooj0JjKwA6moZ+bTqK1qDVG3lqzD0KU5iZXWs7Elq4b8/nzlN3BQeVM1I1/4hn5RlZXlGtDj0M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2518; 7:hSa64v+lL5wi3LinujTMLZ4HPhqOFjVRoyd64PZs4Axb39YskxQ9BIp+2tmkWjr4yM0FD/OZwDXn+snIsZC3yW1Wo4k8jBRB89V5qDG83jvOO8w1vvgkzMCDFcngx6KmKREvA5pIOqsw+oipxWZqOgK6riVcjXLCRLWAB57nHwQsmClVX80yB/WU5BNPoGqK0LQT99TUEbFpBR1xN/McaD+ST+SWpRkh9SMQVj4LPXla2KqIxLOO+kA91e0bghzO X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jun 2018 16:19:57.9777 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4fe5bba0-5da3-44fb-b52c-08d5dc49d556 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2518 Subject: Re: [dpdk-dev] [RFC] queue: introduce queue APIs and driver framework 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: Wed, 27 Jun 2018 16:20:03 -0000 -----Original Message----- > Date: Wed, 27 Jun 2018 11:06:13 -0500 > From: Honnappa Nagarahalli > To: dev@dpdk.org > CC: honnappa.nagarahalli@arm.com, gavin.hu@arm.com, nd@arm.com > Subject: [dpdk-dev] [RFC] queue: introduce queue APIs and driver framework > X-Mailer: git-send-email 2.7.4 > > > DPDK offers pipeline model of packet processing. One of the key > components of this model is the core to core packet exchange. > rte_ring and rte_event_ring functions are 2 methods provided > currently for core to core communication. However, these two > do not separate the APIs from implementation. This does not > allow using hardware queue implementations in pipeline model. > This change adds queue APIs and driver framework so that > HW queues can be used for core to core communication in > pipeline model. > When different implementations (ex: HW queues and rte_ring) are used Just to understand, Do you have any HW in mind where it can do generic multi producer/multi consumer queue operations for core to core in HW as offload. > for the same object in different platforms, it is important to > make sure that the application is portable. Hence features of > different implementations must be elevated to the API level, so that > the application writers can make the right choice. > Currently, basic APIs are created, will add more required APIs > as this progresses. > > Honnappa Nagarahalli (1): > queue: introduce queue APIs and driver framework > > lib/librte_queue/rte_queue.c | 122 ++++++++++++++++++++++ > lib/librte_queue/rte_queue.h | 200 ++++++++++++++++++++++++++++++++++++ > lib/librte_queue/rte_queue_driver.h | 157 ++++++++++++++++++++++++++++ > 3 files changed, 479 insertions(+) > create mode 100644 lib/librte_queue/rte_queue.c > create mode 100644 lib/librte_queue/rte_queue.h > create mode 100644 lib/librte_queue/rte_queue_driver.h > > -- > 2.7.4 >