Module Name: src
Committed By: nonaka
Date: Tue Dec 10 11:19:25 UTC 2019
Modified Files:
src/sys/dev/hyperv: if_hvn.c
Log Message:
hvn(4): Handle VMBUS_CHANPKT_TYPE_INBAND packet type.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/dev/hyperv/if_hvn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/hyperv/if_hvn.c
diff -u src/sys/dev/hyperv/if_hvn.c:1.11 src/sys/dev/hyperv/if_hvn.c:1.12
--- src/sys/dev/hyperv/if_hvn.c:1.11 Tue Nov 26 01:46:31 2019
+++ src/sys/dev/hyperv/if_hvn.c Tue Dec 10 11:19:25 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_hvn.c,v 1.11 2019/11/26 01:46:31 nonaka Exp $ */
+/* $NetBSD: if_hvn.c,v 1.12 2019/12/10 11:19:25 nonaka Exp $ */
/* $OpenBSD: if_hvn.c,v 1.39 2018/03/11 14:31:34 mikeb Exp $ */
/*-
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.11 2019/11/26 01:46:31 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_hvn.c,v 1.12 2019/12/10 11:19:25 nonaka Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -1040,6 +1040,16 @@ hvn_nvs_intr(void *arg)
"on receive\n", nvs->nvs_type);
break;
}
+ } else if (cph->cph_type == VMBUS_CHANPKT_TYPE_INBAND) {
+ switch (nvs->nvs_type) {
+ case HVN_NVS_TYPE_TXTBL_NOTE:
+ /* Useless; ignore */
+ break;
+ default:
+ device_printf(sc->sc_dev,
+ "got notify, nvs type %u\n", nvs->nvs_type);
+ break;
+ }
} else
device_printf(sc->sc_dev,
"unknown NVSP packet type %u\n", cph->cph_type);