From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B3858A0C41; Tue, 30 Nov 2021 09:53:25 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B3B24113C; Tue, 30 Nov 2021 09:53:25 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id 11379410F7 for ; Tue, 30 Nov 2021 09:53:23 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10183"; a="236403288" X-IronPort-AV: E=Sophos;i="5.87,275,1631602800"; d="scan'208";a="236403288" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2021 00:53:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,275,1631602800"; d="scan'208";a="601328147" Received: from fmsmsx604.amr.corp.intel.com ([10.18.126.84]) by fmsmga002.fm.intel.com with ESMTP; 30 Nov 2021 00:53:23 -0800 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx604.amr.corp.intel.com (10.18.126.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 30 Nov 2021 00:53:22 -0800 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 30 Nov 2021 00:53:22 -0800 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.104) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 30 Nov 2021 00:53:22 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A58wwSPp7I2lKYiUa+SyUq5nHq8pWuIl9A/ViESi405UTcYZxD1Y0Vab/AclI+ZDNrH9mN32E3+x2vEeBPP71UdMTmNmOuSMMJX0+TUf7ibyFaKtUnwbnDOhKXLnIqKs65xJHMrgIZ7KpbUp0I3KggYFrv7eMdVkbhSilBf0ZLhAIZsRouifGBykYiAaeQlfQTdzV3+V36kEcNMAiDxeCHOLpf+wykEi/uA2Ute0bt7IjHO17mE4tUs0H34z+x53h3/fNxHfGOFOvr3b3WXFu14L9n2OdKkG54LKC7cxhO+kytKEhYlCrKCnO4EEIeebUZbDQH4vcRYz0WgTIS2XoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=id7Qs0kUVUqUV5diggqwUvLn3yLAeTu3J9bVaFDdHfI=; b=fN6JNPzhjpHY+p8yG83F8KwHmCez4R7ZbWhRzoJMrOmtV7CAtRghtrO0V8NFq/1g18vnXG2WikIdeDgSUzguwCC0UWHRjM65Tt7plw6NXKou9SvdQN0mf90FxhskS1ScfUJA3g+yC6RN4UvowmB8s8fcCVwQpfBwb5MPghdLHENtp1wkfNpePh8Ci8FAgNRHJuwboydHgzpaWLiNV0GIlKdJ3WJKtiI0YeqDpbG8AKcsHmWYe0ETQoL/I5gKHdAued2Skopjz5QaT8z+KDah2N2YeO6lUxYcs/lOHhWQHNjyvosvPSmSmGIoU6JHS3VS5251yQkz0UVyO9FBJdfAyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=id7Qs0kUVUqUV5diggqwUvLn3yLAeTu3J9bVaFDdHfI=; b=uMR2uaxyxp1IBXryiwtxBoYdiX8ztsAouYkS+IYs1GpXqMi6B56FAz/cBgz+d3VWWX/DhNo/Jf/+osKhBLzl9dnhr+5lm0QZsrohMC6SRYaBRrGjLX8Vc13HsIAj/a5XhsmYh75BO5KXpKXMUAMMh4IphnYYZpDqVNNYFojj2kM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) by PH7PR11MB5767.namprd11.prod.outlook.com (2603:10b6:510:13a::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.26; Tue, 30 Nov 2021 08:53:21 +0000 Received: from PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bc5f:31a7:10ad:443c]) by PH0PR11MB5000.namprd11.prod.outlook.com ([fe80::bc5f:31a7:10ad:443c%5]) with mapi id 15.20.4734.024; Tue, 30 Nov 2021 08:53:21 +0000 Message-ID: Date: Tue, 30 Nov 2021 08:53:16 +0000 Content-Language: en-US To: Lewis Donzis , Yong Wang References: <2134779104.413217.1638218715124.JavaMail.zimbra@donzis.com> CC: dev From: Ferruh Yigit Subject: Re: vmxnet3 no longer functional on DPDK 21.11 X-User: ferruhy In-Reply-To: <2134779104.413217.1638218715124.JavaMail.zimbra@donzis.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: DB8PR06CA0039.eurprd06.prod.outlook.com (2603:10a6:10:120::13) To PH0PR11MB5000.namprd11.prod.outlook.com (2603:10b6:510:41::19) MIME-Version: 1.0 Received: from [192.168.0.206] (37.228.236.146) by DB8PR06CA0039.eurprd06.prod.outlook.com (2603:10a6:10:120::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23 via Frontend Transport; Tue, 30 Nov 2021 08:53:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d599671-9e47-4d14-66ef-08d9b3dedc48 X-MS-TrafficTypeDiagnostic: PH7PR11MB5767: X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Igq6cXez3r6+fmtrv6ST/Oi7PnpF/ezKiIq5eMRPRKJDR4dg+qZa35aQwqGNWc7fJajVSAmh1omdUXTP38Qr1S45yMqgel5G0pmNl7j6tJ1pjLeQMdhfax8hyHUrUTcNWDgZ5/gae9wgiXbynlitRqV/rSxluxdFO4bHzLH3ziF+fua1kbCsFDZxfI72PTED221Q0xIXzlIdynYhpYRAEPVMSugGq2apqV2u0HIPQmh9V7wR+cpgM2xg7jc/7tWJw5pXZgv/lJuUpKkS+20RRQ+3vf8Auqa2gK+ox4lwhgWQ0xUNjEJeS7AdANqkz6M2RrAzX/c420jZBFNMi2GR9mLoDgpse4UCtte09dIKy0Mc41b9aIk46bIpRMkd5j3JCA2AxbZFxhSzAFppC3ci4hVCZmN9zHLLQu2PTQtZFe5egdsJ7sykTRS/nc8cmoQ24bSmhe+0aZ/Rxbwc+nB9RjPwakrGYVN4L+Ith5YllqEyICVMk+lySTB9M7B4Q3WvpuiBP+FztpSYkWi2VACNtd/k/QLdA0FP4cdv/iu6gTNj/U8chuqcZh98KbhZcyfHFNtnsSKsy3A2SrrATlDCveiuV2zUI7CnAhmsnOMuIUL83+iboqRozULYO5RgHwaSHKVzz5K+ptU5OakRTgYsrOdDutHPvWf4XcegYQiJGNFgttujm392QH3++wsOshnBFBQp0A8WvMROy8+/jh6pAA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB5000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(53546011)(316002)(36756003)(82960400001)(2616005)(16576012)(44832011)(8676002)(5660300002)(66476007)(6666004)(66946007)(66556008)(508600001)(86362001)(110136005)(2906002)(31696002)(4326008)(186003)(8936002)(26005)(38100700002)(956004)(31686004)(6486002)(83380400001)(45980500001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RVU5UFNLeGVJQjhrcGFML2tmYVZxc2VHZXV5RjV1VjR4dHYvN2tpQmdqT2tx?= =?utf-8?B?L0dhWExYU281WnlNS3VBMEZWNTN4aXVsVHZuaThrdXlkd3d1aFZoc3hQcjVo?= =?utf-8?B?a3Rsdk1Jb3dabXMrVGs5cDIwL3hPd0JoT3pBUUtWeGdXa1R6SzNsVjF2MWJr?= =?utf-8?B?a21JYjhNVWkwZHkyN0RBMXpVOEN4Zk9ackwyUm1YWHBjaCtiNG1Ldk95clhw?= =?utf-8?B?TUNWZFdGSENrRlRDZHFBNmtoYkV0VXBZcEJLT3JWaXpMUW8xRHErRTYxVjdh?= =?utf-8?B?TUhiaHQ0UVpGbDdsSDFPajQrRFIyUXpDRjBkYTN1dnpsd2xNRmd3MlpkeFRq?= =?utf-8?B?NS9KWVpzMmM2RTZhRUZKR3gwYmpIeUhqVC9VZmVzazNMSm1hRXRGYWllYktK?= =?utf-8?B?TUtpbjNRS3lFMzJ0VEJsbGtFbGhvcTZWaE9YWDVTYTdoYWFzVjZHbXhFZStO?= =?utf-8?B?L2VxemJEeU5PK3NnMmVtWHRjc3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sQ2NRbTlPS2ZoWjFhU3o5Y1BiNm5pd0gzM3BMdlds?= =?utf-8?B?eHQwTkhML3RoZzQvWEw2a1YzYjNNZytvS0paQmJ3RWVrekJrZTcwbVA1emFR?= =?utf-8?B?cnNMOHE0V0trbFcwak9BTFF5OXFTN2VkNnlWRzFYdHJsY2w4RmZWTDZ6Tk5t?= =?utf-8?B?WVhJREYxYmYveFFVT0FIVWx5eFdjYzZRT0JWRXJ2Nk1YOEtBa0VhMFBXYVF1?= =?utf-8?B?NmtxY0NDdGF6bzFJUi9mMjYrK1VaQTRSNjhRc2crL0E0Y0VzVmhaakplMTVy?= =?utf-8?B?R0gzeklZQ2ZoV1dOTmx1NnNEMjFlMjlMcm9JMWN2cDhBNHFlUmFueG11ZmVX?= =?utf-8?B?RVJ3NEJ0M2JhaTlGQUJRZjMyZzM1TjkwUlVCSFZqS21PSGxEQkNMUHZOcVp2?= =?utf-8?B?Z1NmOVI2TTZ1eTlxMVcvSjRETUY1U0JxakMraDMwU2tHWFE2emFKSzJQdTZk?= =?utf-8?B?VWY4QUpTOHhuc1I2cURQMFRHbmFSeDVlTnJIVmFuaWN5cG83WkpKNzlDWC9u?= =?utf-8?B?N095RjlHNjZtOCt1dms4TDUvQkpUYUtsVGVsNWxiWGYwYS9ZdHkwbnVkdDgx?= =?utf-8?B?V09hT1hYcnZFWUExMzJmbEpIdGptWU5CbVNsQU5Eb09tVTREa3FlYzFtSTc0?= =?utf-8?B?RW0yYkxKd2VKNS80ZWZUbHgyWm1SQXNoa3ArM3JmajQrWWxsUVphcVlSWGd4?= =?utf-8?B?WEZISjViZEQ4L2pVYkR2RFJDbVlLWGVyTEVERk0yU0FodWFEMlVPRDBuQWFM?= =?utf-8?Q?9+x9cGpzYq256pJkVrmfucQ=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: 6d599671-9e47-4d14-66ef-08d9b3dedc48 X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2021 08:53:21.2048 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Mz9RN8VVb8UV7CUkFX4qikK0oPVMiykBQOjif3GBNAKcq7J2mf1n6EdhXSFmycjjG2tRsGDHoQnIaLjG2gPOMw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5767 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 11/29/2021 8:45 PM, Lewis Donzis wrote: > Hello. > > We just upgraded from 21.08 to 21.11 and it's rather astounding the number of incompatible changes in three months.  Not a big deal, just kind of a surprise, that's all. > > Anyway, the problem is that the vmxnet3 driver is no longer functional on FreeBSD. > > In drivers/net/vmxnet3/vmxnet3_ethdev.c, vmxnet3_dev_start() gets an error calling rte_intr_enable().  So it logs "interrupt enable failed" and returns an error. > > In lib/eal/freebsd/eal_interrupts.c, rte_intr_enable() is returning an error because rte_intr_dev_fd_get(intr_handle) is returning -1. > > I don't see how that could ever return anything other than -1 since it appears that there is no code that ever calls rte_intr_dev_fd_set() with a value other than -1 on FreeBSD.  Also weird to me is that even if it didn't get an error, the switch statement that follows looks like it will return an error in every case. > > Nonetheless, it worked in 21.08, and I can't quite see why the difference, so I must be missing something. > > For the moment, I just commented the "return -EIO" in vmxnet3_ethdev.c, and it's now working again, but that's obviously not the correct solution. > > Can someone who's knowledgable about this mechanism perhaps explain a little bit about what's going on?  I'll be happy to help troubleshoot.  It seems like it must be something simple, but I just don't see it yet. > > Thanks, > lew +Yong