From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0076.outbound.protection.outlook.com [104.47.36.76]) by dpdk.org (Postfix) with ESMTP id 36E2C101B for ; Tue, 19 Jun 2018 08:28:10 +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=sTr5Oe67CLeaIXzPHoBzhMVGgaw0u2lwDYplKd6/vDI=; b=k77jz0ZHWoW67FFqIlO6aB2MR/f4RITec9HoZGFDNmNixk/eVQUlSa9z4F1WnZ7a8bDyYtCTCcuHeCyTQCeb4XkPl6dddaZ/ZQzQCT8TcE0OGhplNs0nXmlum7sXey8Yw4CcJVsMUXZVfunngSMY9jmh/U3orrXeqAtQNUc1uRQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.caveonetworks.com (115.113.156.2) by DM6PR07MB4907.namprd07.prod.outlook.com (2603:10b6:5:a3::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Tue, 19 Jun 2018 06:28:05 +0000 From: Anoob Joseph To: Declan Doherty , Pablo de Lara Cc: Anoob Joseph , Akhil Goyal , Ankur Dwivedi , Jerin Jacob , Narayana Prasad , dev@dpdk.org Date: Tue, 19 Jun 2018 11:56:13 +0530 Message-Id: <1529389574-6643-2-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529389574-6643-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1529389574-6643-1-git-send-email-anoob.joseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BM1PR0101CA0026.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::12) To DM6PR07MB4907.namprd07.prod.outlook.com (2603:10b6:5:a3::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3690df56-0bc6-49f0-d218-08d5d5add2ba X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4907; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4907; 3:isBhdu+QA3ARLI7+tEzEl3t6X9pfUQuDBTPtFJIRbicTeZriFPKs1UeP0iuWxjFSPrRDAq4BCZQJ7mUArioayoXHY4p9oTVzp57C+Mbvp7dO7f+gyR7Uyix+pUeSB3TVFvcm/a1sEYULjqa4wkMd/H96j8rQHLPfCK8gS/2OpFNX+czl7Pt96YIQ73IymcxHVQmdINdk9YpZkszbFcsKTcDjUkB4bM94q7xEWVKclu71i5Sdsd9fCSyp3vkFy2Y+; 25:xhIGFMkjvwx3Ashcya8NlxjJoab58ek0/4TeNLlderHklvZMLp6bP+k2hiU1echJAr8oHSNCYL7ldCF2Ex2475zQTfmSSfHDkhIFPqFDUkleOlYI/OuSWiyPitbsZC0PSDHDc1S5Sf2VrF11IvCYoY56ZVMyHq6uVNFyaEOrKXYjCFtPFuuRVEgYDcsmN4BclpoJMw+GdgWmwI9SpW6N4SIXyzYQ4PMAb9RwOK0Bd9Pdc1vJ8ycE6OuPjz+ndGWT+bCfkI5OCPshcyUpPacSZTzjghi/yblU8efYeVWbpjmZz0TtVbObSAO1yvbGA16H07TP9tG2rfooJt5BB3xD9Q==; 31:k40Dp4QY5H1U8kv9Uw8HM/wi6RoO0jogJu/kTW/rxL+0rZyyem9av5Tt6MlXz5F5Q2yCR7UAkmMKB31RS+Uc8VuWLoHRMfM/Ck+2iqTIRvOJK65PPFdbIGePYuTAIGe3gu75UvSfzTEjAj1/2cNOzXIE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JsZANgvlVnGi/FA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(10201501046)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB4907; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4907; X-Forefront-PRVS: 07083FF734 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39380400002)(366004)(39860400002)(199004)(189003)(16586007)(11346002)(36756003)(26005)(478600001)(25786009)(44832011)(2616005)(42882007)(16526019)(53936002)(54906003)(186003)(48376002)(476003)(956004)(6512007)(6666003)(305945005)(51416003)(316002)(52116002)(50226002)(68736007)(72206003)(486006)(6486002)(7736002)(76176011)(4326008)(110136005)(50466002)(5660300001)(3846002)(6116002)(105586002)(81166006)(8936002)(446003)(386003)(8676002)(8656006)(2906002)(106356001)(81156014)(47776003)(6506007)(97736004)(66066001)(55236004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4907; H:ajoseph83.caveonetworks.com.caveonetworks.com; 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) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR07MB4907; 23:6qZ6hKT+mCe9AbeOSVneQYOVtSPz5fS2Ts9vl2Y9s?= =?us-ascii?Q?EM0hIgQseBGEkE2mRHYvX0vnjKGexIAUcmpC6Ex+kg5GEUhZ0ZW9truTlXua?= =?us-ascii?Q?uTlOkrKecegDVZYJRYhb8KThPdJnrPMkA48QaMTDMZJjAe48vdpsslhemR+l?= =?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ZHoy5lKS3+CaFnA63i5VBZT6qg7/9y+QwQqCV5iJnzHC60Xf1J96Og/K3LLYeK+VY/H9rSd4vRNMjURzYZDO6PruIiStOcHhOvPs/OcHLQRPS6V0fSmN4peMNbJlZA==; 5:dWtEUjdkr5EK7lLbdXpRkbo2P88smoVXq26FqjpvJRzXhdrAcrCKlpPsF1LXB3wg4gARjlRRwNjhxFHEh4xWT5rJ6O3a0HUy3Es8ACOpSrzos2rzJzccsj1uzD+i+BTVQu9ZBgIUDVajmID5l70+uZ8ljFbxLz/x+YL+YB9TXUg=; 24:6RgTlYAjbyXyqblpq4eh6Ez7jQNXlxMK9jdWDPHDKVc2C4RQUWDPHXWQrPREjevqJH1dEhUgNd39IuF2XH+rVdyTg+9W03taU3Sb/sC1niM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4907; 7:Q/feigmfqJcRMNH4ZfWGr1tnZX/t3HzXnXYd/Qgl2+ANYvWvlMUsp7x5rgI+/D2Tz+YYFJoNnT3Km+7s0SYpccnHjSxPpD3spdKnhxgYm6q0EV7+lothPZM2G4JVVzocGoZb+fbXOleyoqkLlqFYTdZDNNTXyallRnlSkQR6NyPBlKtkMr2TNDk0IsyvmQt43/ucRIFQycV2BVbO3WFRQYY9ix5MBgL/lcZWDzY0gC8NzD9urFCNhbtzo2B5AU0q X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2018 06:28:05.7471 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3690df56-0bc6-49f0-d218-08d5d5add2ba X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4907 Subject: [dpdk-dev] [PATCH 1/2] cryptodev: add min headroom and tailroom requirement 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: Tue, 19 Jun 2018 06:28:10 -0000 Enabling crypto devs to specify the minimum headroom and tailroom it expects in the mbuf. For net PMDs, standard headroom has to be honoured by applications, which is not strictly followed for crypto devs. This prevents crypto devs from using free space in mbuf (available as head/tailroom) for internal requirements in crypto operations. Addition of head/tailroom requirement will help PMDs to communicate such requirements to the application. The availability and use of head/tailroom is an optimization if the hardware supports use of head/tailroom for crypto-op info. For devices that do not support using the head/tailroom, they can continue to operate without any performance-drop. Signed-off-by: Anoob Joseph --- doc/guides/rel_notes/deprecation.rst | 4 ++++ lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/doc/guides/rel_notes/deprecation.rst b/doc/guides/rel_notes/deprecation.rst index 1ce692e..a547289 100644 --- a/doc/guides/rel_notes/deprecation.rst +++ b/doc/guides/rel_notes/deprecation.rst @@ -122,3 +122,7 @@ Deprecation Notices - Function ``rte_cryptodev_get_private_session_size()`` will be deprecated in 18.05, and it gets replaced with ``rte_cryptodev_sym_get_private_session_size()``. It will be removed in 18.08. + - New field, ``min_headroom_req``, added in ``rte_cryptodev_info`` structure. It will be + added in 18.11. + - New field, ``min_tailroom_req``, added in ``rte_cryptodev_info`` structure. It will be + added in 18.11. diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 92ce6d4..fa944b8 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -382,6 +382,12 @@ struct rte_cryptodev_info { unsigned max_nb_queue_pairs; /**< Maximum number of queues pairs supported by device. */ + uint32_t min_headroom_req; + /**< Minimum mbuf headroom required by device */ + + uint32_t min_tailroom_req; + /**< Minimum mbuf tailroom required by device */ + struct { unsigned max_nb_sessions; /**< Maximum number of sessions supported by device. */ -- 2.7.4