From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0057.outbound.protection.outlook.com [104.47.38.57]) by dpdk.org (Postfix) with ESMTP id 12CBF1B1F4 for ; Thu, 30 Nov 2017 14:13:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YJ9Oq2HzXCuviZQbkAeicosuABbAhA6rSRpoaTmr4JI=; b=Bdu8WH7C6ute9+y+DGEmGx0Lu+4F0fSD1Lznby9K5PJOosDPqDaNA4Vx6Vng2PgsYnZbbsSEFD7BWm/f1hve/0NIn4HYdQyZlPm8XXLIFP4FrBT5rwzkLK7TfG7aKCJdozXzlprQxpN7C5bJVy8UQTb54RLHl3ToQDppcC9R7sw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ravi1.Kumar@amd.com; Received: from wallaby-smavila.amd.com (202.56.249.162) by BN6PR12MB1508.namprd12.prod.outlook.com (10.172.24.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 30 Nov 2017 13:13:10 +0000 From: Ravi Kumar To: dev@dpdk.org Date: Thu, 30 Nov 2017 08:12:31 -0500 Message-Id: <1512047553-118101-9-git-send-email-Ravi1.kumar@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512047553-118101-1-git-send-email-Ravi1.kumar@amd.com> References: <1512047553-118101-1-git-send-email-Ravi1.kumar@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [202.56.249.162] X-ClientProxiedBy: MA1PR0101CA0047.INDPRD01.PROD.OUTLOOK.COM (52.134.137.33) To BN6PR12MB1508.namprd12.prod.outlook.com (10.172.24.149) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: c0baf918-8c50-4301-4d29-08d537f41b8d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603286); SRVR:BN6PR12MB1508; X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1508; 3:u0OVSVHuUQEd9r64UT0QgXUAcbdsvQVm3eIUBmRTk2ZfmUKi1d4oLP56WESImCk3o0LLR6fBdaE1SnBsXiFQz0wYyyi5PcHfqy5B2iihoT3+MA4BkIQebnYZ5CUOOPh9BX7vVAaqwtlnz123f7sluRj6giiIp8EszlPpGYSUzZ7dp3/Rwr8aOsv505+S/hmogS6T0qlajaOiAkDnEkTFXsKI6yWtp07eQOgj2ptQIvmxaf4ElhCjksZF/YBcuu1f; 25:qZYguB1MyWsrqAM4b6QKhYzP8lOCmWFDQ3dPF3OwYGKwiIdi88pnMBkhdqGdT+GdB685s4yAZvq1RuOe1w35z68vRVZ0qBoZ+Bpig1of9rpDyw6c/6w/O0j4zzLXj3y7dmOs4tXPYOtjBxcxqg4MTyhB47CT5O0jcPTyXxHzEcAoKImQmRszaCJRBsekBU/YCDjcELpW3n4OW7zt4Zlkc3j+lvJ8XkrT601fKjXT7eVVw8qOS+6TuyF7PTngKJk5dLPM7r6jDlEM+/pSSBT2xrv2pjvFcSebXLquuQUc0Pl1CFko2XUNc9bjiRoGfUjwdAslZ7l2JgSbm4SoQ8qr8w==; 31:Y8x1E8T+11K/pw5jU6EHkLKTlbclcPsLrvfrL56+2b30fqVQepk0crNNqsN7MSD7DfxlEUnEBqgrHZfcLtIus50dv1yLluHnokZIYIfF7gttG3kz0GJTMjrrgwS1Mws7jclKbs+e1PAKwFktugc4filocHHAd3Um0MXxJaHbvh2IXCxJFSSL+ayx90W+xYdf2AST/oJ7/utuOo2R4cerOcwZMSXmg7nl4WEwnTF8j0M= X-MS-TrafficTypeDiagnostic: BN6PR12MB1508: X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB1508; 20:NxrvCKs9O1LTPWOlm9PrwQEJrmAp7F+jwWD2VN38RQkZHfka3p85XSBQjcDlLDQVBB+FJCoh97CYTVUeJsBw0FPI7diI8PC2L6vil/zuzV793FlCuEbGQspokhiZMdOEPNAA9ZkKNQKF0kslFUvezZ+JX06mv6FxsHTZg+MnqAKeX+0ZS4N+85RSJkYl6yikolSxO4De2KCkC2y7o1HTEEvFlclyxhTHvjg/HAi6XLdBrTtItTB2S6K03lzEm6V1c+KDsmXzVoz/XAsvQ8Bo4b2MfC+JJdi8U7/aPMTmLPRukYcmatbI0vHWLzDBjqkRfhsCUDgPV0ZhAbzb7+od48TXzCVwQTSTN7prdnLaaZvcqH98F0ImNL9rLhUn5WGW3yT7Uk/gtNHp5QVqNXTa7bG9kQyxlWng4lUQjYjRi/hWZC+Hvi7H3enrMWIEW9puxB6ZVBdruVCSaKh/0k+3nqszxtHydqH68HYkTtdwNt2Nm4D+bkJ4Coeud8ZP/NFK; 4:ZaYoGfrX7luu9JLIXbQODRc6GM7fSGebJCTC/Mh6RMMwX1wZp/Xh9fzuxdIIDJkgKT98vTNUOlO88m5exKdQf6VEvKiOinvY2bjXPQKRz2uuLum9B69bzZZ1xfMnoR/+KrEkvRRzBsyvtuIbLBeEqVVLPlOfL0HU7t9ac6bw2zUMgJcB70Q3YZplgbKWPmCAMmJPZ2gLowJuV/AQ/gVwDn2dHlSpANlI64OqI3fqhuZgK7OW6p74SIYwszUKidhdb5nUt0+fMdKEkpBKLez2/vOC3hwiqKY8NP8TTjGq78jkdy4w2C8B6K7fxCuf0/J/ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(3231022)(10201501046)(6055026)(6041248)(20161123558100)(20161123555025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011); SRVR:BN6PR12MB1508; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:BN6PR12MB1508; X-Forefront-PRVS: 05079D8470 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(346002)(376002)(366004)(39860400002)(189002)(199003)(36756003)(72206003)(6486002)(16526018)(5660300001)(101416001)(50226002)(97736004)(8936002)(50986010)(76176010)(8676002)(81156014)(105586002)(81166006)(53936002)(53416004)(16586007)(6666003)(478600001)(106356001)(7736002)(6916009)(2906002)(50466002)(2950100002)(48376002)(52116002)(51416003)(2361001)(305945005)(2351001)(86362001)(68736007)(7696005)(47776003)(25786009)(316002)(3846002)(6116002)(189998001)(66066001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR12MB1508; H:wallaby-smavila.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR12MB1508; 23:zt+Se/qIX26BU4KIOFot78pY2qbeT1fSlSuLlBSI4?= =?us-ascii?Q?SlQ8oDKbwpoPO7czOL900uwawdtte1pDjqh+WfKdzNDznM+q0B+IsY1aNQBI?= =?us-ascii?Q?iOL2wQKwc/4K+mZj3VEbapJWv9Z6Cq6hGwSTVKZcVJq97Sd4Kcq/eMPjjUSj?= =?us-ascii?Q?ufguswaQ5iXgY+ZNnuh1F2h21v7DNKoVy0H/CgEC5gZoX9ngqBQTYhaH5+Oa?= =?us-ascii?Q?472WpXn13BKZ+f6MhTHQtLnnT+4McevUXVa4dtm80Anj7BORucWwnI2AVMy0?= =?us-ascii?Q?QBDTReoFLaUAa5J5i1YAAsmXOddnx8PIerepO2TM/Nb3ghi755RcoTS3oATF?= =?us-ascii?Q?x/mCyDxR171skLeQayXdQnTt/fmqh2F/rM6Qe1osDFfMkecbasK3p3N7zmzj?= =?us-ascii?Q?TpdIknY0uh3U4teCPXJRc9dhAHQOCqxEg5UtziLzvumu5N7ZWIUsvvw86FuR?= =?us-ascii?Q?3bA0V//6svdOmv9OC348soIZGasiCp6obgwzKYNaehxt9xmxXeB9xm0by0S3?= =?us-ascii?Q?/dCUGekmBEOSOSqmgDefJML7GV3ox1nEJNABVec3Y2B+dxr9GCTSmv+XpZEJ?= =?us-ascii?Q?7kvyci2PAxZENdeJ56cmW929/a2LvQcBA9vYn10eOlc121/JHG3JaHpDyxDQ?= =?us-ascii?Q?wjEGoFwpA76juizXl1/x3DyAFvqYTObbU9vyfL0rU+e+qjOroWPZQGD449cU?= =?us-ascii?Q?tAeTKqUK7l5+BVw7PjUzFVCOvhN7ydnilR5fCYnu6s0vWAn5s8whNQPRyMEx?= =?us-ascii?Q?WDPS1mXz/NT8YZ73jhMhSav8O7zTPp8QXlE92fYrcM3KzsAAVtWf92C9KFz6?= =?us-ascii?Q?plKltwg2QJFeYs3OEhVOpXSqRi9Qp0EslkR732+8ajQ5PBZCA1gs1MljA5an?= =?us-ascii?Q?pDXzSrnV5ehSRZuX8AAJ0jhqaOxSwOECGuxADjmkiqPj/iQav6vlVbZSjn7P?= =?us-ascii?Q?6fDFMvvD8ft170IwtL3zbwBWAynJGzskVmrYr8Aosl2aRlZ9kU5luM+zYgNf?= =?us-ascii?Q?HUmTj8bNBEt/sHHwGzhY/IUjHo4/JpXXrNQEQ1qBxf4Q8B+VpcyP+61zPg2o?= =?us-ascii?Q?z+hgqP+1sB/cyZF/ozkxe6MSl4nCBpBPYbSDV51EfJqcxCGwaL9mt5Syo9lP?= =?us-ascii?Q?siCd3SFGi+0kuxynaIsffoA4fvHs3QQ3k3tBAWJF1V1J4Qjqv3D8tz2woz4F?= =?us-ascii?Q?2ZwotmPvg9ijSaPN4B/hy2lZDeLc+SSTf9uLLGKyZkDYX6+PtaKrmqhew=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR12MB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VvObHT/pHpW8VflVmP1FkvO3RT0CKOaTu+P9BgREc8p2iOavf5X6Y2bGTKdw6vbCsKpF8GEUMjHlDxwbzzzR4Tgb8cvCuj+HoTakGpNp6d6+JFBs4i0Dreu/5jx7a7Jq08goaB1ahbmlrwByss1R077llMbebpU9gQm6Fojmi4ax2eixC X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2017 13:13:10.7523 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c0baf918-8c50-4301-4d29-08d537f41b8d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR12MB1508 Subject: [dpdk-dev] [PATCH 09/11] crypto/ccp: update queue-pair release to enable reset 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, 30 Nov 2017 13:13:13 -0000 Signed-off-by: Ravi Kumar --- drivers/crypto/ccp/ccp_pmd_ops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/ccp/ccp_pmd_ops.c b/drivers/crypto/ccp/ccp_pmd_ops.c index 9e94dcf..daeb59c 100644 --- a/drivers/crypto/ccp/ccp_pmd_ops.c +++ b/drivers/crypto/ccp/ccp_pmd_ops.c @@ -647,8 +647,13 @@ ccp_pmd_info_get(struct rte_cryptodev *dev, static int ccp_pmd_qp_release(struct rte_cryptodev *dev, uint16_t qp_id) { + struct ccp_qp *qp; + if (dev->data->queue_pairs[qp_id] != NULL) { - rte_free(dev->data->queue_pairs[qp_id]); + qp = (struct ccp_qp *)dev->data->queue_pairs[qp_id]; + rte_ring_free(qp->processed_pkts); + rte_mempool_free(qp->batch_mp); + rte_free(qp); dev->data->queue_pairs[qp_id] = NULL; } return 0; -- 2.7.4