git: 2c1d3e522bed - stable/13 - pfsync: check IFF_DRV_RUNNING in the correct field

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

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

commit 2c1d3e522bed60b64acf22a5cdf48cee96334b61
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-12-02 13:36:12 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-12-13 13:49:27 +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 9b760f63e134..c10f1a64799f 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);