diff options
author | 2016-09-20 10:28:19 +0000 | |
---|---|---|
committer | 2016-09-20 10:28:19 +0000 | |
commit | ee9cddeea7b140a1a835555cbd744e0d4fdaaf5c (patch) | |
tree | cbc5dd4eb5b432d39814965722c9cd45939e541a | |
parent | Add an API to hook up event counters (diff) | |
download | wireguard-openbsd-ee9cddeea7b140a1a835555cbd744e0d4fdaaf5c.tar.xz wireguard-openbsd-ee9cddeea7b140a1a835555cbd744e0d4fdaaf5c.zip |
Attach event counter
-rw-r--r-- | sys/dev/pv/if_hvn.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pv/if_hvn.c b/sys/dev/pv/if_hvn.c index bb121843476..3647a6f3506 100644 --- a/sys/dev/pv/if_hvn.c +++ b/sys/dev/pv/if_hvn.c @@ -822,6 +822,8 @@ hvn_nvs_attach(struct hvn_softc *sc) return (-1); } + hv_evcount_attach(sc->sc_chan, sc->sc_dev.dv_xname); + mtx_init(&sc->sc_nvslck, IPL_NET); memset(&cmd, 0, sizeof(cmd)); |