aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2023-02-06 20:21:34 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2023-02-06 20:23:52 +0000
commitd8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7 (patch)
treed5684f22ea031720c8bb7a71b6ffc622884c42ee
parentf711d5c3d06677740dc04a0ced27b2bce894bae1 (diff)
downloadsrc-d8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7.tar.gz
src-d8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7.zip
tsec(4): Fix the build from IfAPI conversion
Fixes: 47842ecfe Sponsored by: Juniper Networks, Inc.
-rw-r--r--sys/dev/tsec/if_tsec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/tsec/if_tsec.c b/sys/dev/tsec/if_tsec.c
index 7680ef43b775..25dc25f57152 100644
--- a/sys/dev/tsec/if_tsec.c
+++ b/sys/dev/tsec/if_tsec.c
@@ -294,7 +294,7 @@ tsec_detach(struct tsec_softc *sc)
if (sc->tsec_ifp != NULL) {
#ifdef DEVICE_POLLING
- if (sc->tsec_if_getcapenable(ifp) & IFCAP_POLLING)
+ if (if_getcapenable(sc->tsec_ifp) & IFCAP_POLLING)
ether_poll_deregister(sc->tsec_ifp);
#endif
@@ -1414,7 +1414,7 @@ tsec_receive_intr(void *arg)
TSEC_RECEIVE_LOCK(sc);
#ifdef DEVICE_POLLING
- if (sc->tsec_if_getcapenable(ifp) & IFCAP_POLLING) {
+ if (if_getcapenable(sc->tsec_ifp) & IFCAP_POLLING) {
TSEC_RECEIVE_UNLOCK(sc);
return;
}
@@ -1495,7 +1495,7 @@ tsec_transmit_intr(void *arg)
TSEC_TRANSMIT_LOCK(sc);
#ifdef DEVICE_POLLING
- if (sc->tsec_if_getcapenable(ifp) & IFCAP_POLLING) {
+ if (if_getcapenable(sc->tsec_ifp) & IFCAP_POLLING) {
TSEC_TRANSMIT_UNLOCK(sc);
return;
}