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 2D82EA034F; Fri, 7 May 2021 15:30:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AEFAA4013F; Fri, 7 May 2021 15:30:08 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 315D440040 for ; Fri, 7 May 2021 15:30:07 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 08567A0524; Fri, 7 May 2021 15:30:06 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 07 May 2021 13:30:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: brian90013@gmail.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 698] i40e unload on FreeBSD prints "unqualified module" and breaks link 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 Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D698 Bug ID: 698 Summary: i40e unload on FreeBSD prints "unqualified module" and breaks link Product: DPDK Version: 20.11 Hardware: x86 OS: FreeBSD Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: brian90013@gmail.com Target Milestone: --- Hello, I am using an Intel XL710-Q2 (2x40GbE) NIC on FreeBSD-12.2 with DPDK 20.11.= 1. I have the two ports connected to each other via fiber. I have been testing my application by running DPDK on ixl0 and using the standard OS driver for ix= l1. I am able to transmit and receive packets between the two without issue. However, when I unload DPDK with 'kldunload nic_uio', the ixl0 driver attem= pts to reload then prints: ixl0: Link failed because an unqualified module was detected! At this point, both ixl0 and ixl1 are in a "no carrier" state. I have found= a complete power cycle is required to bring the interfaces back online. I have used both ixl0 and ixl1 in FreeBSD but only see this message and lose link = when returning from using DPDK. Here's the full trace from /var/log/messages sho= wing ixl0 coming back up as nic_uio is removed: kernel: nic_uio0:=20 kernel: detached kernel: pci8: at device 0.0 (no driver attached) kernel: nic_uio_unload: entered... kernel: nic_uio_unload: calling to device_probe_and_attach for dev=3D0xfffff8010632f600... kernel: ixl0: mem 0xfa800000-0xfaffffff kernel: ,0xfb008000-0xfb00ffff irq 40 at device 0.0 on pci8 kernel: ixl0: fw 6.0.48442 api 1.7 nvm 6.01 etid 80003564 oem 0.0.0 kernel: ixl0: PF-ID[0]: VFs 64, MSI-X 129, VF MSI-X 5, QPs 768, I2C kernel: ixl0:=20 kernel: Using 1024 TX descriptors and 1024 RX descriptors kernel: ixl0:=20 kernel: queue equality override not set, capping rx_queues at 4 and tx_queu= es at 4 kernel: ixl0: Using 4 RX queues 4 TX queues kernel: ixl0: Using MSI-X interrupts with 5 vectors kernel: ixl0: Ethernet address: 00:23:56:1f:22:15 kernel: ixl0: Allocating 4 queues for PF LAN VSI; 4 queues active kernel: ixl0: PCI Express Bus: Speed 8.0GT/s Width x8 kernel: ixl0: netmap queues/slots: TX 4/1024, RX 4/1024 kernel: nic_uio_unload: done. kernel: nic_uio_unload: leaving... kernel: ixl0:=20 kernel: Link failed because an unqualified module was detected! My problem - returning from DPDK breaks the link - sounds very similar to t= he following message posted to DPDK-users in June 2017. That issue was on Ubun= tu 16.04 / DPDK 17.02. The second thread indicates it was fixed by updating to DPDK 17.08 and the Linux driver 2.0.30. The third link contains a Linux i40e patch from September 2017 related to moving the unqualified module check. I wonder if a similar change is required to work with FreeBSD? I have posted = here vs. the FreeBSD bug tracker as the behavior has only been seen when leaving DPDK. http://mails.dpdk.org/archives/users/2017-June/002116.html https://sourceforge.net/p/e1000/bugs/570/ https://patchwork.ozlabs.org/project/netdev/patch/20170930004507.20072-3-je= ffrey.t.kirsher@intel.com/ Thank you for your help. I am hopeful the XL710 can be used both in FreeBSD= and DPDK without power cycles between use. --=20 You are receiving this mail because: You are the assignee for the bug.=