diff options
author | Justin Hibbits <jhibbits@FreeBSD.org> | 2023-02-06 20:21:34 +0000 |
---|---|---|
committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2023-02-06 20:23:52 +0000 |
commit | d8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7 (patch) | |
tree | d5684f22ea031720c8bb7a71b6ffc622884c42ee | |
parent | f711d5c3d06677740dc04a0ced27b2bce894bae1 (diff) | |
download | src-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.c | 6 |
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; } |