From nobody Tue Sep 15 01:56:31 2026 X-Original-To: dev-commits-src-all@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 4hkQ9d30Yzz6sM0R for ; Tue, 15 Sep 2026 01:56:37 +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 4hkQ9d1S0Jz4X2J for ; Tue, 15 Sep 2026 01:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789437397; 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=hnenBrUn8iz0wmtCa1cMVmD6GFgCcJzci/JJOZMxr3w=; b=lE+p+h0YrAHTo/66+4AEMedZ6HU/Z21GuOtpPbLCP4/l/H5q35PgsY1cgrED/C3/El4EaX EtKysxxn4yYdoZHqg0bwmDBdy6c9DPKfM4ozKgRKBodjDn3qcL2+b3KC+S9a6tQjrs7iEh C+ZH1JhhYaPrE8bEURW94gNtu301S7MrGoS6Hjxl5Du+8ftnm2GWJmO0C2qXB/ksOOD9hv VTR7HZ5WxFeXnwCd9IOlGzcGTk7WCHp7A8DLDxNiwruW/Ukmg2cRB/T0xlEw7t2KVn9jJy 0un2sS8Uc/VLmEnyTiBELptTI/WyjSjuvZhXoW4eQD8sM0quFBj2Tez187Vgyw== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1789437397; b=wvNUIG9lg+SOwBwY/qsvKKqWW4XMPDEHbSiccI61jE08S8Jl0QXb+nL78S0ma4UN5s/Z+H NztuQZpQQPC9vUCjAULqPDFYm929dYGJ3qW5s+TmHb9Dt20QSLuLhkQXKltv7gSLoti2R7 99ML95C1Wd2Hsp077ZK/qjEmshgh1Vkz59hvYvJQeA+ftYwtpy+kcptymK/3euNYr2I/A0 gdPAn2+nHwVbDgPrTQ+JT1V/EC7gw9Gu9K3c9MSIMjWYoK9bvDZVWkRVSL+utKw+YH6n2Q BjkjUMa/qHz8FulPZAyhpVfP12aqj6NtRkp31hyzBp3wpbzJ2uQx/h2EBzjA2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1789437397; 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=hnenBrUn8iz0wmtCa1cMVmD6GFgCcJzci/JJOZMxr3w=; b=sLddXdBhdvaMZI67FNnmfUfWCJeytu0Tz+V6UcmeKp1V4ZzYI/5FE4JvEELjdW6HIkAtHf 3HfZhZNB5ZmJG4K6WjYoici05Kv3RHYmMin1NFIZM2d6yxwLII4AMKrLW/YJkiFQLBsT6o 1LCQ4E68YtnfkKgwMGz+fMsdCQlm0dOZ35ORHuzGYFc2p/mmx3Rlh5qRjIl6olQhYf+vMu AdgGnCis2DyoQNxhnmTR2OdhHLXy3xML1SKpbxAfI1uYQvHqVNh/fj8C96sIWVWQwux3MG yGQnbomzZ+f4uUZRQviactp8joNf0IBjPSWVIScClUO+lBRKbiuut+UFYKVYYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hkQ9d0X31zgL0 for ; Tue, 15 Sep 2026 01:56:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 23e3e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 15 Sep 2026 01:56:31 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 7c43b915de43 - main - hn: Refresh VF offloads after bringing it up List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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: 7c43b915de433bf7a9988faccd6e638f02e47fea Auto-Submitted: auto-generated Date: Tue, 15 Sep 2026 01:56:31 +0000 Message-Id: <6aa8a5cf.23e3e.386407fe@gitrepo.freebsd.org> The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=7c43b915de433bf7a9988faccd6e638f02e47fea commit 7c43b915de433bf7a9988faccd6e638f02e47fea Author: Kevin Bowling AuthorDate: 2026-09-14 22:28:17 +0000 Commit: Kevin Bowling CommitDate: 2026-09-15 01:56:26 +0000 hn: Refresh VF offloads after bringing it up VF readiness can precede its first initialization. In particular, iflib populates if_hwassist during init, so copying it while the VF is still down can leave hn advertising checksum and TSO capabilities with no hardware-assist flags. The stack then uses software segmentation until a capability ioctl happens to refresh the copied state. Synchronize enabled capabilities and hardware-assist flags after the VF up ioctl succeeds, before switching the datapath and enabling transparent VF transmit. Use the existing helper in the common initialization path, covering both normal bring-up and delayed VF initialization. MFC after: 2 weeks Sponsored by: BBOX.io --- sys/dev/hyperv/netvsc/if_hn.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c index 79fdea371fbb..118f4e42ce4c 100644 --- a/sys/dev/hyperv/netvsc/if_hn.c +++ b/sys/dev/hyperv/netvsc/if_hn.c @@ -1787,6 +1787,12 @@ hn_xpnt_vf_init(struct hn_softc *sc) return; } + /* + * Some VF drivers initialize hwassist only when brought up. Refresh + * the offload state before allowing transmit through the VF. + */ + hn_xpnt_vf_iocsetcaps(sc, NULL); + /* * NOTE: * Datapath setting must happen _after_ bringing the VF up.