From nobody Sun Mar 31 16:56:03 2024 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 4V70dv6bvnz5FxPw; Sun, 31 Mar 2024 16:56:03 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V70dv679Hz4srT; Sun, 31 Mar 2024 16:56:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711904163; 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=VsGUrE8FwYJH4R62bY/YM29csjeOyKCQkoYHADnNvdU=; b=HzsGSjNJrFGYD7pUyR4at9Jprz4BP4JYu0Q8/5X2XXayBzpdKXrV9+S993Vu98Axt/ayqX u+b7W8X3uyiSWThEYTSwrtRHn0QH+8u70XHZzenF2jXtHhIk11+Kof6PqKEr95+Tx61xbd jxdHbIt7N1h9daewHcWjJDiUXUWzPGihqYbWaYoB2JLZof0niri7Kw3D1gV/OcadZ1AWYV SFQDjmRdBm4ZrXSDk+tIedN9vziJG8cHXpAItL9EDIcaZRDxpVh9hX8ehIPeN66RV8xYK2 5iHG4rTXjUK4TK1w6tq2Y843iF8i75TmOTjKvc0lZ+t4UySm6Rw0H3Rce0scSA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711904163; a=rsa-sha256; cv=none; b=ChdLTNa8g68g7hjpTz3q6oGfXCD7I+L721KPE2cnXXC67DbCvQWMlYOd6Lsx3Kp5SErsyw WXPATD6r3HnG8qWZlZdpsddUev35zf5+0/VOHYsC41RYNmGGNl69XBDtFreBX8TrfbDcpO 6HrPuqAKsDzSSefHAdAk+5VxKAFTigHVVEx58M4NhHIZ7SJ19J00sCXxju0seQNniMX01v ovxd9Z9R+WXHJ+QuwxP3Iz3cSDQ2ZB6GrRZr7icrOvgkxyAQKS3Kyc6qs0tlC/pI6yqU2f 5KqvfMOn5MYcgDmAynGsvcxT0oGfXJ0GGaXGQjaKWjd/dPR8stBzYBdHeA38oQ== 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=1711904163; 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=VsGUrE8FwYJH4R62bY/YM29csjeOyKCQkoYHADnNvdU=; b=aC3pbyzy033DnF5V0/PSUsFr7MYItSlCKqdXPkZ0Snlm73mPVsvxTfOFEsMS0sr6uGgMQO uXUoRbMJVj223iAnMiX97GNckvO+KgUKLtYs9izlpy7IEm8B0syL6KOwrCdT/doOhh6A3i roEmMl6WOnS4tDCif0sxvsKgMwmT9odoexcrLVfxcKJRjcagPKOa3hnD700nkNUE0ENjtF UaE8As1nh9/JiHur8TRWkTRXGgSimWFTfL9Y+9q9fFbJsjT/z9B+J8Ag5N+MBiUSRDLRnu FOAwtyBoBHuk5WLoeYn8RzMLLmwg0MoYMctEh+RzzGeLzqXjEUPnaPKawrSZlA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4V70dv5kjXzmCn; Sun, 31 Mar 2024 16:56:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42VGu3IE038048; Sun, 31 Mar 2024 16:56:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42VGu37A038046; Sun, 31 Mar 2024 16:56:03 GMT (envelope-from git) Date: Sun, 31 Mar 2024 16:56:03 GMT Message-Id: <202403311656.42VGu37A038046@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mark Peek Subject: git: a1f89082dcb5 - stable/14 - hyperv/hn: Don't return error when setting media to autoselect List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mp X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a1f89082dcb591886acc22c5503a2d5a82b267d9 Auto-Submitted: auto-generated The branch stable/14 has been updated by mp: URL: https://cgit.FreeBSD.org/src/commit/?id=a1f89082dcb591886acc22c5503a2d5a82b267d9 commit a1f89082dcb591886acc22c5503a2d5a82b267d9 Author: Mark Peek AuthorDate: 2024-03-13 23:53:07 +0000 Commit: Mark Peek CommitDate: 2024-03-31 16:51:02 +0000 hyperv/hn: Don't return error when setting media to autoselect Setting media to autoselect would always return EOPNOTSUPP. As autoselect is the only valid media, this change now returns success instead. PR: 264253 Reported by: Prakash Shiva Reviewed by: Dexuan Cui , whu Approved by: whu MFC after: 2 weeks (cherry picked from commit 63a7c4be4ad524629292eee659d6542f1c5e9c21) --- sys/dev/hyperv/netvsc/if_hn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/hyperv/netvsc/if_hn.c b/sys/dev/hyperv/netvsc/if_hn.c index 6e1c9771a02d..41be4226e592 100644 --- a/sys/dev/hyperv/netvsc/if_hn.c +++ b/sys/dev/hyperv/netvsc/if_hn.c @@ -1103,7 +1103,8 @@ static int hn_ifmedia_upd(if_t ifp __unused) { - return EOPNOTSUPP; + /* Ignore since autoselect is the only defined and valid media */ + return (0); } static void