From nobody Sun Aug 16 01:06:52 2026 X-Original-To: dev-commits-src-main@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 4hMyV46Fhzz6p8Mn for ; Sun, 16 Aug 2026 01:06:52 +0000 (UTC) (envelope-from git@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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hMyV45TBvz3RVR for ; Sun, 16 Aug 2026 01:06:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786842412; 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; bh=thrDHjmaStTdfTjVKkzZmjr++wxDNjLsaTF3+CLCUBA=; b=sy5Qr8YX+1ovy/SW67RnQurzYK79+bWFUHisxaRonQ2l8bk0MdDpOm7hXCy4fYZn2KK9pe SMFT6ncEO4uO806WikPBrlMvV1R+Au5deALtAU49l8rHehBkN/NsiE13Wh9011isKvmuqA WgP3wcOTZhwbh9cUSoU8lxl8pdnak+66BBQXavKAPKqPi1mNVDRuUXgWNvYsMwgvKUS54T 2hMUv/REx+2entgek2l/y8ZJMBYL2b/8+4UMPLpRZf1b8MMF4fLAWOlUXaBMxCHyyFxmoW 118U7TsuxIc1kVJX/bpp4htEc5SGLtp97vPsjiuBeV6gpqrUkuW0sU9uu/+Brg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1786842412; a=rsa-sha256; cv=none; b=Roe8d61h+irHk9xkUguDEoHP00A2ygBoxG1QuhFAJuiO6Td7DG90ivmGUepa8bJCOYVTHv qfyjW8rfAgeEHBZDlalh50vpuNCdvvEDqolHgC/N1LZjbCrf81T2I5QNmKno1Fa+SVVogs jjukm+xVHybZPuhGYv6J270XTfikvNmcqikyJBmJTD2OVh0gRQDR1SVFQ+5ZSYFUS8nYKD JT3AWUG3Vcn9NSes/dA5vtxFlVRW2OMWK7aUItSQXH+ZVclcQOLFzHixLt9m2QQoF4iBHI Pw2FkUQ6ule4eApqTdn9EYHfP8afPjkd8XH1uYwUQj42Cio9QhqnvLqyersWJg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1786842412; 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; bh=thrDHjmaStTdfTjVKkzZmjr++wxDNjLsaTF3+CLCUBA=; b=NJ2UaMcstgeogNXfoqOgwvpnIr13OpR1ZpY8QHl104NoKFHsBUTzXHKkgV5Cr0Kk4j4Cik EZkxBQjOtFcm/NQ4Y3ESca4HW54Z64OBEZ75lZJGHetB6rS6xJ2ZBetVJ+7Mm5kkNRVvbS IvOb4FNkFWgShOYE5BkbeQvVhxZE8LT13BvabhtEm6t4aNZUmsyfPXSBv30l5E2uyeYOTf E6z4NEunmDrgqv1qx9atsEQSH+mb6nRfPCp3odJY5P8HeYKOdbILj0Xz9FSSwg1UHeyzpj MaBft7qtlZCNdPT3KG+ESb6o1fijWxhhEqSUDDTd9mVDWGFtCDrVxN6hGeBAeg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hMyV42RjHz154n for ; Sun, 16 Aug 2026 01:06:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 39dff by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 16 Aug 2026 01:06:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 08c41a679b28 - main - ixv: Reject unsupported E610 Hyper-V VFs List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 08c41a679b281505eb7f1fd0cb528f3c1fe87fed Auto-Submitted: auto-generated Date: Sun, 16 Aug 2026 01:06:52 +0000 Message-Id: <6a810d2c.39dff.bef3f0b@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=08c41a679b281505eb7f1fd0cb528f3c1fe87fed commit 08c41a679b281505eb7f1fd0cb528f3c1fe87fed Author: Kevin Bowling AuthorDate: 2026-08-01 02:42:28 +0000 Commit: Kevin Bowling CommitDate: 2026-08-16 01:06:42 +0000 ixv: Reject unsupported E610 Hyper-V VFs E610 Hyper-V VFs use PCI configuration space communication instead of the native PF/VF mailbox. The generic E610 match currently attaches native mailbox operations to those devices, and the imported Hyper-V subdevice identifier is incorrect. Correct the subdevice identifier to 0x00ff, as used by DPDK shared ixgbe code, and reject that subtype until ixv has a complete Hyper-V operations table. MFC after: 1 week Sponsored by: BBOX.io --- sys/dev/ixgbe/if_ixv.c | 13 ++++++++++++- sys/dev/ixgbe/ixgbe_type.h | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/sys/dev/ixgbe/if_ixv.c b/sys/dev/ixgbe/if_ixv.c index 6e6d99fa058d..93af5daa01d3 100644 --- a/sys/dev/ixgbe/if_ixv.c +++ b/sys/dev/ixgbe/if_ixv.c @@ -87,6 +87,7 @@ static const pci_vendor_info_t ixv_vendor_info_array[] = * Function prototypes ************************************************************************/ static void *ixv_register(device_t); +static int ixv_probe(device_t); static int ixv_if_attach_pre(if_ctx_t); static int ixv_if_attach_post(if_ctx_t); static int ixv_if_detach(if_ctx_t); @@ -163,7 +164,7 @@ static int ixv_msix_mbx(void *); static device_method_t ixv_methods[] = { /* Device interface */ DEVMETHOD(device_register, ixv_register), - DEVMETHOD(device_probe, iflib_device_probe), + DEVMETHOD(device_probe, ixv_probe), DEVMETHOD(device_attach, iflib_device_attach), DEVMETHOD(device_detach, iflib_device_detach), DEVMETHOD(device_shutdown, iflib_device_shutdown), @@ -250,6 +251,16 @@ ixv_register(device_t dev) return (&ixv_sctx_init); } +static int +ixv_probe(device_t dev) +{ + if (pci_get_device(dev) == IXGBE_DEV_ID_E610_VF && + pci_get_subdevice(dev) == IXGBE_SUBDEV_ID_E610_VF_HV) + return (ENXIO); + + return (iflib_device_probe(dev)); +} + /************************************************************************ * ixv_if_tx_queues_alloc ************************************************************************/ diff --git a/sys/dev/ixgbe/ixgbe_type.h b/sys/dev/ixgbe/ixgbe_type.h index 3194666bd81c..6c7ec0cc3d79 100644 --- a/sys/dev/ixgbe/ixgbe_type.h +++ b/sys/dev/ixgbe/ixgbe_type.h @@ -163,7 +163,7 @@ #define IXGBE_DEV_ID_X550EM_X_VF 0x15A8 #define IXGBE_DEV_ID_X550EM_X_VF_HV 0x15A9 #define IXGBE_DEV_ID_E610_VF 0x57AD -#define IXGBE_SUBDEV_ID_E610_VF_HV 0x0001 +#define IXGBE_SUBDEV_ID_E610_VF_HV 0x00FF #define IXGBE_CAT(r, m) IXGBE_##r##m