From nobody Thu Oct 29 05:00:56 2026 X-Original-To: dev-commits-src-branches@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 4jFXB10d8Zz6xmd3 for ; Thu, 29 Oct 2026 05:00:57 +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) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4jFXB05Q79z4f9V for ; Thu, 29 Oct 2026 05:00:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793250056; 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=B0f53DyFkScTaC/EarX6uWcSP+wB1um27jkZ6eCOSQ4=; b=D91qkFiUfkxIEdZJGYD1xUhW5CGyLY8//QP+N37m57KkQG2daCq2WwDOJy8YUceosYJXXv aEXQDGErQX/1MTTfqBtbv1Q4z8bYq11/Fk8FjVaMGvkcoiZahst3CefovDvkkwuOLisGBW 4uESQMoGY6/SNgyKmsoz0acyGYOcDhCgIFTlEbRY5vQEJ/u8rkcn8KX1uQpjWtt/8lqJgJ 2t+fV472B+M3UEF2ArxMp+4/5o0pk3OcKwlw00p8hgxwMJ/pecjxiWY1VrJ3gOCbZccGwn V/2S4nmhnBhIO7xl7h2+IrB6XUEtO0ZhB6wGnw6MY43NOK9IBD+v0x0cqpiMpQ== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1793250056; b=xXJvovLa2MhUvlu8dDdGqeS87YeuYiHtgau4m0D4pyiOwKBcrFWm2isifUMhPK9uwF6zPi 0VYrarpdBq3wdUmIO3rlBomzswtXRtAJS85nLbBZ39ocsx/8z1alcp1hoN7hbWDDigx0Xy 3CDj0mH+f+BaKKmg2mnstW5Pmr7k3w1rkRMPpj00GhT311FP7ZXpX2geUULXXraR9Ib57E 99VCORQvAinXgpX/YlXGYQaiKizOqSiI91zFYhaiuW1Uq6okUHJwugTh22W87o8Fr2aX5V o3xkzNpPaNT8eyCNuLX4TD4ianvjROJo1o0yqzDmGOdW8jfmn5yJ2RX6geX2cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793250056; 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=B0f53DyFkScTaC/EarX6uWcSP+wB1um27jkZ6eCOSQ4=; b=IW4gvmQhd/GYkS80j2bKVp9lk4F2vi418Ym8vh88u/SHNkOJ4Dvn8htGTfykFfqMlE924Q dO6sNYaeUo8VznFNxHNaT/N+GeBukeV60HUPJYU7MxpZuTz34INHEvDaT4QWEnkOjg7oj4 Y23kVYBhHdN9+h/0z3VG49/DiP7mWFvSDSncwqDHwT7OvxkU4JhYoB4MCdFB5dRHfgf5YR EZXXXZ1WpGn4bsRpDmVowyJWEILy/9oqWolDMoik22x//h3RBEE6A8ERbB4guid1y+twcH 4DsowKmmBpZhmp4S3qU+iNNesY9+bOi9TiJk1QJBHezOBJ0copnSHcZ3Oy7fxA== 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 4jFXB054pPzPFr for ; Thu, 29 Oct 2026 05:00:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 325ec by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 29 Oct 2026 05:00:56 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kevin Bowling Subject: git: d3b1d2fbe926 - stable/15 - hn: Refresh VF offloads after bringing it up List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org List-Id: Commits to the stable branches of the FreeBSD src repository 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/stable/15 X-Git-Reftype: branch X-Git-Commit: d3b1d2fbe92654fe32da1a2ba91c1abb15196855 Auto-Submitted: auto-generated Date: Thu, 29 Oct 2026 05:00:56 +0000 Message-Id: <6ae2d308.325ec.20c98302@gitrepo.freebsd.org> The branch stable/15 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=d3b1d2fbe92654fe32da1a2ba91c1abb15196855 commit d3b1d2fbe92654fe32da1a2ba91c1abb15196855 Author: Kevin Bowling AuthorDate: 2026-09-14 22:28:17 +0000 Commit: Kevin Bowling CommitDate: 2026-10-29 05:00:47 +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. Sponsored by: BBOX.io (cherry picked from commit 7c43b915de433bf7a9988faccd6e638f02e47fea) --- 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 8c79ae7b003b..e69e41fe98d8 100644 --- a/sys/dev/hyperv/netvsc/if_hn.c +++ b/sys/dev/hyperv/netvsc/if_hn.c @@ -1800,6 +1800,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.