From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0069.outbound.protection.outlook.com [104.47.33.69]) by dpdk.org (Postfix) with ESMTP id EECD25F62 for ; Fri, 5 Oct 2018 15:01:15 +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=K2x5nxOKvmCEV2uj4lq6jN87ik5V/j5wOTIvLebqrsA=; b=gxtXXVbB8JhMdnlnQsCNB8SrvenZQR7+QNy3wXJh15jNZRayCeJVJMPWagCbw7SHU+RHnZsQ8tvyvXBf1MDHUJpHYmmRq+gypHe5m6tkmIGNpkKJ+2KEUoGr6fhObqaOFdSBbKGbpbcpHD5HjUV3/t4f8uwvvQEIwGSex0kYcxo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Anoob.Joseph@cavium.com; Received: from ajoseph83.caveonetworks.com.com (115.113.156.2) by SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.21; Fri, 5 Oct 2018 13:01:10 +0000 From: Anoob Joseph To: Akhil Goyal , Pablo de Lara , Thomas Monjalon Cc: Murthy NSSR , Jerin Jacob , Narayana Prasad , dev@dpdk.org, Ankur Dwivedi , Anoob Joseph , Nithin Dabilpuram , Ragothaman Jayaraman , Srisivasubramanian S , Tejasree Kondoj Date: Fri, 5 Oct 2018 18:29:04 +0530 Message-Id: <1538744363-30340-14-git-send-email-anoob.joseph@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538744363-30340-1-git-send-email-anoob.joseph@caviumnetworks.com> References: <1536033560-21541-1-git-send-email-ajoseph@caviumnetworks.com> <1538744363-30340-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: MA1PR0101CA0036.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:22::22) To SN6PR07MB4910.namprd07.prod.outlook.com (2603:10b6:805:39::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ea0ee28a-d6fb-4ef3-b563-08d62ac2a1f4 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4910; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4910; 3:PciRSEqeYG+ONpE0FPmFMNeeQBv7MLJrBjjVOS4KWTeyc7stzPwr3kawMOsqQGdhg37zHK1BMkB8UpRB39H0kO1NhZnQWU1RzhpoNhvON0bMeYhjXsrYPmkWIigOqcyMmr7sY0oPcxwca61FyBsMCnKXqPRgEkhicwjt+JCIM/GgwTKhAJUnL1SBeNWK7jY352iLSnk5OyQdo9JK4VmKBB23jaWK+f2ZbLYZvNaSrXRE7HKydyHHTR+Wzt0j2FPW; 25:Ny4fI7031wJbF/2FevXMIpsF0n7QdDzXC64ujZqSC0Z52lPZ+eV3KesdEzm1m7K0IG64YhZTrEdI0s0TOCdMUdkc6r7zq8W1HY1EwvCGZOwG4ImJp+VDDIoceuI6k+mI1izXf9uU7L49Uo+KLBkq99D7ZEwiMx55sbbwsJhjg2JswabelxPbkYf2Nt3MwVmtTX1iBRGOJRT/OQTGD58otgvSleveSOMWiqeJBoijWgVozf0e79CRtoCpAKP6Bo6ijQpaqMo5P+PFuRCSl1tmpB2ODv9pJB/5t1Ls9Nn3tB/RhZPt8LyM8qng9ORhCPiOBD2vfQjNz4pJLHSVaFbmhw==; 31:OcUyLbkBeMRLfMkoC2GVCOoM9/mxBFCuLa0JyBR1Y6E5Eg32soihLKKa0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QtkeemF53GDx0eS6Ms2v5+qON42YG2i8xcWLzE+HeB+dhGQMtrDw23dzeQg2APFWA== 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)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(149066)(150057)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:SN6PR07MB4910; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4910; X-Forefront-PRVS: 0816F1D86E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(136003)(396003)(366004)(199004)(189003)(51416003)(76176011)(11346002)(50226002)(25786009)(8936002)(48376002)(305945005)(186003)(16526019)(110136005)(6486002)(3846002)(446003)(52116002)(6116002)(81156014)(8676002)(97736004)(5660300001)(50466002)(4326008)(956004)(42882007)(2616005)(68736007)(478600001)(54906003)(7736002)(81166006)(6666003)(16586007)(107886003)(26005)(55236004)(66066001)(386003)(47776003)(6512007)(72206003)(44832011)(476003)(316002)(36756003)(105586002)(106356001)(486006)(6506007)(2906002)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4910; 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; SN6PR07MB4910; 23:qIZFZZFnYTdv3/pyF3ZTnuXnii1LLLN6rOgTCN7qn?= =?us-ascii?Q?lLhNPYuDzVUt42zU8mVeUb/hGtFylGGBK5xPo0ZCSnTyh8iGcEfwAZW6fCjQ?= =?us-ascii?Q?9RL1wXUbc58g2+IsqCGvIhMHIzfZzo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Q5Kbp/QYZhpQmm4TdRaEL//sFbPRl50mUIZabCaICyH7F4TaHuzxx6PufHoy39BPRvkG2yHpS2iSfiaSARxoU1SsKoMcM//0hguNhwTZX2oTACt9n7jOKeJbRnT6HZIhE9a6MD2uLInUxbcD/FmtpqGpJMLemwQ==; 5:rxxKnSLJBrtVtG+M8BLZwW7CYHKNfROMUjXIaAT2A+NW2ysmVRmN8xvvvtxL7mauk7o2pBAyoAEnucQB/+U1CwaDrdSbcIjV6RDl6+ZJuyo/4glaa8muC0LRaDPEXR2SlOXAve3HRhaXoNzxEb4dOlvgk7C8ZiWkWUTmPGeH3TM=; 7:Qn5Hib4jjywKW6+TMnUWYH3BLDh+D9KyFtleKu95AzSoQb7uhumiPYVdSIKPnv9o2o0Y+GlKA4VDRANBSGj9nPsW3rBMRX5vW5EDVxQ732Fagx8aD0u5YXqMubFsSTLuYwMnfVL30noFwTbJbgAzHPlixSoCyWlrmCqR4BC1q2rkhXOSCu/Nt6eWYOg3rHPX4qDug+f5ogGMwO28FuKTneY42kjEhOVNbIjO/RY5FniIWlFTsf4OBEh/OhgyoJ1j SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 13:01:10.0149 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ea0ee28a-d6fb-4ef3-b563-08d62ac2a1f4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4910 Subject: [dpdk-dev] [PATCH v3 13/32] 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: Fri, 05 Oct 2018 13:01:16 -0000 From: Murthy NSSR 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 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/drivers/common/cpt/cpt_common.h b/drivers/common/cpt/cpt_common.h index 88f4902..7333c13 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 0a98621..cff59c7 100644 --- a/drivers/common/cpt/cpt_hw_types.h +++ b/drivers/common/cpt/cpt_hw_types.h @@ -20,6 +20,9 @@ #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) + /* * CPT_INST_S software command definitions * Words EI (0-3) -- 2.7.4