From nobody Thu Mar 14 00:11:00 2024 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 4Tw7844yL5z5DkXc; Thu, 14 Mar 2024 00:11:00 +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 4Tw7843XbPz49dR; Thu, 14 Mar 2024 00:11:00 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710375060; 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=itgAGvqGcyFtlZdeVrPjh6+KgfTk9XEnsGm+ZHTVuA4=; b=r/G+sl47kZiNiAOsDSoximNZ/0DTsgEkMou9yuydqhZJ1pCNd2LGA8W0ARneEncj8eTzb+ A9i7RtL+J0xnqlDWE/TTpPTXSlOHbp2/4tdWX4CIDquJI+nkwtxGOqLJciWtvEckk+QxKc 9gdBwaIVf/8o+HSG6i6xA3fOxGVZW1uy/KOIIFAMDkwJh/Nd2WEBSeaiNb1VCjsM1FAOXc aglsCenjN9OYkS4Kd7m+Vd77NsnXyGjmOZStJg+zyaiayghOg3NmvJWDoyzAdL1v7FxEB3 cPukwa4PMqcv90Zoc8n+PVXQEX5Jcl3qyvlFdpPz59paNfj7e/BM9w+GUp+Y2A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710375060; a=rsa-sha256; cv=none; b=iNpP/DHqhxjhdZsgtJjD51YuCp9p/Zl5dVG1UejbuaDlJ5bWeCfPtkbdm5kXuYvPAlsCHk EJjJ57rkPtCMP3rdX6w4OxvvGDCpgc7XOV9E3hdBjU6liEDu2OhLqFeCBcuAdWGB9B02+Z kncEvgskpDie32Mv4OHDIcG9huEqo+zqjeoduKtGmG0R1MKvzqdJD2qs+TRLuHRsrW3dPt DAGRFIr+G158IbPW7pYfESuyhF7UoJj20Q8cvehjUETcUTsuGu2E6PUKdwoDml7fE/MYmu 2eXc5Scrv+xWLKOrSylBYDyNLBk2qbcYteV+04+DJFMk1vSLIBfNwTN90EUCaQ== 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=1710375060; 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=itgAGvqGcyFtlZdeVrPjh6+KgfTk9XEnsGm+ZHTVuA4=; b=YmApuHixLo9/V/SS4O1Uhv59BzgsPIVwmn5hex41vlEmkprxzw3dsHa6oO64m6M/+DxzOD ZO4xAGHmT48z7uffYWA56rqP3KS4qEvnN50vXg/JextCkpXnSkwc25hd+XmdNdEQVF4aVX GegiiMGsNXCt0+Ietfmp3ArLXrzIFp8Q7H6OK9K3ptEZCcEJ69QD61lN0dqDtMmJHkTPCo /FHv2qUruwnC8LvB1/arM2ZBycoLlr0tXrZ1PS6JsMC3NIjR10+FDHlcvxNV5dQhvw6n3N HzTVB/baPd4bZmnm+1ml7+o5w2YEhFXeNldnxpPwMHOSASxjpMBbvBEL+sscNQ== 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 4Tw78438t7z14X7; Thu, 14 Mar 2024 00:11:00 +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 42E0B0VR071362; Thu, 14 Mar 2024 00:11:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42E0B0On071359; Thu, 14 Mar 2024 00:11:00 GMT (envelope-from git) Date: Thu, 14 Mar 2024 00:11:00 GMT Message-Id: <202403140011.42E0B0On071359@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Peek Subject: git: 63a7c4be4ad5 - main - hyperv/hn: Don't return error when setting media to autoselect 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/main X-Git-Reftype: branch X-Git-Commit: 63a7c4be4ad524629292eee659d6542f1c5e9c21 Auto-Submitted: auto-generated The branch main has been updated by mp: URL: https://cgit.FreeBSD.org/src/commit/?id=63a7c4be4ad524629292eee659d6542f1c5e9c21 commit 63a7c4be4ad524629292eee659d6542f1c5e9c21 Author: Mark Peek AuthorDate: 2024-03-13 23:53:07 +0000 Commit: Mark Peek CommitDate: 2024-03-14 00:05:19 +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 --- 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 9949e0a16ab1..9f51f5b32199 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