From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0060.outbound.protection.outlook.com [104.47.37.60]) by dpdk.org (Postfix) with ESMTP id 201D72C55 for ; Tue, 4 Sep 2018 06:03:09 +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=pcaqDiiiJhFdCRMNn+qKyTgLuIkLdOXA4KL6mwMS3OA=; b=A1rAz/h/1iPdkuYUnxheoOVdMfbItglaG5DGpuhpb01+W7+Lq+x+sBjA3/dY8qppGwQHbX8mWDcjPU1t9THXyQ7WxhINtkH2DNMlfNDANR6V6rB3fd0vzd8/ZoGXNt94cmjV//PmeihHvma/M8u2pjKtsijUoMeVaHHRlv5mIys= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.15; Tue, 4 Sep 2018 04:02:44 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon Cc: Nithin Dabilpuram , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Ankur Dwivedi , Anoob Joseph , Murthy NSSR , Ragothaman Jayaraman , Srisivasubramanian S , Tejasree Kondoj Date: Tue, 4 Sep 2018 09:29:01 +0530 Message-Id: <1536033560-21541-15-git-send-email-ajoseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> References: <1528476325-15585-1-git-send-email-anoob.joseph@caviumnetworks.com> <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [115.113.156.2] X-ClientProxiedBy: BMXPR01CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::33) To BYAPR07MB4902.namprd07.prod.outlook.com (2603:10b6:a02:ef::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b1f6fe73-5840-4e7e-f35a-08d6121b46cb X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4902; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4902; 3:yxFN6kt8BZvjtv9TEQCo+v0ED7YfIpiOGjZjxr6sBwHnhgJDB0LYi5XfNVJBxAZIbcpszv9iEcX0MeKT6HeaahaDQO9kcGaKpq6M9DVOtYgCoTQiVYI2vBeMblfKVvQCinkD1qHifbZ0HhPSlb7Lm7S33oitGOxdsb1+ziUZY87yI2ctsbW1QTAAuGrWjv506xXysdtzRBQNTAnlQ2ULtJLB4W8cGHFQUNOI3QnPQcXbObbOVfFcAIzMXcxTRg1o; 25:qSxNlR7HhSucvpKDN7lKWS4t9twjXY119MUKIgx6WpprLBp6wbZvCT86BTot1WnvT5fAGMNS5AkvbJ6lnnplEn33Al6E2bExzGzITtSIF/TMe8GYwC2hKtDW16Hb1xFxA99eK8WnYV9c5F4H6JSR4bO8N+Lt2k+qND14oSp8LxsFTdN3n1YG1ccpd1HS7hqdAQJn7qRhRpfCy4vwawy9xsDJuKNSi2WzGsTBRfqhq3ecCUTE4e89Hu8JADGjwmijIv4pmgNrr03p7OD6NVAHlWltFbX7PDDBn28RqVI4shWQxYVjOD5Gr57GFvlWzNp/crJ+xqNJd5wXR1XFrcGNcQ==; 31:wEPgzN3rQ/TC6p8aEkQ4b0HEyrT3pJF6mj2+WQrkv5UDhFxCB9AjXZhkCZsQOGGPOPrR9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WRVKaMplRvU3TTIvzwNTDeZCt6g9JuXE8O66z79iXAcwfKwZJ0fJBg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(3231311)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:BYAPR07MB4902; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4902; X-Forefront-PRVS: 0785459C39 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(366004)(396003)(136003)(346002)(376002)(39860400002)(199004)(189003)(26005)(51416003)(52116002)(76176011)(81166006)(305945005)(81156014)(7736002)(105586002)(316002)(6506007)(106356001)(6512007)(8936002)(446003)(54906003)(25786009)(6666003)(68736007)(50226002)(110136005)(53936002)(16586007)(42882007)(386003)(5660300001)(2906002)(72206003)(50466002)(6486002)(36756003)(6116002)(107886003)(2616005)(186003)(3846002)(478600001)(66066001)(476003)(8676002)(47776003)(486006)(956004)(48376002)(11346002)(4326008)(97736004)(16526019)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4902; H:ajoseph83.caveonetworks.com.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; BYAPR07MB4902; 23:ubJI0Sp9BhAS+Yjzs4UhBBMTuldSfR1X7IMs6hDiI?= =?us-ascii?Q?yDTjdIYegjL9lPR8oZki3pcwtxDouBrUAWYZjYrQgJaxsN9+/liAzr3Qk6/M?= =?us-ascii?Q?5Xa41yEDQ6b9LG0jZwGNXvJ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RDfWYNxb3NPP/GrEqx6W8eeIQ+5oWpTtdD8ZLYm15ToiUpT+YRzTUDa2SUZos955J+C+rae3APPWRGLvIOnHvH2JIHQY4yLO44x5htlKaRxKBLnLA42FREVKy+xezX9YW6n45dFkePZOEiXXl0DegKzGwwhsC9wXV/LE5xYS4VVeDlfPM/1UGsAWtbBWMcYC29+nj6r4H1Xn2Tu6KrsSJZsW6gjlvidJjV0PqND1w==; 5:mRgXQOb7nr7TW+gY5JX45OjnroVLhCDec0GXUFanE8a1cjWQx/ToSUN7XMvj2Ex6Acm7SdNh34D+xp41C+xFDuXvLNKZvuyr1KtdSQ1ohky7mtYMQjgqgz/byhZAs0pSwu6B0j1C3LVeAyFpZtpJaRNulmM/cis6jAfgNtE7ZBw=; 7:CYndjrFmL0jChEYh9SF71QM6vss0/7sA3PVa19V0KrKpkxprpgWnNoA224DLCbS5VOwGhlFDqgiWsGjktzleTKqZQt9RW84qiWbe89MiWd87NXcbd/StrvAmYBMhAcXVbj5DY7ZWnsbQYfogOqXJOQHYLf8ak1XN0jJLBDAMmprAqPXA6jLwq173bFLrI2F2Svyo0CxX3rrX9lb9eT2Ff0eMXfgjh37YyAFRjwQMzBlPRhkZgcV8KFfs7Jl98Cyt SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Sep 2018 04:02:44.2254 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1f6fe73-5840-4e7e-f35a-08d6121b46cb X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4902 Subject: [dpdk-dev] [PATCH v2 14/33] common/cpt: add common macros for queue pair ops 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, 04 Sep 2018 04:03:09 -0000 From: Nithin Dabilpuram Adding common macros required by queue pair op functions. Signed-off-by: Ankur Dwivedi Signed-off-by: Anoob Joseph Signed-off-by: Murthy NSSR Signed-off-by: Nithin Dabilpuram Signed-off-by: Ragothaman Jayaraman Signed-off-by: Srisivasubramanian S Signed-off-by: Tejasree Kondoj --- drivers/common/cpt/cpt_common.h | 3 +++ drivers/common/cpt/cpt_hw_types.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 1f78d42..61621dc 100644 --- a/drivers/common/cpt/cpt_common.h +++ b/drivers/common/cpt/cpt_common.h @@ -15,6 +15,9 @@ */ #define CRYPTO_OCTEONTX 0x1 +#define CPT_COUNT_THOLD 32 +#define CPT_TIMER_THOLD 0x3F + #define AE_TYPE 1 #define SE_TYPE 2 diff --git a/drivers/common/cpt/cpt_hw_types.h b/drivers/common/cpt/cpt_hw_types.h index 8cd1bf8..4b70dde 100644 --- a/drivers/common/cpt/cpt_hw_types.h +++ b/drivers/common/cpt/cpt_hw_types.h @@ -20,6 +20,10 @@ #define CPT_VF_INTR_HWERR_MASK (1<<5) #define CPT_VF_INTR_FAULT_MASK (1<<6) +#define CPT_INST_SIZE (64) +#define CPT_NEXT_CHUNK_PTR_SIZE (8) +#define DEFAULT_CMD_QLEN (DEFAULT_CMD_QCHUNK_SIZE * DEFAULT_CMD_QCHUNKS) + /* * CPT_INST_S software command definitions * Words EI (0-3) -- 2.7.4