From nobody Mon Dec 13 13:50:35 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DDE8C18D18AD; Mon, 13 Dec 2021 13:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JCNF73cfXz3CYh; Mon, 13 Dec 2021 13:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5CB5215AAE; Mon, 13 Dec 2021 13:50:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BDDoZVG036245; Mon, 13 Dec 2021 13:50:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BDDoZ5O036232; Mon, 13 Dec 2021 13:50:35 GMT (envelope-from git) Date: Mon, 13 Dec 2021 13:50:35 GMT Message-Id: <202112131350.1BDDoZ5O036232@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kristof Provost Subject: git: 2c1d3e522bed - stable/13 - pfsync: check IFF_DRV_RUNNING in the correct field List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kp X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 2c1d3e522bed60b64acf22a5cdf48cee96334b61 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639403435; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=4OxHRT7N4Yenkl9gQDYC/keFp7gdPh4EqlNaTdgFmg8=; b=KWr4Q3Pbqv1O+Lgnsahv861hLWgxKz/Y5C/+T5mI3hxEQO60ytgbqLiRXgugXvGnBa4a62 WIGH1f1sukfCAazzGMx4ebHtNvspWZB3jQXhGPgXSESnWboNzj+q5ICyVBBiIzbhqidboZ FEz6/HGdy5Rwes8PQooPkWduIJsJ2vYtDhdqoRlnTEeedjKZpEbZk+Ps0/3NGHEH4WDjOT XHLY44sfFBJX1w+c/ftxdIaK4UQ9z+cnwQtV7E2SLT1sF2hztK7z4IJORtp2pwA0wxY0FF IzhENX7rNvqyyIo56ULpcQ0luwOjIG+LZbvNrWVIYySFD4cwO+kb6OWegSckyQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639403435; a=rsa-sha256; cv=none; b=xBhCcyJFCOcVnK2/yX93bwC7sTy+rN2Rr+QWibvsNASPN2xOl+e9NYSNxrjmkj1iPRo3IS 1oyiJfTLP+qrpXUn4tJjC2usdiyQvCqqn2ib2Kd6yF5fZR7R1QcY3SS8jOt+3nehiF+NTO WoMwQiAb3zcJ5mEYalDRPngDNQnP4sCycO1stUwHxxdD7ZmWRFRY3Y1Xwc2qtom5cF8oh1 ZiYWp7sxfn/Tuw9lDMUSxqRl733NYIqzott7NCm00YKfR4V3pOgOp07lXbJkyJkjnBgbPN X06eIOwzE/pg+sFCGWNHyceZCPvAakNf2fGiiEBtKa3p++4/KrQ4TPKcOWcLqQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=2c1d3e522bed60b64acf22a5cdf48cee96334b61 commit 2c1d3e522bed60b64acf22a5cdf48cee96334b61 Author: Kristof Provost AuthorDate: 2021-12-02 13:36:12 +0000 Commit: Kristof Provost 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);