From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0089.outbound.protection.outlook.com [104.47.32.89]) by dpdk.org (Postfix) with ESMTP id C914A2BBB for ; Thu, 8 Jun 2017 13:44:47 +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; bh=i15+DMnFmmpWL/nJbDNc/CLs+r2uZbOQkYFTDhzd+VY=; b=oYZc1XHRUVshjgCr6hu3HrkT9BBBFKhR2m9Q6u9nWaRGy6a6jyY3LxGUhVpJuIdIbY4n0jXVnyZfczu9BX7xAa8/A2Z2bHckSfu6DnbTlGYi8jK1V+vX9cTAa0vWAuGsUbRuo1HI4nvKTRWh93YUmEFs7FMLMWHDtH7EuV9JvKA= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.domain.name (111.93.218.67) by BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Thu, 8 Jun 2017 11:44:44 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, Jerin Jacob Date: Thu, 8 Jun 2017 17:14:14 +0530 Message-Id: <20170608114414.8787-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170608114414.8787-1-jerin.jacob@caviumnetworks.com> References: <20170601130530.11443-1-jerin.jacob@caviumnetworks.com> <20170608114414.8787-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MA1PR01CA0073.INDPRD01.PROD.OUTLOOK.COM (10.174.56.13) To BY1PR0701MB1721.namprd07.prod.outlook.com (10.162.111.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY1PR0701MB1721: X-MS-Office365-Filtering-Correlation-Id: 4425d45b-99af-4a86-7f02-08d4ae63c2b2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 3:iEYyY9+rbKHZzr5UZMmTluvbuP1y2zuqjdJC97XAIxwEf2gZ7AbTOimWbPIQm6y/V/sw7M68uuDO/MnInJp7mF2AW6cUP5TDe/2c3vwPjX1pwSNNwSCv33aBuJwVUR2dvB5ixmdkZG8vP+zIQZ8dDk8cPJvDr5i6DMpR5P5FDmcwTAArHk45BrMmnktAdF82r4FvC4a1YYj4X2Al0w4Dr7Isal3u89u1FlG4WP09FOFv39jWrIHWsvVhgQJZOgEJzQtf6CiT/anbZ3HxFnAFVGrM17ag+mgBYa264xQvi/LHtPe1gbQiXeaJyvxJTGX4oGQGUn0aNnYTcpzedZrs6Q==; 25:sT3uveoRBpkx/o5IaYtqkcxoVjFayHrPvHJHkMn/X4m9he2lebyzvPHVE6mVfr43MdRCNSACbcBbv70/Q1NJzpJ7NsEfYAE2ESL2TyPp4J/cDjVeZ2ggFGGdqJt98YnQR+BcuKN8qjQ4CKoOrn/1X2iRNOWoQuXxf8d3SjYnUvzsgnE+1kwkE34beg7OeTwd7tSu4ZZainOioSDgMfnsnWJErn9EPIh+8lYU8B6A0s6sGvPVf4WHpJEp41BCfFjc4GTVcxXbLNzV7fS8HD/xph8YEW14Cn5rloHiRQDS/CJ3YWn1rZZNMXjcNLDrDFA9tUf5i5Qk49CuCNPMTwxQCJriBmHH7NuM2UQZK3BmjHWIc4+XoSGeTgJPuBEy9Hgub1+j8Gxhnbz33AguZXRf5FkQaZh/4qjGO8Gn1B6WQFgtr6Z12UxtlsvlGKquMnqYOIHajBffNHwu6CWhoig9977+0Oh3J61aKbRauBmRFV8= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 31:6sychPU6qZt39MB5fRaQ1CgOg9EHm9kyGBZpgYUBcAZHGIU37gJ8EVUAM37nS+S9W9Sj1421x4m8tXzXJkETiZYPNU1bx97mnUmF7cPwwUdl98xFFgEo0NIYC/VYyoRrKv4kZwPx34717QVifpDZly1ZXmj2CVabrDqR2e1zCS1d2lo9xz3rgleFJhwTTS9lL1sb7bJp5P1hu1YFjaV7jl+6Uo/IXoxuPnzUDLEDcho=; 20:sk+fwsKBpE0bo/jwDR79HZx5gkgP2YkL6SWl+Y/DyPNnTYasK9kbjZIiLvePe/pnlPQy/KWDvhUB9AGK8IQkOKEBqYoW4rGSQfBubHDmbfcnpYoBqoAaBs9YbSS5UTLYzKFZlMl+aG6TTk4lggm4HZ9emL4mmNZmOigvZwJtU8NTd9Wfmq7DR925/56eVNiQdDiaYkgKVX/f6UcXJS2hYiMd9uUWEhTN0Ilj05ZNk/t1BtF/51B1n/yHaX2JkndzIyZ4Za2bDevFsZ0ipqrGaTsT+xABZgrLATn9y2K9N41oi5y+vttlYuDa48YDZ7aAz+qmLh/dd2DYYO8o82qAxX2tEzhGn1o5DIHthkiaRTj4ganh8GiVpqC3yfk3DPqY2ayZJb9i7xuFvD1QExu7wS/q6KpEhLFtWOTx59fgVepVYk+HLa/UCyLF+dGPSf6FaUFpKkkQzGrte/DFKOEg4aUCoFVvs++osJ2pylU/mR+kpQiAvkZHwetkuj3k2YgjYMlUDw+2+zzfUCtNQZtfza8zz6L/e1b9TX0KnEoa+zE6o54thLHajPQaKdtnBCBACo/6bpiYbFGliNNaspGv10LcNgupnuc0c2TSkIw55iI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BY1PR0701MB1721; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BY1PR0701MB1721; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1721; 4:luIggvZMl34cP6XdMB5JXSIm1S8tL5ZUud+RdW/J?= =?us-ascii?Q?VOTWN7JiCx31MIe5aCWdFKyrz0HMmntEzosADEKwpXNHOuL22VL3ioTVzIzM?= =?us-ascii?Q?4zcN41pK9OttHhet8nqYDiZs0ndzuByxaFf4ITbwKnyX+jyNlrvkkvtvONUH?= =?us-ascii?Q?OoLIwLxI2wlqH3hkyULyLwSuWK9sM4TprS0bAU/u1lyTb6adC1WJP67q7EhQ?= =?us-ascii?Q?lFGbOTipWBEXjrNib/WO9IJOwuZXwnxtu2sPxT18xzldozzyNCtL5anvt66m?= =?us-ascii?Q?IoA9qesBNyRKCrH/DBjCwaIY5GAC0ccVa9x53UfcM71orOm1ffs4TQL+NjCK?= =?us-ascii?Q?MnM6ShTdEPN/wNYx7wt+t41/kpxYMrWWp447Mjpl++jo3zLzKUd8Jdx4kOFA?= =?us-ascii?Q?GdHWSQQ4lLJMXrKtVtUfA+UMBp2gjRJAYexiAfdcueBpFul/SjR1iMwx8oDE?= =?us-ascii?Q?2P0fh3TIK1OTTJUn/cqcBnAJ58+nONYj31AMuVSbbZ4C+OHufc5jN/MscKIu?= =?us-ascii?Q?nfyQaa5Nr+geQcdv9lCJYf53ReaaLKVAQr/zt/L5XdYBY5ItFSByuONRxN68?= =?us-ascii?Q?zUCly2+e6PXjEvcbtnwoCbtszJb2NI5fh6bZsC1j2L91Km88ITCTMa688qDr?= =?us-ascii?Q?XSDBbKaklBxnO9brGX+MiRKAiIZNrZGkD/1JViHjviqfR3P+KhacHcIOehTV?= =?us-ascii?Q?ylqH/T1kO0OhT1hjaURKE3Nw3QErti8HEmI2KllRKr2JnqBfIGBfl5Ahnakt?= =?us-ascii?Q?uQVrtk3HHyQmfZBfzEd04lZ/1vb+olW8Xy82Eb0AnpxTuQkPBJRexUcPQsEj?= =?us-ascii?Q?TJiv5+4y/V4SueWUh36am7WJoqmRFL0L9lxN4eeu6f1aJdz0jiAsfCA9ofTK?= =?us-ascii?Q?9Y0m/DeKyvIS53AbRnzlF9cM2NsHy0YfNIjZXlCQqMk/GOplZgg6zv+28Lya?= =?us-ascii?Q?QrQwMNDIlwTsrPFq24QWGTjq6cc9XEDveri+4O4qhEfgPZ41Psj621SP18sX?= =?us-ascii?Q?yG/XVHnHEOSXDOppZbHC1sr2xIb1oPWZgyPZy3+Xna3mxcU1p7zAJQBz3AD2?= =?us-ascii?Q?T4HXVvWzxPnQdSNRNQGwvzR2YY4FEvo0mtGz3slyrQCVvxqDJj7/6YPrSaHf?= =?us-ascii?Q?+RaAIbpOQLw=3D?= X-Forefront-PRVS: 0332AACBC3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39840400002)(39850400002)(39410400002)(39400400002)(72206003)(2906002)(5660300001)(5003940100001)(42186005)(53416004)(50226002)(8676002)(305945005)(2351001)(2361001)(81166006)(3846002)(7736002)(33646002)(25786009)(4326008)(2950100002)(6916009)(42882006)(189998001)(6666003)(1076002)(5009440100003)(66066001)(47776003)(478600001)(6512007)(110136004)(38730400002)(107886003)(36756003)(53936002)(76176999)(6506006)(48376002)(50986999)(6486002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1721; H:jerin.domain.name; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0701MB1721; 23:FKOURXvhGM7xfYo3MnhIYsEZKKMy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rGMTNJFaFARpFLTpIhiJjaUFPghSbrUVUBIz/GeB21qtKttFCyxrLOqLNYF8wBEcUJNFr3V9l9mc47oLhDH/74xBE7ocsXnCq3//UQw3+PAsyHaJ5gakKF79us9q9jZAGngpqRpFwliTcaaU4guLaB8mNQAytIR/wpy+Y94w76seYBJEOR5Vh7pNtEPWVPF76AXakGN5AqLui+UbFMyekNIQukeF6EIaVEx+g9lDtnWzDOHl5q1HamLowxZIz1nuALRIKqZILZHXiy0zRhFDoka0OWiiUcknqjYwjE/45vWAC0HuOxTaGXmu9xzbpDKPf2ue88I+4aengSTrcUIwMWJ+dj/jWTqlLKuqEf1kTgM; 24:Cgpj8fRoHwRZrHvZ9I/xgky/xD67WLV78gljdFb+63huEyL2W/UfJfD0ACy7eQkvfLHQH9oiu117Et1PidIXqxEQkEob3XBfdN0P+ZmFJMc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1721; 7:mTji9W0zzQRhc9CJZezM1bWDkS9cTvErYkukxw6r9JbArH211Ngx3EjE/mD2MOm7feVFKSbvm5rIRuLaHHNUL1J3Hm96pQk/j8ZXWJjmDu5mA2vFpCgCUt0sfvwK7WfiMpnM4zOGGaG//VCDGrS9PfLbgWnOGarpRvKJ59RLfKW8BE6Rl515WJUoOpiP0RxqKr7wWsZ8tyWMQviuGBUUSkr/F2mIC+hdWlpw0bc2eyJOoDifvezW8ebiIHTjvkAiR0BSwGRRyTUD1oFrP1suY45UbrxT0JBf40wblZPwmI7L1xPHIxNqQ9Gp8FmpaFVM9wOm/BA7scpm2Xi7dENaPQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2017 11:44:44.0367 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1721 Subject: [dpdk-dev] [PATCH v2 2/2] net/thunderx: manage PCI device mapping for SQS VFs 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, 08 Jun 2017 11:44:48 -0000 Since the commit e84ad157b7bc ("pci: unmap resources if probe fails"), EAL unmaps the PCI device if ethdev probe returns positive or negative value. nicvf thunderx PMD needs special treatment for Secondary queue set(SQS) PCIe VF devices, where, it expects to not unmap or free the memory without registering the ethdev subsystem. Enable the same behavior by using RTE_PCI_DRV_KEEP_MAPPED_RES PCI driver flag. Signed-off-by: Jerin Jacob --- drivers/net/thunderx/nicvf_ethdev.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/thunderx/nicvf_ethdev.c b/drivers/net/thunderx/nicvf_ethdev.c index 520ccc631..76f8101ea 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -2171,7 +2171,8 @@ static int nicvf_eth_pci_remove(struct rte_pci_device *pci_dev) static struct rte_pci_driver rte_nicvf_pmd = { .id_table = pci_id_nicvf_map, - .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_INTR_LSC, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING | RTE_PCI_DRV_KEEP_MAPPED_RES | + RTE_PCI_DRV_INTR_LSC, .probe = nicvf_eth_pci_probe, .remove = nicvf_eth_pci_remove, }; -- 2.13.1