Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Dec 2021 12:25:45 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7b02a551f78e - main - pfsync: check IFF_DRV_RUNNING in the correct field
Message-ID:  <202112061225.1B6CPjmu048133@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112061225.1B6CPjmu048133>