From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0076.outbound.protection.outlook.com [104.47.33.76]) by dpdk.org (Postfix) with ESMTP id D2C77F614 for ; Wed, 18 Jan 2017 10:16:21 +0100 (CET) Received: from BN6PR03CA0053.namprd03.prod.outlook.com (10.173.137.15) by BY2PR0301MB0743.namprd03.prod.outlook.com (10.160.63.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 09:16:20 +0000 Received: from BY2FFO11OLC004.protection.gbl (2a01:111:f400:7c0c::163) by BN6PR03CA0053.outlook.office365.com (2603:10b6:404:4c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 18 Jan 2017 09:16:19 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; infradead.org; dkim=none (message not signed) header.d=none;infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11OLC004.mail.protection.outlook.com (10.1.15.184) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Wed, 18 Jan 2017 09:16:18 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v0I9GEJY006340; Wed, 18 Jan 2017 02:16:15 -0700 From: Hemant Agrawal To: CC: , , , , Date: Wed, 18 Jan 2017 14:46:10 +0530 Message-ID: <1484730970-2832-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131292045785699668; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(336005)(39860400002)(39410400002)(39400400002)(39450400003)(39380400002)(39850400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(2906002)(68736007)(50986999)(8656002)(38730400001)(85426001)(189998001)(6916009)(104016004)(50226002)(8936002)(54906002)(77096006)(6666003)(36756003)(110136003)(81166006)(48376002)(69596002)(81156014)(8676002)(50466002)(5660300001)(626004)(33646002)(4326007)(2351001)(86362001)(305945005)(92566002)(5890100001)(105606002)(97736004)(356003)(47776003)(5003940100001)(53936002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0743; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC004; 1:K2r5zG2fVtPtaoJdbN8z27iIpjfWM4VqtMjqg7WkMbqZ7oWw7/Iaejwj97CKk/05crm0FRiIdhQRt4amP0EfdLYzGoCKOPtee3PudmEoyQkWWUfPjwfXK5/ZICeqLbLGwuw0Hfig8QWd8vXPySxTHwsLSo72fP2MsfJYhGDBoEdkJZgaNI81K0jObfDjW/taM5w7zRjuDL16TgA4ZuQL8pt8P9zGHADVs71n0xhYq46lZDKwJ4HKldCLFvyG5rHtfAbeRb8d8FL1IoxE+OMwgxQIwaOq6vT30Ol4915JnUKjiHkoHYpUwycIyrUs9fJ3Be89afMMebvPH5LYqkr1287vkb0K/rrddgyM9RoFBCtGirVuMBN2hUW8bW33HnxbUdTfaPy0KSBCqccQJrslVHpISuTCEqIs85P12L7wkIPmaQh5xLliN3eaaCnznlc7HoVbwtx7293538IyDjGgXIFFEmSNl+LlUrsSZnOMukQIkn5L/6ZOQIThQ22Mz849Scg8SspXYT0bLLfR1lfRpMykDoQjRWlc8Fg/vnpsKSLit69kbJZJQf0z1IEeiZZc+9zXndUmY8xU25QoDE/L3ZdT3VnhB5gX1G83PPH33b7CPPuu3GvDMfzKAV9Dgi+eykqXV+uytZ2B4+BbmubAxg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 92effe27-bab3-47b4-a933-08d43f82a945 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0743; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 3:1gl8lwuWW8fJVOBUYrZXowGcxj+zVjLY+LIczoQdetkPtcCKDIA7NyGq+8CTwF2zH05SRfP5raPWaas6dBOb71QVv0Ge2NxFxb6RtRobpyl92Xr/yWGSwlFM9CLvNNB7I2qmf86HIsUyk+0GkT7NacJP03P7pStPOEYa5l/fk0rJWj0kBXG6BaO1pcwIj0XAwybhxkXE36VS0V5njmmkKMIkAFsx/jnxZinfRUn/TPsN7g/KAswfk5VDq4AkNgKv94xYIget6uS2muWI4p19+cj+r/wxdtZaLAZcH+M8y6x8A0h4+2yCO8AvkMu/CN53yZZ98JKBu31nZWUjpnG9+yM3CcOcXnLavxGpMiggwM8= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 25:f4KGZf/m9bNsD7WpeJWHy6wBt1S8LECeOM40OtpfxcCT4dAUHCEgcETZFjspUV/npXjviXwj82Qqt6Y/BB5QWIccfmQwLb/7hOA0fB7AJrMAbgu1nFfcpvipUDMh4DAxrLh3ReLyyHxRnUnvVk2F43OoZ5Tg8aM8k6/DpxjMYodrn+sSne+C+Ua9Xb3bBwglmYx7Ddy0QCrgeJAPIB49f2mowlY6mkoHfJsYHC0qk7UexUgg0eJJi15NlMFOdiPoRtUlM6TtO0wtNY+Awks9HooVo/EvjNTtVhGAC7yBmBQFu+sltLDSyDzVJ+huTSxautFhqWlDXhmobekqSBXu9RE4rrgt491druIAv86vlQoyq5C6Hf0IREkr4jj6nGdFCvNXHk0ARKYVvc1pHh9Msi4CecN3Octg0vku1bfErfddGJdFvIY5GhZO4EUsLqh1MHCwmvsniq2JGmIqv/pLYFDg3/YXAElyn/a01hFvnjBVk8Iu1geEg05m9lynSgOQrbn+Gdrm/ErGF24SGHag8+iumzrSvmsH7hV2R630E+FpK9jXC6ZvPXkrIWikONpSEcWf+s8koZynm1X/peysBKxnpr7okmZtzuWxci/vd1KwfXjGt+oBuoLinZijVcjnmAUSc0cPnCUiGoErHe2EnGxESQ1Is0DkWd2nasTl43w7gGQcWGGMiaLoCEVz7wGIGOVwK9wbm7wc1DbpBRvGyBbJoskvpC/pcUIuH4KeocuP6jbPQg7mDvnAau+ihEHI/XJv5BDqEyosTuZqnIeLOg== X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 31:2oyDTdqekHhmnyeZFXb2uGVIWmIA3JThNcs5opt7tUinr+SlfncWHTJM4f9qsS4WrAzzZ9WBiyAbyfO8N2kZ5x0UzLg3fAaGmnu+GH2GKdUcF5Xq75u9SesYq+TVyIoa3J/okwxzK9OwKDd/BtbTsuOA8HMBQrKmdyxItPtm6X1sGPn/iOP/fdFkH8rprpZwtvaFa6BcP+htYgVrdPMMCImFj8JMMZfFoksT72MyqQzwA4H9wQLE2dPxXLyoGas5pZBnV0PRCg4/G8x/b6ga5w== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13015025)(13024025)(13023025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123563025)(20161123556025)(20161123561025)(20161123559025); SRVR:BY2PR0301MB0743; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0743; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 4:3DSNTeY51uq4xxg42xnzx4SGhEaD46+1yDZw5SuyPLi5Pz3gqovmP2zE8c5jMEjR/eerjiSu4C+4aLO6SqJps8ILXi+8kGfLtegfPoMavIOV0iLS1jh3XJSA2gsrwS7IOPyo5HOV48CDMihqCm0rYKf1lEF8j4sDxMR9CUDaIMMTpcoVnGH2ogF4wI+diU7YOwkxNpwpr9wFbue4GLZ3RiFZhM+Xj7BV4xBqYfq579jPFF1OQrjocCFb1xPMITUjIxqydt9SuQt4qyZaGU6XoF4+wpZjKhHRqkjftPXl1Q52MRorLr+3ObS1evygF9V0RnbaYH/cc3SAV5qXtxPFCUbA7cGhwQfypIbiVICkQFrdjtr2Ki6LeSon5WrcQPxyNXrWOJg45fLsVWHmUYjMKoEqlaxDOHnTchVhpBMkiSpklZUEjDRwldRYPiARDU9gHoW9JIbqHShrNjCksVIIC+t0r/AlHGXypS+9NKJxHCl+399qe/JNI40uoWQcYL+9qV2CkfRjbSRxlpo/j/dy1fkLKys/Uz4OJx+vYKA4hbwXlwoX6iSKhbzb8WHubMGD7/4QIBmq5pdEziLSJcSszed0ag+SKDvflnr0lBcpMnb9LOtYqArdVZpV6WG0mhojHtlKoekLLPoMMsRLe0v2BV5iR+NA6FVt58L2psuwmNUJTbaNJUcXIWnJvRhRJFkc9GnTDi251jhiTjOowe+UoZdKEDiws0Eh/KyEc2sEirrcsXT6utp/Z6ALViwHGKKB X-Forefront-PRVS: 01917B1794 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0743; 23:bKO6c3qNAbCr1171hCjK3L511IvZ+pcg9mcfZj4?= =?us-ascii?Q?24y1LOl2HNw0SVmp38fld4+8De3knpbAE+BG0Nl6WCEGh9qm3xBot2bIYITn?= =?us-ascii?Q?gD5TrQYLYE5geSlrTe/tlXyEiyeZ6nieowQzF8VSRlsURR7DMP8FpfrgW6RR?= =?us-ascii?Q?IfOg3187tsjJANmPoNNyCSv+NiUVCtkIREYn66kkyShz+okCvQ9wMe92yqfq?= =?us-ascii?Q?9FgK2Ye3010TIxAvGH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: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 7:oBcADRzT6nwuhBxM65mlbC0eL1MONjBtBEMYSILcFKKTagCYdsZFSrJwR4BU/nYm7tpdcIPDxFNdOzgxhpoKaHX2GGfScarFHje3eMdzMX1b/HWYog/Tctj/UBCWRtXHZ+ZrWwxydEb91ck34Sa+0zU0/f/ESVH7HkVNvadyXURKTgo1zKWYA+ozaQGA8/s/0AIyT7Pf7p4KkusWTn1eyedi8BsOTAScwe/zDHYKuLJXoW7CPF0llDzgNNidQiZR6bbaojQpuP/dQ2XohXp3v8+WSiUQ6vbqxL92VkcYTdZaecKkoGKOpdqIB0vi09ESFZYyH0t49TN+BpaqQCR0RfOlV3PlZHV0wrFt1kqfgm8DTsa6MTCswk50k5V0PeRmuL9x8rnmb7dLx7ttcLJDbwHeY+Mo5w2CJHszXn060Wurb2YtiJ/wn6WElOTt4PuDkL07B62VNnLPo/BTmQGlMg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 09:16:18.3203 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0743 Subject: [dpdk-dev] [PATCH] cryptodev: decouple from PCI device 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: Wed, 18 Jan 2017 09:16:22 -0000 This makes struct rte_cryptodev independent of struct rte_pci_device by replacing it with a pointer to the generic struct rte_device. This is inline with the recent changes in ethdev Signed-off-by: Hemant Agrawal --- drivers/crypto/qat/qat_qp.c | 12 +++++++++--- drivers/crypto/qat/rte_qat_cryptodev.c | 6 +++--- lib/librte_cryptodev/rte_cryptodev.c | 6 +++--- lib/librte_cryptodev/rte_cryptodev.h | 4 ++-- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/crypto/qat/qat_qp.c b/drivers/crypto/qat/qat_qp.c index 2e7188b..07e63fc 100644 --- a/drivers/crypto/qat/qat_qp.c +++ b/drivers/crypto/qat/qat_qp.c @@ -135,6 +135,7 @@ int qat_crypto_sym_qp_setup(struct rte_cryptodev *dev, uint16_t queue_pair_id, int socket_id) { struct qat_qp *qp; + struct rte_pci_device *pci_dev; int ret; PMD_INIT_FUNC_TRACE(); @@ -153,7 +154,9 @@ int qat_crypto_sym_qp_setup(struct rte_cryptodev *dev, uint16_t queue_pair_id, return -EINVAL; } - if (dev->pci_dev->mem_resource[0].addr == NULL) { + pci_dev = RTE_DEV_TO_PCI(dev->device); + + if (pci_dev->mem_resource[0].addr == NULL) { PMD_DRV_LOG(ERR, "Could not find VF config space " "(UIO driver attached?)."); return -EINVAL; @@ -174,7 +177,7 @@ int qat_crypto_sym_qp_setup(struct rte_cryptodev *dev, uint16_t queue_pair_id, PMD_DRV_LOG(ERR, "Failed to alloc mem for qp struct"); return -ENOMEM; } - qp->mmap_bar_addr = dev->pci_dev->mem_resource[0].addr; + qp->mmap_bar_addr = pci_dev->mem_resource[0].addr; rte_atomic16_init(&qp->inflights16); if (qat_tx_queue_create(dev, &(qp->tx_q), @@ -289,6 +292,7 @@ static void qat_queue_delete(struct qat_queue *queue) void *io_addr; const struct rte_memzone *qp_mz; uint32_t queue_size_bytes = nb_desc*desc_size; + struct rte_pci_device *pci_dev; PMD_INIT_FUNC_TRACE(); if (desc_size > ADF_MSG_SIZE_TO_BYTES(ADF_MAX_MSG_SIZE)) { @@ -349,7 +353,9 @@ static void qat_queue_delete(struct qat_queue *queue) queue_base = BUILD_RING_BASE_ADDR(queue->base_phys_addr, queue->queue_size); - io_addr = dev->pci_dev->mem_resource[0].addr; + pci_dev = RTE_DEV_TO_PCI(dev->device); + + io_addr = pci_dev->mem_resource[0].addr; WRITE_CSR_RING_BASE(io_addr, queue->hw_bundle_number, queue->hw_queue_number, queue_base); diff --git a/drivers/crypto/qat/rte_qat_cryptodev.c b/drivers/crypto/qat/rte_qat_cryptodev.c index 1e7ee61..840d828 100644 --- a/drivers/crypto/qat/rte_qat_cryptodev.c +++ b/drivers/crypto/qat/rte_qat_cryptodev.c @@ -88,9 +88,9 @@ PMD_INIT_FUNC_TRACE(); PMD_DRV_LOG(DEBUG, "Found crypto device at %02x:%02x.%x", - cryptodev->pci_dev->addr.bus, - cryptodev->pci_dev->addr.devid, - cryptodev->pci_dev->addr.function); + RTE_DEV_TO_PCI(cryptodev->device)->addr.bus, + RTE_DEV_TO_PCI(cryptodev->device)->addr.devid, + RTE_DEV_TO_PCI(cryptodev->device)->addr.function); cryptodev->dev_type = RTE_CRYPTODEV_QAT_SYM_PMD; cryptodev->dev_ops = &crypto_qat_ops; diff --git a/lib/librte_cryptodev/rte_cryptodev.c b/lib/librte_cryptodev/rte_cryptodev.c index 127e8d0..8402b6a 100644 --- a/lib/librte_cryptodev/rte_cryptodev.c +++ b/lib/librte_cryptodev/rte_cryptodev.c @@ -446,7 +446,7 @@ struct rte_cryptodev * "device data"); } - cryptodev->pci_dev = pci_dev; + cryptodev->device = &pci_dev->device; cryptodev->driver = cryptodrv; /* init user callbacks */ @@ -506,7 +506,7 @@ struct rte_cryptodev * if (rte_eal_process_type() == RTE_PROC_PRIMARY) rte_free(cryptodev->data->dev_private); - cryptodev->pci_dev = NULL; + cryptodev->device = NULL; cryptodev->driver = NULL; cryptodev->data = NULL; @@ -867,7 +867,7 @@ struct rte_cryptodev * RTE_FUNC_PTR_OR_RET(*dev->dev_ops->dev_infos_get); (*dev->dev_ops->dev_infos_get)(dev, dev_info); - dev_info->pci_dev = dev->pci_dev; + dev_info->pci_dev = RTE_DEV_TO_PCI(dev->device); if (dev->driver) dev_info->driver_name = dev->driver->pci_drv.driver.name; } diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h index 8f63e8f..ef072d2 100644 --- a/lib/librte_cryptodev/rte_cryptodev.h +++ b/lib/librte_cryptodev/rte_cryptodev.h @@ -621,8 +621,8 @@ struct rte_cryptodev { /**< Functions exported by PMD */ uint64_t feature_flags; /**< Supported features */ - struct rte_pci_device *pci_dev; - /**< PCI info. supplied by probing */ + struct rte_device *device; + /**< Backing device */ enum rte_cryptodev_type dev_type; /**< Crypto device type */ -- 1.9.1