sync code with last fixes and improvements from OpenBSD
This commit is contained in:
parent
f57be82572
commit
58b04bcee7
468 changed files with 9958 additions and 7882 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue