sync code with last fixes and improvements from OpenBSD

This commit is contained in:
purplerain 2023-07-20 23:56:46 +00:00
parent f57be82572
commit 58b04bcee7
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
468 changed files with 9958 additions and 7882 deletions

View file

@ -1265,7 +1265,7 @@ struct pfsync_q {
static struct pfsync_slice *
pfsync_slice_enter(struct pfsync_softc *sc, const struct pf_state *st)
{
unsigned int idx = st->key[0]->hash % nitems(sc->sc_slices);
unsigned int idx = st->key[0]->hash % nitems(sc->sc_slices);
struct pfsync_slice *s = &sc->sc_slices[idx];
if (!mtx_enter_try(&s->s_mtx)) {