git: 7b02a551f78e - main - pfsync: check IFF_DRV_RUNNING in the correct field

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Mon, 06 Dec 2021 12:25:45 UTC
The branch main has been updated by kp:

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

commit 7b02a551f78ed5c4bd55d3b33da55524cd2317a6
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-12-02 13:36:12 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-12-06 12:25:14 +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
---
 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 166ac428fd9b..a991c7ce5c7f 100644
--- a/sys/netpfil/pf/if_pfsync.c
+++ b/sys/netpfil/pf/if_pfsync.c
@@ -1744,7 +1744,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);