git: ef6a011da523 - stable/12 - pfsync: check IFF_DRV_RUNNING in the correct field

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Mon, 13 Dec 2021 13:50:36 UTC
The branch stable/12 has been updated by kp:

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

commit ef6a011da523da7ba3075b01ac77d730244a7a0d
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-12-02 13:36:12 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-12-13 08:54:15 +0000

    pfsync: check IFF_DRV_RUNNING in the correct field
    
    This flag is stored in if_drv_flags, not if_flags.
    
    Reviewed by:    glebius
    MFC after:      1 week
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
    Differential Revision:  https://reviews.freebsd.org/D33241
    
    (cherry picked from commit 7b02a551f78ed5c4bd55d3b33da55524cd2317a6)
---
 sys/netpfil/pf/if_pfsync.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netpfil/pf/if_pfsync.c b/sys/netpfil/pf/if_pfsync.c
index d6016766ddcc..301d963abd9c 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -1746,7 +1746,7 @@ pfsync_defer(struct pf_kstate *st, struct mbuf *m)
 
 	PFSYNC_LOCK(sc);
 
-	if (!(sc->sc_ifp->if_flags & IFF_DRV_RUNNING) ||
+	if (!(sc->sc_ifp->if_drv_flags & IFF_DRV_RUNNING) ||
 	    !(sc->sc_flags & PFSYNCF_DEFER)) {
 		PFSYNC_UNLOCK(sc);
 		return (0);