From nobody Tue Dec 23 05:51:41 2025 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 4db3zf14dKz6MQgx for ; Tue, 23 Dec 2025 05:51:42 +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 "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4db3zf00mFz3L8g for ; Tue, 23 Dec 2025 05:51:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766469102; 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=wsNeJZ89j93Srws0/HsINyfn/nb5itn+QG0f96hMf/g=; b=bLIy7wUSrt25Bu4hTwhdp/mNK1uWpheSYbQrcKBIxRxvw327A18HMytFBEUS5kBnntJVC6 XyZV1CUh6C8m4zoF4qVeS/KPMcYBvvQI2jRfucs2ng4Wa7L1zyVo81IFsUCaQHASlmR6Td IRkKfedDYdSFdgXAxfIswkjZ1NCJzJWeVS+ur22mIprMy0T8CbwgNQ33phqWplRm49ht7f DdfI4dunfBmTzm0mf8nR3S1XBT+muQK6npDVjGQ3LCGul6sf8lArp1d6cMfGQsgGW+X8/P eVdA8k5S5dpqx2D32H8Iej+6z+SC0CxczBlzbwl1hTgj9Yiuy4wbHQW1FdeFhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766469102; 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=wsNeJZ89j93Srws0/HsINyfn/nb5itn+QG0f96hMf/g=; b=BPY1/UPVPetvjgXxZBK8pFtOGJX8+oz/lEgQ/CNWYeo8OyqmPCivAh239jg4LR8EWHN6AP veE6EiveJdklGzv4EJT9ZI/vSoRLxrSpEdOdbxzOdn8br1TsPBv/Ofomojg+C3CMt5ciMs XK62mLd7goqP0JhTEgTR2Ma8mu6MvVi0DuZkjVp6uthU2+0mpEiqQqGpaKZks+JgIcysi2 wDsIL3pfteSeYioHdi6WSmfKY3qv9gYgBj0nT2emcj85lXLorj0aVPpRJgjJmSMI8PMhTh qFIOEJ8XHeBL99RGkehZL4HhHR6jnfqrPdq54RMeqG+VFmS9MO0TLS3WAeJUnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766469102; a=rsa-sha256; cv=none; b=LvciEe0P1tzC59liEx8E4T1kuuoWENlx48Wl/6La0x3ISW9wb0AaKV+IA28UtTQNyTwS7I sl0ELPRkwptuZAVelkgztPoS7rJLkZgPIRjuMgJYXPSMSzUHMxDvkkyBq3pMBirfhYwznu tQ5Wmn/yyzDHKIc0A+keEBEIILli6FuXDAlsfOh2sBi3lGfCM7gzZiARl99ZTh1ODJt/XR Bf64IXvKUBgKf1yCrXCbZtt+HNOeYG2V0UXyfxSYGw+iYf0BEsBfKUAitsQUeMIQR8rrU8 lYTwf3Xr9Ubq+WxXh7GpYqOVkG5C9UoKVSxGva6ibBo1yw0jZH2QxcMc/6aQtg== 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 4db3zd6ccXzyxj for ; Tue, 23 Dec 2025 05:51:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 22193 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 23 Dec 2025 05:51:41 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Wei Hu Subject: git: 44f656641c23 - main - Hyper-V: hn: just call vf's ioctl when changing mtu 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: whu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 44f656641c238cb3db31026f3e3bef36cd5231a8 Auto-Submitted: auto-generated Date: Tue, 23 Dec 2025 05:51:41 +0000 Message-Id: <694a2ded.22193.3a2f040f@gitrepo.freebsd.org> The branch main has been updated by whu: URL: https://cgit.FreeBSD.org/src/commit/?id=44f656641c238cb3db31026f3e3bef36cd5231a8 commit 44f656641c238cb3db31026f3e3bef36cd5231a8 Author: Wei Hu AuthorDate: 2025-12-23 04:23:39 +0000 Commit: Wei Hu CommitDate: 2025-12-23 05:38:40 +0000 Hyper-V: hn: just call vf's ioctl when changing mtu When changing mtu, if a vf is attached to the netvsc interface, just calling its ioctl to change vf's mtu is good enough. Tested by: whu MFC after: 3 days Sponsored by: Microsoft --- sys/dev/hyperv/netvsc/if_hn.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c index 2ae9e710978e..79fdea371fbb 100644 --- a/sys/dev/hyperv/netvsc/if_hn.c +++ b/sys/dev/hyperv/netvsc/if_hn.c @@ -3750,14 +3750,16 @@ hn_ioctl(if_t ifp, u_long cmd, caddr_t data) ifr_vf = *ifr; strlcpy(ifr_vf.ifr_name, if_name(vf_ifp), sizeof(ifr_vf.ifr_name)); - error = ifhwioctl(SIOCSIFMTU,vf_ifp, + error = ifhwioctl(SIOCSIFMTU, vf_ifp, (caddr_t)&ifr_vf, curthread); + HN_UNLOCK(sc); if (error) { - HN_UNLOCK(sc); if_printf(ifp, "%s SIOCSIFMTU %d failed: %d\n", if_name(vf_ifp), ifr->ifr_mtu, error); - break; + } else { + if_setmtu(ifp, ifr->ifr_mtu); } + break; } /*