summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2015-01-02 17:32:59 +0000
committerkettenis <kettenis@openbsd.org>2015-01-02 17:32:59 +0000
commit4c76dd6696f951e1fcc9acf2a1cc56c160b4a944 (patch)
tree72ab9e17932389c5b78653b73e864d7a00947637
parentExplicitly set the *data member of struct ohash_info to NULL. (diff)
downloadwireguard-openbsd-4c76dd6696f951e1fcc9acf2a1cc56c160b4a944.tar.xz
wireguard-openbsd-4c76dd6696f951e1fcc9acf2a1cc56c160b4a944.zip
Holds up much better under load with an IPL on the block pool.
-rw-r--r--sys/dev/pci/if_nep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nep.c b/sys/dev/pci/if_nep.c
index f9e3080c6ea..360151f0981 100644
--- a/sys/dev/pci/if_nep.c
+++ b/sys/dev/pci/if_nep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nep.c,v 1.7 2015/01/02 16:20:11 kettenis Exp $ */
+/* $OpenBSD: if_nep.c,v 1.8 2015/01/02 17:32:59 kettenis Exp $ */
/*
* Copyright (c) 2014 Mark Kettenis
*
@@ -524,6 +524,7 @@ nep_attach(struct device *parent, struct device *self, void *aux)
}
pool_init(nep_block_pool, PAGE_SIZE, 0, 0, 0,
"nepblk", NULL);
+ pool_setipl(nep_block_pool, IPL_NET);
}
val = nep_read(sc, MIF_CONFIG);