From nobody Tue Mar 07 14:46:57 2023 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 4PWJDy2gb1z3wF8l; Tue, 7 Mar 2023 14:46:58 +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 4PWJDx6vh9z44DG; Tue, 7 Mar 2023 14:46:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678200418; 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=oxFT0HFt/I5cCSe0SbFe5VcHbjy2P2fMYBrjuQCspV0=; b=VYCwbapM+6e5UQjVUC/lN9GJwqQN5OgCbdbx+Fs2ove4Kvo9CzsRH34fDTXgVa5AhonD/a nVwpojHkceZ/g9WKKq9or/4MhKbV//kUPuv4rUbOiVu6Zmt4z3qd0kQO+wbIsXOzuvG+/t 5aRAIE4qSEQRllVpQK0Cvu+QcYVHMWiuXMMjYDnVjXBuv+nrpvHT7etr+QMT7kxb18Zfm1 qvAiDK8PTerpQFelqKsQmPL4b/+VlgBY3vghnQBcJsH+xoixRnCwLBHA/a8wZf4AAgT78v hpZwd5RgSbRp+ViSi+rY3VgFaNDkE0nspEMxjZNKs2AMi0F2f8Xk0ciLMm8qQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678200418; 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=oxFT0HFt/I5cCSe0SbFe5VcHbjy2P2fMYBrjuQCspV0=; b=YiWxGXQTocTW+DgzNxi4nWZxu5x+Ypqnp0hfATK3D6TgcD4skBOoO2DVbfjPNs0C/2raiJ rIrIVAvogKLAcHhW1UVqqW14zuUE19fzlkuIg+WJJ/vj1z1+pBfxnkcNdE5EG4PD3KT+Jc RA6rWfz8gP82sa41Qo2WScPayLXjvXT8+tC3PsIPlHlzBiMkJIstJoTfezCOvBSsUn6H7/ SN4BEQIYJsGq2ilBf7w1Vv6HVY2hT9jZ1lQc2LSjH4N0rG9r++3ZdHxwvTjBS8eCQAoBwP oDU02EbMnFRL7eayZoX4JmWzJUVjrtkY3BIGwr3BVomKve3BkbwnBfTzGRjBZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678200418; a=rsa-sha256; cv=none; b=tRRXBlERkXNlc0qqtNGnzA9b+fgtFoR3G9VXH46dHFCK4bWobuZ9/6vxxsppv4e2stjkHA nGfltjs5PJERpyq4UbdFoaPq/tGtS/1aLex2lqbi7GqtLLMoVbNSpEPbUNTIo32g8W1SSH pWL9XbaIvZC1N69/QdjXYmicSK6LXyb2XVf1qu8wsWonE5NjavFOr4U/rcVieFLLhG5zj+ R/bCo7anO7qPg7CY5pE7i/SvUo/DyYkWtrFPhfd5b0yjrQT0l4YozoqD9Uo+ZyXW/IsZ6W qGdOQ8eZ+UR8uFQkJZdWCwx5NIzgSrqeNKRwAyzuSXMsXq3gNbg7Z4MDGgosKw== 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 4PWJDx610CznJ5; Tue, 7 Mar 2023 14:46:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 327Ekvco008827; Tue, 7 Mar 2023 14:46:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 327EkvZt008826; Tue, 7 Mar 2023 14:46:57 GMT (envelope-from git) Date: Tue, 7 Mar 2023 14:46:57 GMT Message-Id: <202303071446.327EkvZt008826@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Justin Hibbits Subject: git: 6d18b481f276 - main - cpsw(4): Finish conversion to IfAPI 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: jhibbits X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6d18b481f27639d5129135c95806073e4d677771 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhibbits: URL: https://cgit.FreeBSD.org/src/commit/?id=6d18b481f27639d5129135c95806073e4d677771 commit 6d18b481f27639d5129135c95806073e4d677771 Author: Justin Hibbits AuthorDate: 2023-03-06 21:27:27 +0000 Commit: Justin Hibbits CommitDate: 2023-03-07 14:47:01 +0000 cpsw(4): Finish conversion to IfAPI Two ifnet accesses were missed in 2c7bc0f55. Sponsored by: Juniper Networks, Inc. --- sys/arm/ti/cpsw/if_cpsw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm/ti/cpsw/if_cpsw.c b/sys/arm/ti/cpsw/if_cpsw.c index 6f1bcc345f47..f41770d99df7 100644 --- a/sys/arm/ti/cpsw/if_cpsw.c +++ b/sys/arm/ti/cpsw/if_cpsw.c @@ -1136,7 +1136,7 @@ cpsw_ports_down(struct cpsw_softc *sc) ifp1 = psc->ifp; psc = device_get_softc(sc->port[1].dev); ifp2 = psc->ifp; - if ((ifp1->if_flags & IFF_UP) == 0 && (ifp2->if_flags & IFF_UP) == 0) + if ((if_getflags(ifp1) & IFF_UP) == 0 && (if_getflags(ifp2) & IFF_UP) == 0) return (1); return (0);