From nobody Mon Feb 7 15:08:56 2022 X-Original-To: net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 001F919A1A4F for ; Mon, 7 Feb 2022 15:08:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JsqKh1yDxz3vMW for ; Mon, 7 Feb 2022 15:08:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 006EA279A5 for ; Mon, 7 Feb 2022 15:08:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 217F8tgc092588 for ; Mon, 7 Feb 2022 15:08:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 217F8tGl092587 for net@FreeBSD.org; Mon, 7 Feb 2022 15:08:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 261746] hn(4): Communication stops when enabling SR-IOV secondary mlx5en(4) interface (640FLR-SFP28) on Windows Server 2022 Date: Mon, 07 Feb 2022 15:08:56 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.adm@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: net@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644246536; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aRQtdn2Y4yYNlJRc3sohya4odLwTtaoQGSF3Cs6zl7k=; b=ukvwnu4EnT5yNelw+iAh025L37NkVj4FfH/vxTI9wTcPvgjZJTIagtHeyWMVlH8t/np+oy 08b+whw+WS4Y/arwsdc+npLjYUcyXC3J7Oauyk4lDvUtPe79d1/VGKF82nz42hGtRDADvu 2J6Rc7X40W/OLmdvaLHnhxvPRxzuSJeQVHePaOJ02ZCqlkvBrDSCLdubpeYbNtEeltVZON zuP3fuVfuiCJ+Ua3qgNtyezaRPoCrjcm389d6m1NLHjluyKAEykuxtgSq55iRqY36/AOW4 8Uqwa3STCy3RWnza49zAeWpI0AWfBdpIqRDB5c9mPJ2phOwh/2oYscNmnMb7FA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644246536; a=rsa-sha256; cv=none; b=H1dzTicXFNgSk85HPFUbjPnIDDdRO13pVM5BKe4qwFfahLaoE8vj4/lKDlBI5m2T54ming nNLVsEhUpnrd3mJgkxZnIhrctS5uEG7puZNAGa7JoG+jDQU89IRMmkNzmCzehxgJIyYDNQ Hu8ISgWLfLnrtQCoMgW/6MrewpJetsBwo6Hz+26etmgzFHZLr+MZNkIXIhtdfxbpsFgUSS 40Z32tFerGUQ49AwcjsLbHiwX86Kjxc04edtZrzlIa8oxdunvnnvoj/g7pgrIqSMqsULY0 MODO/4SGjZGRwgVzED7xqSzhutEe3HKOCGWJBz0GeIRmgH7w8JXAJ5SPWxlKcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261746 --- Comment #5 from Michael --- Firstly, I did a little investigation to find out what kind of commit cuts the connection when using the SR-IOV technology and mlx5en VF. This is comm= it e059c120b4223fd5ec3af9def21c0519f439fe57. With the GENERIC kernel and the previous commit a8e715d21b963251e449187c98292fff77dc7576, everything works as it should - SR-IOV VF works for both ConnectX-3 mlx4en and ConnectX-4 mlx5en. root@frw05v5:/usr/src # git checkout e059c120b4223fd5ec3af9def21c0519f439fe= 57 Previous HEAD position was a8e715d21b9 mlx5en: Add race protection for SQ r= emap HEAD is now at e059c120b42 mlx5en: Create and destroy all flow tables and r= ules when the network interface attaches and detaches. After the e059c120b42 checkout, the mlx5en VF network connection breaks. > How do you verify that the second interface stopped working? The working state is checked in an elementary way: Ping from the VM IP address outside the VM (in the same subnet, of course) and ping from outside the VM IP of the network interface of our VM we need. > If only the second SRIOV nic (Mellanox CX-4) causes problem, what happen = if=20 you just enable this nic, not enable the first one (Mellanox CX-3)? Does the second interface work in this case? I cited the use of the first network interface as an example to illustr= ate that the SR-IOV VF technology is operational on the hypervisor. And no, even with only one ConnectX-4 mlx5en network interface, this behavior is as described at the beginning. > How do you enable and disable the SRIOV interfaces? Hyper-V Manager -> right click on the VM -> Options -> Network adapter = -> Hardware acceleration -> "checkbox" Enable SR-IOV Secondly. FreeBSD-12.3-STABLE-amd64-20220203-r371543-disc1.iso - no changes were made (installing the system out of the box) - Everything is OK - SR-IOV VF works= for both ConnectX-3 mlx4en and ConnectX-4 mlx5en. FreeBSD-13.0-STABLE-amd64-20220203-40b816bd4f0-249223-disc1.iso - no changes were made (installing the system out of the box) - Everything is OK - SR-IO= V VF works for both ConnectX-3 mlx4en and ConnectX-4 mlx5en. --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=