From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0075.outbound.protection.outlook.com [104.47.38.75]) by dpdk.org (Postfix) with ESMTP id 120152BA3 for ; Mon, 29 May 2017 13:02:08 +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=hagANGktCQjXP6s+SQSRSft5KysA6FlalW1UexFATuY=; b=nZTFH10tTdT49VUPj+5Fwpm0ZBptyM8htrXioUkGFs3wZAg9gom7yQJLZBlPiQn5VLbjYqmaRLWGn8jIYZqazkBU5ArfN8wlFqo56zUfcx1NaXb4rDRC9+pea0lywV5DycQDqT1HmTje5IOsWoQM+6ZZxqaXFAP+kQ0iF0GghTI= Authentication-Results: weka.io; dkim=none (message not signed) header.d=none; weka.io; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by CY4PR07MB3062.namprd07.prod.outlook.com (10.172.116.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Mon, 29 May 2017 11:02:05 +0000 Date: Mon, 29 May 2017 16:31:48 +0530 From: Shijith Thotton To: Gregory Etelson Cc: Stephen Hemminger , dev@dpdk.org, Ferruh Yigit , Qi Zhang , Wenzhuo Lu Message-ID: <20170529110141.GB28265@localhost.localdomain> References: <106841857.Z7q1jSDIte@polaris> <6458984.zlYVzvDLUS@polaris> <20170529094858.GA28265@localhost.localdomain> <2463262.6ozr8bnjWv@polaris> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2463262.6ozr8bnjWv@polaris> User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0039.INDPRD01.PROD.OUTLOOK.COM (10.174.214.25) To CY4PR07MB3062.namprd07.prod.outlook.com (10.172.116.143) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR07MB3062: X-MS-Office365-Filtering-Correlation-Id: 89556e90-c04c-43c1-400a-08d4a6822586 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR07MB3062; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3062; 3:If0Dn3jFbU7MlEmD7oKr0FCBmgpYxtlEMojGiwSqZzAz52C3axLWGxYKx/xh4nAe6VFBSIxzpTFG2yeqN3Y1pwRLXKR+bNdxqpHFytxNLNCPPgGfmzlXOClK6I7MwZuJTDLMrR/sHnO9+AL+dnIkLBDif/RiXCWVNSk6MsIyrx8Rxv4+KcnBftKLai+O07gbpPXyg0gE8S8g9AKeqHTYP6aL0r67IeAkdKH5ZuGD5fXPMhmonL8mRm3z2U7Xhs0O+NLDKTLkPo2szT+pndo6kcLrJ/cthPLWg+BFvUiinIHBA+CCQ/BfwsBLKaFW5/ipV7VpCE21Il0d3NabySifiQ==; 25:tk9YMdD/2tgbHgg2R6jTqnq6Xg2M1VzzV9StiCgjsCzWMGMlr0tpxkaR8Luypz31mYRAKvd1qqM67w0XsYgeK8m86LPv/68huxx4DqZNRMNjdESJ0XkChaedGsBBMF0pD2WU9zl05IcSeXXKERDv4k1kJvAzYdBhVKlY3p1XPF49l7TJqK3zKRaWT3rjEQEXUXr0P7UhFbyRfNw5s3WA/VrIoI+oWu9xTrmPjXd360CdKYvjxvdpHj9IflGENnoG9+oCpOXqYGYP3QmZQgvhX0JqjE+AysqkhQhKNNxcK16T2WFyuPpV6590BcXrEP7Xi6soR4PFLkv0fmpfO3G03Oi1xG2VNJvUSU8NrgvtSdld5EdoUs4c/MBfys9IuBxq91oQ6DA6IedH4tb0iW+qDeFcFTC9Y9Pf7d/zzajFhHrYkx1I9y8Eb4PN9sUEdV8R0vNy0WgjAeiovE88ir6Q9W6WHZ44pxQ9GY9gqwD2PN8= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3062; 31:8fK6SjAfa8cMDw2RCKxwS+3AgOfer4TYF48Eb4I9I96QZ7h3BBl76QmwRlm+yFaNv1v2nL4CP7F8TdQ3dHQ7ruc2xYwho8aDXOhmQOPFa0Pg3hsN83wbZL0f7emnqdPfQvZFttTdU/YNdlz9154PyV08VnHN6Omh2DGoYjmON5AR2VZARAMpTRgj5LXWXwMG51IEPo2OF+J+5C7cPSmhRIjKRVJ9EATcpUkomAZz5vCZ+lvUUme+GNiiVkpo5fn8rQhEiMoXcQJOsqQFNQqQmQ==; 20:pWby1RkMNQrCqSPlX4d6rMhgJ7QmarjRK991KWAtPnD5ULrKYBeFhGiRZcluhnKzPsANc3jCVZPzDdVE7Jgg1EXiwZpEnsmlL/0EueJ6r2e8lPVrT3dIjMtMs0MYwh2Gl5EZzKDtJoAUEAiF5E+ti3Hjf3m2zZbLJ4mxYOduIKLCe895m7P/Ii9AvLgbGi68EoKSE2x4LiHyvjk9kQecYnjG9JrvcF7Dap8kuFGsTG992YX77R0+pDisPANO95xPc3SwiqUxAGN3wuu/8zZq+5jEppIdzKOOjnEZVk1TkS8Lo7J9GnXQ4Ctbud9S7Z364lMIQwkRPU+bm/STvlGNoF2g+2ujw3RHIagxISoWgdpTPKvn2XtkGMFM9EdN0goFDUKwmrON8UWtswRPFVot+1uq+3If4f9Ul4kKOT6zd10GZchb22IP/ouqpjKTj/31b4cBHJuzfEXw1Z0Ly34RKCQ9yYb1xonV1JNGerBsYj5+E8C0uumsvuh5YX1lQUw1U1c7N+JUFkGOBrpGRpuI2uSm1ugQLtU7TkWsjJYb/oqwo1JJWBSgZMCqNDiDahbdODFmcWGWIHUyPkUijyA6eVLMyGmfDa/W9tc6g3083qY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(100000703073)(100105400095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(20161123560025)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY4PR07MB3062; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY4PR07MB3062; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3062; 4:motzDGBUqKl/ZYrcWcFCvykJa7+0VkKtqug2Hpo99l?= =?us-ascii?Q?7nmiJahsef8GjtqImfYFdmtUvY1CnpFE10LOL9izt3JicHufHspLao7tpiw7?= =?us-ascii?Q?rKSLQFrAZ6/wJpfSgWCJMJ4v37FOyqEx56h7CYK3CUzCprA3BSocevvU73ZP?= =?us-ascii?Q?H09TmlvZEQMU+J6xqhI1isYkBSW5D9GTOrChev3Yo89+ANMnOX8mSYN0PxOu?= =?us-ascii?Q?fPhdT01XGbkafXSbnRcCHHw8OKji6y8obmD4b/13elC3dUVTZSMaMvFRyRO9?= =?us-ascii?Q?o4L1lhjLJVZBhmwjsyj/cAJDUvstjnm4jQf3U+lJYCsVFqoIDrFTGyShsEib?= =?us-ascii?Q?9mSxbjs1jlRQSEXGa7pDRM1tn9ve5+e9x6aSwChE22NodrRUQxsaLTPnJviB?= =?us-ascii?Q?YMNS0oR2wlzWhUW4j5Xea2KKRKAbSssayt+K+ecgCl/fWJ2U+ezBbUl2Aobf?= =?us-ascii?Q?DUvGeEAhqbhciYbiIXzUL0oovuz3+fsAy53GqmbaztV/JjlmSGbwZHb5lFrC?= =?us-ascii?Q?nj7hc0Vlj/hc6snSuhM93Lyv5TQQhkeJ47ZVj0zYcfh4zu50tCnjAHL3VUiX?= =?us-ascii?Q?ZO1oEodjh6GXV4dL7xrUN7+LqslBphGdlRrDRlqUMvFnEpEi3OZ+CNgFGq2A?= =?us-ascii?Q?MUMDVxLZps+P5sTgjiMkap3clR5z2RRK8EH0W1jXHBqayCfKIHnK5LxSniFi?= =?us-ascii?Q?doxomOOvTjMgkSyk4mFQ5rCkUgIctFikx4emJ43DEHg3XwZQuQLaQM2Qg1oP?= =?us-ascii?Q?Oy/9wOA/5Eq9SQspDFs9g7nUFtZ95PmXAENXPWJvsHYo7wNH0gXc3+sTrALi?= =?us-ascii?Q?7ErEakttHb+ToMFFkAKiLfo2vLSiC7ymOFqnR8u1qx3URgSQ317BmHXHj5m1?= =?us-ascii?Q?rhb8vexLgo3hV94iUkgu5PvEUxcQdRzUldpl/IAv0PQn9jg+64hYtjYj92az?= =?us-ascii?Q?V/dCshVwk55RbE/qio1y/dK57Hb1gWBJKlo7UWjsxhRSxmEnfTchlDJJSzPB?= =?us-ascii?Q?fruy+ywwFr6Arfecza8IFM5RHGIK6XHU+p+0FgOkGsZ2tVCE0Wt19VkH0z2U?= =?us-ascii?Q?u6V0DltA/3iOImzlYN0xJMp+73FN/MAjTy+kwRpySkIVYYPoBx0TCiYBJiF0?= =?us-ascii?Q?iWLjifKYc=3D?= X-Forefront-PRVS: 0322B4EDE1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(39410400002)(39450400003)(39850400002)(39400400002)(39840400002)(24454002)(83506001)(8676002)(81166006)(2906002)(50466002)(76176999)(54356999)(25786009)(4326008)(93886004)(6116002)(61506002)(5009440100003)(1076002)(23726003)(3846002)(66066001)(47776003)(33656002)(6246003)(72206003)(7736002)(42186005)(2950100002)(6666003)(53936002)(189998001)(9686003)(4001350100001)(966005)(110136004)(53376002)(305945005)(478600001)(6306002)(38730400002)(5660300001)(6506006)(54906002)(55016002)(42882006)(6916009)(50986999)(229853002)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3062; H:localhost.localdomain; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3062; 23:wl7SZb9MdvlbLwhBzr9Ey8C2njPOmYEab2cdOPMc5?= =?us-ascii?Q?jiW5gvH9iHh7BCU4nhJ7tWbvvtaCMJC7j26COmeZpWB4RDKc7X7OoZPjt9Um?= =?us-ascii?Q?TplxHIzAMnbqgwZM1LwZEL9YRUM2kDvvUYnjWHOgMErJdLP3Mp/yTGyywniD?= =?us-ascii?Q?DMob2FtsyyJCIYz6QuNF3NCdhUs6OYKJzu+WTP9iRgFzFFIZX/fs1Iav6hge?= =?us-ascii?Q?NJxKcOpKvBNeI9ggbrtOEn7yPCqGfg45pxztZXqpPsZqFAQDQYRshLOpISCx?= =?us-ascii?Q?8NakHllRpnYDlEcsIjHXQiLvZuEr0+oi4+0lVJw7dztfEGaV0BD6VQD6Hqxw?= =?us-ascii?Q?ov2T3EsHiham90DaYV2d1evpHki7R4UstFDYxE4SZ1Wp1a0Mv0SRBviRp5iS?= =?us-ascii?Q?Ib3mckxf7gJFGZ4QpMpZrjJ2ZeCTMUPf0GjmPtfWviRSEt+ZsRIMVCwDfAoU?= =?us-ascii?Q?ZiBViFShVCHu1Cwvt4kzqx/eW9FBm00IRBggJV0crzG3iYRREAECY1KNjGgP?= =?us-ascii?Q?Q+oM+wfMCbWkL/iVFKeSyPTBFLi0wPMRIcqlAUiTT1eCRdnvelMIicYxKOml?= =?us-ascii?Q?Bgw7W3hsbYOznUav1BPJFawKxLAJA9yU6Sl95I35JTaBwzrTpNu/1MkP2Rer?= =?us-ascii?Q?p11S0shyuu3/FXiW52w99aPmAwL3kfCKyr/Eg6sU78rAghwDAcM1N3O1kYTV?= =?us-ascii?Q?6ZLdAjqNbxYc6X0ARjHfXuGz5TTpQvhY1AWNaBVv0FTEwEBIWZnublpOokVd?= =?us-ascii?Q?xE6qaynKjRRGGj+bAuOCYQ+LAwlGDromG6JcV+o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V5WMN/utqyD/y+915XIWzksQdBUqf0NaydYuvVTscLWSFjx5Akft7mGpkld8QzvCdRQ0TeZQogYMpP37orJ2TIZzJ+pi3HtTJbyJHNAkKypD7ZBLqVfNt9T8Qrx7RVQkdxlKR4Rf2r4CLENI0E5J8yGO84RHK8BpjQRxfpGNMR2wsIa4K3Azo/jTj1SxbzJTqy609Gj9eyew== X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3062; 5:YgVVmhKKDFa6Q4o8ezLspAWXmCx/3m1iroKLXHGXtfnMi5WrNChPMTlCDJQ4YA+uDvAjOoxwbnsmZAbjjDuRuI4LGmLPMVvXFLZ4CJPM55ULaFj5IJ4PMKEKAq4eHfy46ahVs0WAF5bQxLtzRLr17szXEmNJpeNqP5z++6qBhAGZquooO7DO7ziqjBxXRy6CmGmyN5QKyzL2b74RA+0kZNa83i/9da19UJj0csTZqcl2GrG86qefV/68mKlsDWiqPl9K2P8/mLVvhlZy3IhLwwH0czvJeJCxmFGZsttzU9KqBAoOyP2YMMyvWUA/NgheyukYprbzLzVBroZOrM8gF64TI2sScABRF0mu/xCoNGdgvB7VEHwfvIdVUPbseznx4QJunHsM6SCb4pO7juS/BunBRmymEgEqOU8eWqIF+e+QGraFMnGWTTZXOdzS2p0f7ULYuE5vu4qcGV/pz0FzR+JgBmmDwlZ4upKODDlJA9yqhEuIuU5yd4ZecMdnhsOw; 24:/TPfDOdsbELZq5VbjHxSXhq5W8e2hUSej2vj0X/tkZFiqhOYy5B6WBgxf9AIxbEmbSwa+NOnj7RPAIxawVEGtkrF6dhYOkiVvt84V3TXn3U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3062; 7:GiHi+YR4iIjOl+w1CxQHX5CEfYdpP6lAu4eJcnFb9/KIX1AMaCPmWveSHd1OmIv5lFEp2y0kJALl2jBME8gIP9CYLUgzLy25akqeLXTP0tvZW9tBTPpvK3hRYHGPCu4B4t7gHW/65PJJGJiZhNyzSt0q6wvSNtObEleR1t+8PCQuw28XR8bS8H1+DrHq1LRBYxjC4pa767jU0wY/k+KJ6xQSgxI2rhxBYh+Og8Lw5ZJOS0ffGN5Ww+K+kig+8Ig5PE1k2Hzr+kxigIEr072tFwDfq2mBolDPAcvEgLFiQI1ck4r99rbMiye3braORTtMAwFyMdBUhfaXuvlfzEKUhA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2017 11:02:05.0190 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3062 Subject: Re: [dpdk-dev] i40e igb_uio: reset pci on process exit 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: Mon, 29 May 2017 11:02:09 -0000 On Mon, May 29, 2017 at 01:01:06PM +0300, Gregory Etelson wrote: > I still have to support Red Hat 6.x. These system do not have VFIO > > IGB_UIO is the only option there. > > Also, there was a discussion that claimed IGB_UIO has better performance > than VFIO. > > http://dpdk.org/ml/archives/dev/2014-August/004609.html > > Regards, > Gregory > [..] >> static int >> igbuio_pci_open(struct uio_info *info, struct inode *inode) >> { >> struct rte_uio_pci_dev *udev = info->priv; >> struct pci_dev *dev = udev->pdev; >> >> return pci_reset_function(dev); >> } >> >> and.. >> udev->info.open = igbuio_pci_open; >> I was suggesting to make reset part of open. It should work on your setup. - udev->info.release = igbuio_pci_release; + udev->info.open = igbuio_pci_open; Shijith