git: d8b78838c5f0 - main - tsec(4): Fix the build from IfAPI conversion

From: Justin Hibbits <jhibbits_at_FreeBSD.org>
Date: Mon, 06 Feb 2023 20:24:27 UTC
The branch main has been updated by jhibbits:

URL: https://cgit.FreeBSD.org/src/commit/?id=d8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7

commit d8b78838c5f0c81c158658e1e2f6f4ca26a8f6f7
Author:     Justin Hibbits <jhibbits@FreeBSD.org>
AuthorDate: 2023-02-06 20:21:34 +0000
Commit:     Justin Hibbits <jhibbits@FreeBSD.org>
CommitDate: 2023-02-06 20:23:52 +0000

    tsec(4): Fix the build from IfAPI conversion
    
    Fixes:          47842ecfe
    Sponsored by:   Juniper Networks, Inc.
---
 sys/dev/tsec/if_tsec.c | 6 +++---
 1 file 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;
 	}