From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0082.outbound.protection.outlook.com [104.47.42.82]) by dpdk.org (Postfix) with ESMTP id 0BA1C2BA1 for ; Fri, 9 Jun 2017 12:28: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; bh=/EQc19PmbQmOsDPDv5XCdj3HC+VwFLM6WSQ4DdXBol0=; b=DDej6aIT57Wu8tt3UOH55H92PjQRgaAQhYtFAn+lbwse3QHBnnDRwAQz3Y7htd5YCQB4Jq/bfGBHkn1yondf1P7aqTy+x3xDRTgOAbUMEWKhV6KrEE5OmVpQwb5Vlt4piZmEBsVrz2oceO473+xhPpcRm8+V4sWk5mnCbc3tzZA= 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.caveonetworks.com (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Fri, 9 Jun 2017 10:28:11 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@intel.com, Jerin Jacob Date: Fri, 9 Jun 2017 15:57:46 +0530 Message-Id: <20170609102746.13828-2-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.1 In-Reply-To: <20170609102746.13828-1-jerin.jacob@caviumnetworks.com> References: <20170608114414.8787-1-jerin.jacob@caviumnetworks.com> <20170609102746.13828-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0117.INDPRD01.PROD.OUTLOOK.COM (10.174.208.33) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: dfde33eb-8e68-45bd-14ed-08d4af223b7a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:pznolb45K6BTQjyo3aumrLCOQMAy37itUgBoW1z5sHr7pOAxu54b5zEF/R5k/EkgrzItLclqb5mBhhkGlbjYhXSDLNIiWlBOLbBsgGrcFBJm1ghWSJtRjtsHhK/06uqbQl66ayM/aOXpczmFxVhAf1KS0AfmNChKLENA1NeufxIMEAOx1HMmgbt8YO0FeSTb4mpoF7G32jqFtByqdEEcNm/UajLc7khZC0rtgBOe6KT6pdCaWIqB/OBtshmoodZLejkOQ/Annq7BYppGRGWrsfFsNssttHWZnvSgYGQ56p0hO2iYruMkFXTLdYZoOffQflWx0rtTKcO3V50DSZqVRA==; 25:lwNABo08zJ/jcDoXCTMetv4bnnHDBftumBis7t7cE9KueqojoZbA6D2j7nDuN578kdImoNQxwQOaiQUt4rncgGjD9M0hzFPc+NRLBnUjBSd58JLndcmX3W4KzfPGQW4vGtPdufgX9kYaGSYNYUfeV8eO3GD+SOuglBzDfa8fnc38G3PlJefSovnAmBPLNM2BgrQO8jfnuJFXu6sEVdo4oWK3Nvlgyknzt/fUpzBtGV9GJ4a7vXmb3FfUwsFXOkkRothk95k3ho4aij4O4GjX8KE00aZ63Ml7z0IRNKao3gE7ak9a7mEdNc6YzvLEhSQQrOT5W57vw4NQBOFpW9CgGEsiL0nBJntRTrYPs0upPpLDY7CiX4ZQa1EzWkCO5P72Gj9Xs5nY4oB/3Nha0IRUCnncrLtJMCQBD6nHppWkLfdsrLOjBdEJBVeT4+DoWWo1HLDnLD9SwmCzvOQaumyaaU8YUBdy+H+/GDsX/9tg9Kg= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:4qnH4hcaCZsF7u5Sle3a3HnrsK1p63Jy4liAgrJoWquu4YVZmMVLujy2GmNsuvlAX11Nd/eSDtMdkxS0Tr/CaKTxWx688TDj7bwAtc4pLK/STfJ2jsM+UB2mMWxcKWPf9OxGwKXUqAgSBeCaXj5o6nG3ubwmb61oE/ey5roU88vlulu/24QYCGZDNhoh8SfwbyD0PZmol/le0Gmv2kqLewwZ3QyJ2P9LBLBPT7/EOKQ=; 20:Iy0meDPQ7oNdEyYtrN2WaaG5hihtBKhY13GJCvJbT4FX+HZlPwyizlOTkN9DWxgFE4UN1o+kcaVFaiJWuTeIg764gkJkY7AbMsSj7kSQ3iOebjrsI/S9r0ygoED2zrYY0oDE7/WHTsxHtRTirsMLKwhAGjhk2ChPM7LmshOm2ZSfTGmMFMX27WeXPOOpNOrI8QHuijpQBmaU5xw8PP1ZOIfTdXGGx/rHj6nF4vv1w45Iayx6xyUEQE/P42i7rYgwlDQM8CX0Ejbdmx8ICU0fTcVv6tM4jD0spAbjgPaXfCgzV0SK16OzNvfPqylU7jaVQYuwwsb9lSnPOH55GE7vVOLQgtRhaYVq4xoFSaSymQYLt6CGWS93atQVz3uLyh2lZCG2iATYuilIV80InWtXuH1L+74ejj7UxFVkpQrOKgY4iRspSKWMNHazrjk8FhOThMkQQMDDp6ypFwQZEGIcRkK186piFcsuv41zZni2vF5E73xwevjZQCVoS6GYY/tVVPUlJIcL5kxuF8x6rQNMIIN9ly/JpEhqSDK0nRIgI/uBurd7bzFpM7VrqxFxVXY92V7ITttHsfOHr4jWRYA8QXZiqlk4rUfqeMvZRDb6kYI= 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)(5005006)(8121501046)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(6041248)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 4:3ckOSpHFf4HIqJmbuZo/yTDINQ6HkpWu9cKrlGuY?= =?us-ascii?Q?uY50b3LqJypAA1D/OXybEvt/ZopMcZ48KQCjDzMUOJ60v6LY7kFQuIJvmNFN?= =?us-ascii?Q?vEkgVAm6By8AhWuziGFNZrnFEW0fp8bQogdeBU8tTEXwmRJc8zbNtR+xl5DA?= =?us-ascii?Q?EQsJZkItZqhPEN7+gKsloQR8iAhNL1zVZzASMg7nqtPNp1U6TrDBOdNXkKg2?= =?us-ascii?Q?MRqsVXavQf+/Ub+QHlK1brdWK8UFPm4vobGkfT9B/oHZa+FLCQ1acBwujtr4?= =?us-ascii?Q?DBk0LPgwG5xm6IuNAbaYqArVQ1q7+WygW2cqBdJwM9kbwMCbitPKszTr1RBu?= =?us-ascii?Q?uAZ+hYtJvtqFp+S4WtbeiexQb/VVq9RsG7JbdepV61acqzzjsRB6t+w1F9g0?= =?us-ascii?Q?llEY61J8gjz40QYIVYAebFFZp73c1FmtquioC7r56RD2cqemZSdDPEZfl5Sy?= =?us-ascii?Q?HJAnnc9W8BCDeQHbIgQC1PZitxnFYAYJYzastzKYrCIc0f6MNCbXSiYNFq/L?= =?us-ascii?Q?ceDzLPTgtgi3TjMDLIQeel6+jlzC1fx/SiNycuVYDrjxCXzww4reue8k4ZKA?= =?us-ascii?Q?QkicLbem5s+OtEyHDElqyTGPm/jsAo6xA7AcMYnOqi2SxRuMS7pgCccMTaVG?= =?us-ascii?Q?rQdk+i+QzM0BU9W2sZutUkWqzL0fUk0l1G9qG8IbPwpNreAfkVFBn5ukgBLT?= =?us-ascii?Q?s0YVQzQ5Aa5grJATE305psThdD21KU/yS5S9Cx+0LKBj062pgwRYX7kAskZV?= =?us-ascii?Q?uqzTZKdjuNMrOSdmX7tqyVjYyia4p8F0R5jrFCZOagS7wAHRTrFzrZqG0NiO?= =?us-ascii?Q?5upOPFBGqrhLUO5NkiSOtmgYkJNXhofPveAyb3zFroz7sHNwanjgXP3pq2rL?= =?us-ascii?Q?89h80wxT81MXN8EBhkgSSZ2YGXR5lzTPsjvqVgZKkNy82IwKA2ogG2tk7r9J?= =?us-ascii?Q?5KPwgYVRwctW4hsMHT4GjSRMwIWjPtqw9hpXxW4eUeUe3u+ExpDQgcFpO2bS?= =?us-ascii?Q?lqyUmYnzHEyJe5PLRmyVo2AFuRYSO+km8NY8Qf9PYIRbp7F9Ny9iuUzxqti4?= =?us-ascii?Q?nTzNRwWbg6Vz6NRsIGO0Lha08/L/NZzAqZZQziwbcrkbFe9Zc9CgRsBg5sSj?= =?us-ascii?Q?3vQsbZ4GFl8=3D?= X-Forefront-PRVS: 03333C607F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39850400002)(39400400002)(39410400002)(39840400002)(39450400003)(53416004)(38730400002)(107886003)(42186005)(36756003)(3846002)(8676002)(110136004)(48376002)(1076002)(33646002)(81166006)(47776003)(66066001)(6916009)(5660300001)(6666003)(53936002)(42882006)(5003940100001)(6512007)(2906002)(7736002)(72206003)(2361001)(76176999)(50226002)(50986999)(2950100002)(25786009)(5009440100003)(6486002)(2351001)(6506006)(189998001)(4326008)(478600001)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:PBD5Xynk01XDlgaPt7BdY8G3+E27KJHVPgJU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UfwcUIg+d7kGweIiUJNg+QebEdS?= =?us-ascii?Q?TrxDm0ldxp60aKgfGAO7pbK4sk9jPbi1+yhmM7P9PhSWJfdLWgBKWtyNI156?= =?us-ascii?Q?QOhBFnzVK3Cy+OhmHauNYzpsu72uhK+S5IiqRmY5MyEP2d44PXdMEAwUe+AX?= =?us-ascii?Q?O/eRW5nhewZkk10c5PBYiEKqSU0uCNflx0plhfnj6ALlrxXCjuGmlZq0Tdgg?= =?us-ascii?Q?GcKzVeerGfmZEMzFMIKd7/U4lJVPS0Tco?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 6:Fi11hvCtotQzUqPa+2R14GFYO19kYfcf1DcMvDnX91ZqLmO8SFaXn9y/QqzStrCAcYbL6WTlU8Aa/hT18nJPBhwGfCsEY5YR2JMO+XFCMo0hNOud0m51RCxt9kJrp4WdTxDjOU8mAVrMxy9PDtwd3ZVTjl9sHwIsa1A+HS8F8ud84a8UH1gMHoXBdmUKcJj16PYTcu6SJndP+okY9BEaLQvs1eoIwRfykHZWnfRY8rLnu5wnLAh11p6PZwPDOkk2WpF2sjxlQPENrKy6SNm6zWWFCvebZTsdy2zsIkugDwWSmsHUHuW3dtOA4dABCvtdGllA63ZKLiZLh4FleQ7wbzCoImWRBE7RkrpgMzidXD2FrE3IgHCb24NgwzdEZMt5yHmDV4+z8MVco2bwmtUn6jki4gMBKfgSV7dAw0qlsSAc244gZ7YVabyD7aNkxcGSJqoajXLp7925AkjpkFXEUuGGDxhIkXhZUTqxYb041J3eMOJjWueeVQw11GrZU13JumEdvr0qI0z4qrwqhPB/eA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 5:i+BBfU3h1J8PoTTBezR6ba5DmnMABpkxjIzABER+/DkgwAGsZtt1cUP+Bsum/h7nMSOTultLKmbhrkikuKtWWrlFs5zuGPeHoCs2EQop7Rm7pnnfFIxJEKGMc4hzwrjedqtdeUaaw4u4MmSlQVmdv8HeF3MxRHUyHo/RtywqIJB2OVqeBHSPx/+qD1AMTR/SrZ3KGB87QDpOLPwm2xPth64/usm3Pvwz66L2EtRFYgHjUFrUc2R/i6zARn3ZgdWSYyQDMd/MfrF3wH6Yo/APyCIR9ptKnitk2hffIGEFwa6gl+4fwHyFeJVVNOrytSYW7y4Qcq7AcbQsJ1lIylK4TGWaCBmDIJgxteVdBse8lQjP+ykpw1j+pQ/dIb3EfkEhYBjz3h1mHKwEnY/pPQsolygBXBiZKfb+oFSwB3ZWv2dnUuNKC/edODa6TVIW7W+aawRah/6igHSwaLIIVeuiib31nLECy/CVVLVR9IZjutZpMhzdSUV+Y+QNBVcaprJA; 24:QD9dQwLmu91+KqtXzqaRZZvOJyQK43aIGVb8agvj7CteFa+UPq0EPcxHBU8d8S5YingNJ6JOGWZmxeWweo2xzX9pc0HOTv0+WIMag63ASFQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 7:epzGYCWUhZLfISL1DzjdEe8KE//AwGoodBeVvjUmhQpO9WImQ9JmShJ5xpKX6n3acYWCNCWWc5UQp2w89QMAIoNfau/XukjxZb3kbXeF4zVgxDJlXJQkvqTOj61szq3xxpGYnC/MiaWTlbPzfw7olIp7ZbQwBcUG93Fj1QIiaEo1JYnJjug8RJT5KhLjXCinL9LfpG6UwmcLWDh8wlTLy2ZEJ896kAR+KJZ9t0GkDTkdjXKv1OPyiO2Lp3pr4vWNxKeGKv43mkDI7giZbVzwX0IoKZcTgnKNuyIrn3z2bUD2vNSiMG+HzRG6wP9lmiDSlf4x5TcvjF6+QL9TPAX6nA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2017 10:28:11.4718 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: [dpdk-dev] [PATCH v3 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: Fri, 09 Jun 2017 10:28:16 -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 2152029b5..9d9f2c76e 100644 --- a/drivers/net/thunderx/nicvf_ethdev.c +++ b/drivers/net/thunderx/nicvf_ethdev.c @@ -2164,7 +2164,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