git: 6d18b481f276 - main - cpsw(4): Finish conversion to IfAPI
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 07 Mar 2023 14:46:57 UTC
The branch main has been updated by jhibbits:
URL: https://cgit.FreeBSD.org/src/commit/?id=6d18b481f27639d5129135c95806073e4d677771
commit 6d18b481f27639d5129135c95806073e4d677771
Author: Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-03-06 21:27:27 +0000
Commit: Justin Hibbits <jhibbits@FreeBSD.org>
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);