From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0044.outbound.protection.outlook.com [104.47.37.44]) by dpdk.org (Postfix) with ESMTP id B242F1B458 for ; Tue, 10 Jul 2018 16:43:23 +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=qU2OFcESUHcVq0FNVZR7NYrX6LFEZQd6M7YupsVX0po=; b=ccCJGvzP/Y2JTlHbaekQfh78YmyfBbonsqCqKtJgiW1kybHrhycikJDgM2TKPHwkih41WbCRferhxe6XxIZmW+DnG9bIsSUWXlMlcHdwZtGpiSEVNhsxCflP3E0iDX4QBHEoZYGYSH2MheORPqICTYLtptY4ajlR/7cMwM9jHYw= 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 DM6PR07MB4905.namprd07.prod.outlook.com (2603:10b6:5:a3::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.20; Tue, 10 Jul 2018 14:43:19 +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, 10 Jul 2018 20:12:37 +0530 Message-Id: <1531233760-4929-2-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531233760-4929-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1530712550-18099-1-git-send-email-anoob.joseph@caviumnetworks.com> <1531233760-4929-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: BM1PR01CA0100.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::16) To DM6PR07MB4905.namprd07.prod.outlook.com (2603:10b6:5:a3::10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ca8cf30c-49dc-46aa-7a13-08d5e6737c26 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600053)(711020)(2017052603328)(7153060)(7193020); SRVR:DM6PR07MB4905; X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4905; 3:svlU3K9m58wIGXX9z6LIPqe8LbUrObHrzKQcit2b/Y7IJmdX6IgMRXKAkCFL2k7e+OWIrf9yiIbrvy7W0aKY38wVhkRA3xaQo8emDmGatBWUzQKbiSUoiSCoP38SmrAqaFY8vfassctGp/CVf0QjyG82eglmmi0znggD2VWOi8W9cyTxfvmirhvGby3XifG9iqMjNzKpUI0xK5BaGd1Ei+bvGd/6sBCmrQAd6JMyfnJmBKNkCueclrYeUdiTsBe+; 25:7FxC+uPUjrU/N3UkQdkL1H2f51F407VBa9hlBxFleSOX3QWjQhZV16tPlca4wn7TBIdRc4UHTl/sZKQNbXWBQZyvvfbpDm4DF6KK5VCb1fEjN3+TgSyjh/7B7GYC+fyqjDHWBIdkrgC+Xn/7tilM9ua6eswqW2XAMrARvvzKEuqHXp0D2XmJxURENZc6CrF1ME1kqCIVOTpAhMhh1jJU+8sqB0Q2IqOkt7Sq+5ZFNT4lplCZXQvLJ0LlEci9hLBTLPg3IhHKbAYoKzWjCpBGPq1EGq7a8RX2ILKUgiQJcX0sIdD19oMXHjhJ4g355zXlRUoB/wqM1gf9sACsbG5y2g==; 31:tir8pZTMyWmbyfJ57a48AP0SAD2aZMtYRX+6MG0uWUiV0SvIMvxRTKc6Ene1Omj4m0IbfB6n7HkXYIHZGUpoizPeHCsu4vhA55Ba6Sa+Jb/CtfWGcHoYfxs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jCjdR7aZobSyfHbUGRN/ZlF/4e1lXH5kTMeaIfTMxILQ5RfxG/20CHrzC40oE+b+ 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)(8121501046)(5005006)(10201501046)(93006095)(3002001)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:DM6PR07MB4905; BCL:0; PCL:0; RULEID:; SRVR:DM6PR07MB4905; X-Forefront-PRVS: 0729050452 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(376002)(346002)(39860400002)(396003)(366004)(199004)(189003)(14444005)(476003)(26005)(3846002)(16526019)(386003)(54906003)(55236004)(110136005)(2616005)(6506007)(186003)(16586007)(51416003)(6116002)(7736002)(478600001)(105586002)(25786009)(106356001)(305945005)(8676002)(81156014)(81166006)(575784001)(76176011)(44832011)(486006)(956004)(42882007)(68736007)(11346002)(446003)(52116002)(2906002)(316002)(50226002)(8936002)(6666003)(97736004)(5660300001)(50466002)(66066001)(72206003)(36756003)(6512007)(48376002)(6486002)(4326008)(53936002)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR07MB4905; 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; DM6PR07MB4905; 23:tXtYplrerhC1p1X5Vt5W1aQqBeZWhN5qRuzcrR1X0?= =?us-ascii?Q?4zE1BYbGlBJCPTUImqtg0RVUUpXB1heh+9tBqd4Ixlc+XYQ6gEEu8Ey9+NHx?= =?us-ascii?Q?A9NIgS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tn6OqpvpwG2e259qz4odndavTHzY++bfWiPJe8QO5lP2ktgQ2bBUG5n8zbATdhf77hRioqR7bAEpwfcPCi21CCtZq0BG1a54IDLr9mPawSIQZbUTFfioeJyiLqzM/BptCorweGF8+tRU2hYuWdgLH+2VqVnOHF/jUhpYQ8Ay+aJO6opjHAgR5UZEs6JXU5QN2vq3FDEFVLJY8fZQ5glg8SIug==; 5:rgEQ8wmj2Jhro5E/46h24l1hzFOX7FbbI7mVsp5U4tOb1UV9T9pSbcpC3bdtYyqNVCQN6HFAGUrjUktQlZsOLfPMa31cMtK38QBDrjlMBhYgaSs56XFwtOvGbnRYvHtVP+bhe4SDtWWWdu+1AmjdZYqoZa8C1SN9i1qyWRHpPkw=; 24:KpbM2eP8sIMDksVC9l+qIJBCXEusk7vPDTo5kO7pcP14mSI+DS/uIQx09DHG0jvuyTMXTtbs1lOeqVumLTlrJcGrJMo0Ka5HKS1bHyf9a2M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM6PR07MB4905; 7:J2mak/c9bxAv+hLsqSunntvFgM1a1hIuMcR3/S9P9NUetFcQBqFiJqzY8d1klQUO6mebXevdhgJMbcGkXgS2sVHgmW/T0TQoNtn2htiIFdTon8MHQ+4xTamND/L3iaLiH03lK/enQyBkQwomO2ffMifX1dXe2JdRXiSJri76Qmka3p+wADq3PDxKI5N+HXDORMx1or4jefzAW5TmMuZG05M4fHiX/Z02HT55ntbn4VcGbhTs1ERo+LrRmAHxpchd X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2018 14:43:19.5067 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ca8cf30c-49dc-46aa-7a13-08d5e6737c26 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR07MB4905 Subject: [dpdk-dev] [PATCH v2 1/4] 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, 10 Jul 2018 14:43:24 -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 --- v2: * No change v1: * Removed deprecation notice * Updated release note * Renamed new fields to have 'mbuf' in the name * Changed the type of new fields to uint16_t (instead of uint32_t) doc/guides/rel_notes/release_18_08.rst | 6 ++++++ lib/librte_cryptodev/rte_cryptodev.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/doc/guides/rel_notes/release_18_08.rst b/doc/guides/rel_notes/release_18_08.rst index 5bc23c5..fae0d26 100644 --- a/doc/guides/rel_notes/release_18_08.rst +++ b/doc/guides/rel_notes/release_18_08.rst @@ -70,6 +70,12 @@ ABI Changes Also, make sure to start the actual text at the margin. ========================================================= +* cryptodev: Additional fields in rte_cryptodev_info. + + Two new fields of type ``uint16_t`` added in ``rte_cryptodev_info`` + structure: ``min_mbuf_headroom_req`` and ``min_mbuf_tailroom_req``. These + parameters specify the recommended headroom and tailroom for mbufs to be + processed by the PMD. Removed Items ------------- diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 92ce6d4..4e5b5b4 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. */ + uint16_t min_mbuf_headroom_req; + /**< Minimum mbuf headroom required by device */ + + uint16_t min_mbuf_tailroom_req; + /**< Minimum mbuf tailroom required by device */ + struct { unsigned max_nb_sessions; /**< Maximum number of sessions supported by device. */ -- 2.7.4