Message ID | 1538744363-30340-2-git-send-email-anoob.joseph@caviumnetworks.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | akhil goyal |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 6F74A5F11; Fri, 5 Oct 2018 15:00:17 +0200 (CEST) Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0050.outbound.protection.outlook.com [104.47.41.50]) by dpdk.org (Postfix) with ESMTP id 19E3F5F0F for <dev@dpdk.org>; Fri, 5 Oct 2018 15:00: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=2mCxPdcAIlrrpmxgRlS/WD2T9xrYc3p2sxM+vHb19Fo=; b=Jbnd1F5bWfNsjC0dXx6zvU9ln/SKwos9jppDmVg3pATxgHkFMKKsFLSANbeyJ+0cNllHBM11n39kzEVTheZBBq0warjmfUuDW2XgJAT0R4jK9tfyG74lfudGLmIFGKAzkzFCBegZW0+hVOCFRZMJ4ksdSNYbCctA9qcbHexF47A= 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:00:09 +0000 From: Anoob Joseph <anoob.joseph@caviumnetworks.com> To: Akhil Goyal <akhil.goyal@nxp.com>, Pablo de Lara <pablo.de.lara.guarch@intel.com>, Thomas Monjalon <thomas@monjalon.net> Cc: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com>, Jerin Jacob <jerin.jacob@caviumnetworks.com>, Narayana Prasad <narayanaprasad.athreya@caviumnetworks.com>, dev@dpdk.org, Anoob Joseph <anoob.joseph@caviumnetworks.com>, Murthy NSSR <nidadavolu.murthy@caviumnetworks.com>, Nithin Dabilpuram <nithin.dabilpuram@caviumnetworks.com>, Ragothaman Jayaraman <rjayaraman@caviumnetworks.com>, Srisivasubramanian S <ssrinivasan@caviumnetworks.com>, Tejasree Kondoj <kondoj.tejasree@caviumnetworks.com> Date: Fri, 5 Oct 2018 18:28:52 +0530 Message-Id: <1538744363-30340-2-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: 67f824d7-1264-40cd-249c-08d62ac27d95 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:bZCvZJXE8fky5J4/i0/1ENcTTHuOXhxnRE4tSNSBUyKw4lhDI84Miy6a/Qgp5gNeYr38hB0D3jQ5DIqhfl69+sN8U84IfcMn9uHQXB5D9Bg+g7MY/Npi/gNTjCz6tt/QaZW5vt2iCFhIDVf8vtrR6hJzW977l2jHGrDREGOyM/7eDQ2oDdFssNB/aYvoM2jmxfHmZGL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kDTOZtpys/U80rPdDbQfHh3TT3wQApXOEoTTps5jrR3j+P4R0B8T7YULonXpQ/+oiY/ugiw8M/f/a9mjVndktSLGS7Lcq02Js20kacFm59OMZlc2vKSo3PnxG11BKfeXAdi6s5SeXDHvzBnC9EEn124Yy13Xp2OOiUHuNghVPWB7EU0Nc+1rlHvWqgqVu2mP5aDn2NQQj9hEUPU9PW/nCBS1QFXyETgMJ+JZO4vJFYhneTOKOp+eE/uqgPOF7I=; 4:KVODd1gJOOXCnjgTMC46Rby+QNd5o0EhgmKgLznVtVdSgKCyMstq+jkoZI0Ny4fz4bP7UBOcvyEV/z7ymDkWLB6pm43um3tb9UQjsauPUwAP7c+eJwhe73VxbXQgPCrnho/kxzgaIi2HGM3dP96yWLCI/ufmiaGodRERMXvM7O5rD9b74NXSYEsrDXwfZbW4Pmt4b7gd//T6duygFh1CXlQTVnMKqwQZPdXMnnAA3Fb7r76NfNn6eQcuKxJmhCXvByS/TVdOSKV3YavebUhJjufuG75VJUSfTlU0JAciYyhZ+rf4vZ6W4mWpR8ztzQ99 X-Microsoft-Antispam-PRVS: <SN6PR07MB4910962993EAF0F7B58C63DAF8EB0@SN6PR07MB4910.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(14444005)(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:XiAdnJ/Q0irhzFe5mNP9uqX9GdgKd01jfRqdt53JS?= 29WPfEMERuePBfIjftfoKtTLmafDw5z+vqEuVfc+uJnyPPGLGugoX2jgT5WVBmreXr8WmKpWG9aFP9n3MvZb8YVytalFw738zUl8LT84aGGEXP1woFiiyqFQCWjnqY4MeZQfUI83kerkSOxuibSRTup6TELSapSK3ADmc0DGKwrtZU3qc5BsIMJDfdV5NEuSjOSMN2rwvyAb+XKxXXJtB05nnXQIyJa9e2pNvkJe+Vc9MqQ8sEHH88ZlJsOWUPCutPe2+qbeZ8Xzw55ynikeb7Eh8UbUVlqXAVp2g1Sk5E9asT5XY93tizxdVB/xxM4kxuTI3Uin27Bd4hwP7f6MCzhhzppI76VBx9dabrZXmtSlw/4DtLYhwlutO63hU1GBMMhUFEfCG2M5jtZM0BqJrp8MFxm41czjxF4CPuGs+EPxD7Mw/ffz76AB4fyrHyzbnzrNueVpt4fylyzZHpu9TsvsJa32mxAUCywag/n3f4Cue6+PAuMCL/CewjP70LnA9P/rhf6qftAv781pDrfgbu3JxInKBYCGdw0M9jYQeuIr8ySh/9L+AXIqyKsac6uSZX8j2Q80Bg33bbNg8pxdJR41E/QEa4dyF8ob4/N6GJ6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6:u79QMWsdDLJaTeGSAOeg3sPgl95fuX/s2jlb7eI6cbeqjM4bDW8EgPPIjv8nUOd3aWCm/H4rBuNtx4opeW4KQl4Xs2THd+MTHqodRclaQpl+Nl91/M1CYEIlvcjdUOgezNz9QDFmZqcOAFyb68MbDbjSgtBt5g486PDkCDVZ57O4P/lUJQ1+UKUl/t4PVOPs0gVok+3puo5x9tAveeYlCs+h0Dpm/rcu1HFOwilowXmdoxsFdVd+GJY0YT1/q8824PRe/qGlvJPad7MCG3A4rVaqqMNfLXGvh4/LdtggQ8O79IWfNXq7oR+ths04g/IKMpz4UWDOVBZGhdh5QAhby8I1hzWYEOep5MrXt0Mc64ygnpf3MtdFA2+CS3nS7KLhjVhrlrf6Zt6DaxbxlU4F1SyX2fYu0H//eYT2wz35/vCvyxNuWy+n4YJx4w00Ls7+f6m44wAI75X7CrxK9JkIBA==; 5:tJt4SK4qLcMFUHZvlJOEz4R77Xmwz4TOip7M2Kk5TBgUPNECQCZcWcq0EEbANwVnS96bpVbn/eJ+BgzB2RAByDjuX527Mti4+4xU+1p8BafpDy+pGhG+nyvKoq2J2W97pA2c3sU5id05CKpiW1eUhkV7cHGGR37owgHcB2SS/c0=; 7:XSSQ6d06ESwNNuNXvIZvd6lLrlCH196l+UvrGPa/ajwkzNlkTMu9BCrqIsCThFSKRKYTlRQ5i3oEenkmd/QrKuk4bCW1ISg6rWkmh9r05Ye0a746r4O1yxs24ANYU4UhjBwBJnEnXJq+Xf8JpTs4gVN9i8Ii9g/AmGlMKh02pY3mPrvD8CLGY0QYyIn77Y2EhX2/RnrOvQ29AIlwiNzghTYYInwXDssFvp98/SyfkHE7UpN3RBsm0klnIrZ4EI8V SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2018 13:00:09.3309 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 67f824d7-1264-40cd-249c-08d62ac27d95 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 01/32] common/cpt: add common logging support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
Adding Cavium's OCTEONTX crypto PMD
|
|
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | success | coding style OK |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Anoob Joseph
Oct. 5, 2018, 12:58 p.m. UTC
From: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com> Add common logging macros Signed-off-by: Ankur Dwivedi <ankur.dwivedi@caviumnetworks.com> Signed-off-by: Anoob Joseph <anoob.joseph@caviumnetworks.com> Signed-off-by: Murthy NSSR <nidadavolu.murthy@caviumnetworks.com> Signed-off-by: Nithin Dabilpuram <nithin.dabilpuram@caviumnetworks.com> Signed-off-by: Ragothaman Jayaraman <rjayaraman@caviumnetworks.com> Signed-off-by: Srisivasubramanian S <ssrinivasan@caviumnetworks.com> Signed-off-by: Tejasree Kondoj <kondoj.tejasree@caviumnetworks.com> --- MAINTAINERS | 4 ++++ drivers/common/cpt/cpt_pmd_logs.h | 50 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 drivers/common/cpt/cpt_pmd_logs.h
Comments
05/10/2018 14:58, Anoob Joseph: > +Cavium OCTEON TX > +M: Anoob Joseph <anoob.joseph@caviumnetworks.com> > +F: drivers/common/cpt/ What is the real wording for this device family? Sometimes I read OcteonTX with lowercases and no space, sometimes OCTEONTX without space, sometimes OCTEON TX. Another note: You should differentiate ethdev and cryptodev devices, at least in the maintainer file. We have nicvf, zipvf, ssovf, timvf. I suggest to add "crypto" to the name of this section.
Hi Thomas, On 08-10-2018 17:57, Thomas Monjalon wrote: > External Email > > 05/10/2018 14:58, Anoob Joseph: >> +Cavium OCTEON TX >> +M: Anoob Joseph <anoob.joseph@caviumnetworks.com> >> +F: drivers/common/cpt/ > What is the real wording for this device family? > Sometimes I read OcteonTX with lowercases and no space, > sometimes OCTEONTX without space, sometimes OCTEON TX. > > Another note: You should differentiate ethdev and cryptodev devices, > at least in the maintainer file. > We have nicvf, zipvf, ssovf, timvf. OCTEON TX (with the space) is the registered name of the chip. nicvf, zipvf, ssovf, timvf are all multiple blocks on the device and previous drivers were named that way. CPT is the similar name for the crypto block. Jerin is planning for a common naming convention for the blocks on the same family. Different blocks would be named crypto_octeontx, event_octeontx etc, to denote that they are all part of the same device. We had to omit the space (between OCTEON & TX), since it would complicate the name for the directories. OcteonTX is a wrong convention. It would be fixed going ahead. > I suggest to add "crypto" to the name of this section. This entry is already under "Crypto Drivers". So do we need a separate mention of "crypto"? Anoob
08/10/2018 15:07, Joseph, Anoob: > On 08-10-2018 17:57, Thomas Monjalon wrote: > > 05/10/2018 14:58, Anoob Joseph: > >> +Cavium OCTEON TX > >> +M: Anoob Joseph <anoob.joseph@caviumnetworks.com> > >> +F: drivers/common/cpt/ > > What is the real wording for this device family? > > Sometimes I read OcteonTX with lowercases and no space, > > sometimes OCTEONTX without space, sometimes OCTEON TX. > > > > Another note: You should differentiate ethdev and cryptodev devices, > > at least in the maintainer file. > > We have nicvf, zipvf, ssovf, timvf. > OCTEON TX (with the space) is the registered name of the chip. nicvf, > zipvf, ssovf, timvf are all multiple blocks on the device and previous > drivers were named that way. CPT is the similar name for the crypto > block. Jerin is planning for a common naming convention for the blocks > on the same family. > > Different blocks would be named crypto_octeontx, event_octeontx etc, to > denote that they are all part of the same device. We had to omit the > space (between OCTEON & TX), since it would complicate the name for the > directories. > > OcteonTX is a wrong convention. It would be fixed going ahead. > > I suggest to add "crypto" to the name of this section. > This entry is already under "Crypto Drivers". So do we need a separate > mention of "crypto"? Yes I think it is better to add "crypto", especially for automated processing of this file, we should avoid to have two times the same section title.
Hi Thomas, On 08-10-2018 19:07, Thomas Monjalon wrote: > External Email > > 08/10/2018 15:07, Joseph, Anoob: >> On 08-10-2018 17:57, Thomas Monjalon wrote: >>> 05/10/2018 14:58, Anoob Joseph: >>>> +Cavium OCTEON TX >>>> +M: Anoob Joseph <anoob.joseph@caviumnetworks.com> >>>> +F: drivers/common/cpt/ >>> What is the real wording for this device family? >>> Sometimes I read OcteonTX with lowercases and no space, >>> sometimes OCTEONTX without space, sometimes OCTEON TX. >>> >>> Another note: You should differentiate ethdev and cryptodev devices, >>> at least in the maintainer file. >>> We have nicvf, zipvf, ssovf, timvf. >> OCTEON TX (with the space) is the registered name of the chip. nicvf, >> zipvf, ssovf, timvf are all multiple blocks on the device and previous >> drivers were named that way. CPT is the similar name for the crypto >> block. Jerin is planning for a common naming convention for the blocks >> on the same family. >> >> Different blocks would be named crypto_octeontx, event_octeontx etc, to >> denote that they are all part of the same device. We had to omit the >> space (between OCTEON & TX), since it would complicate the name for the >> directories. >> >> OcteonTX is a wrong convention. It would be fixed going ahead. >>> I suggest to add "crypto" to the name of this section. >> This entry is already under "Crypto Drivers". So do we need a separate >> mention of "crypto"? > Yes I think it is better to add "crypto", especially for automated processing > of this file, we should avoid to have two times the same section title. > > I would go ahead with, Cavium OCTEONTX crypto Hope this would be fine. Thanks, Anoob
diff --git a/MAINTAINERS b/MAINTAINERS index 5967c1d..52202b9 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -772,6 +772,10 @@ F: drivers/crypto/armv8/ F: doc/guides/cryptodevs/armv8.rst F: doc/guides/cryptodevs/features/armv8.ini +Cavium OCTEON TX +M: Anoob Joseph <anoob.joseph@caviumnetworks.com> +F: drivers/common/cpt/ + Crypto Scheduler M: Fan Zhang <roy.fan.zhang@intel.com> F: drivers/crypto/scheduler/ diff --git a/drivers/common/cpt/cpt_pmd_logs.h b/drivers/common/cpt/cpt_pmd_logs.h new file mode 100644 index 0000000..4cbec4e --- /dev/null +++ b/drivers/common/cpt/cpt_pmd_logs.h @@ -0,0 +1,50 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(c) 2018 Cavium, Inc + */ + +#ifndef _CPT_PMD_LOGS_H_ +#define _CPT_PMD_LOGS_H_ + +#include <rte_log.h> + +/* + * This file defines log macros + */ + +#define CPT_PMD_DRV_LOG_RAW(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, cpt_logtype, \ + "cpt: %s(): " fmt "\n", __func__, ##args) + +#define CPT_PMD_INIT_FUNC_TRACE() CPT_PMD_DRV_LOG_RAW(DEBUG, " >>") + +#define CPT_LOG_INFO(fmt, args...) \ + CPT_PMD_DRV_LOG_RAW(INFO, fmt, ## args) +#define CPT_LOG_WARN(fmt, args...) \ + CPT_PMD_DRV_LOG_RAW(WARNING, fmt, ## args) +#define CPT_LOG_ERR(fmt, args...) \ + CPT_PMD_DRV_LOG_RAW(ERR, fmt, ## args) + +/* + * DP logs, toggled out at compile time if level lower than current level. + * DP logs would be logged under 'PMD' type. So for dynamic logging, the + * level of 'pmd' has to be used. + */ +#define CPT_LOG_DP(level, fmt, args...) \ + RTE_LOG_DP(level, PMD, fmt "\n", ## args) + +#define CPT_LOG_DP_DEBUG(fmt, args...) \ + CPT_LOG_DP(DEBUG, fmt, ## args) +#define CPT_LOG_DP_INFO(fmt, args...) \ + CPT_LOG_DP(INFO, fmt, ## args) +#define CPT_LOG_DP_WARN(fmt, args...) \ + CPT_LOG_DP(WARNING, fmt, ## args) +#define CPT_LOG_DP_ERR(fmt, args...) \ + CPT_LOG_DP(ERR, fmt, ## args) + +/* + * cpt_logtype will be used for common logging. This field would be initialized + * by otx_* driver routines during PCI probe. + */ +int cpt_logtype; + +#endif /* _CPT_PMD_LOGS_H_ */