Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/hyperv hvn(4): Handle VMBUS_CHANPKT_TYPE_INBAND pack...



details:   https://anonhg.NetBSD.org/src/rev/f8f563175793
branches:  trunk
changeset: 1005502:f8f563175793
user:      nonaka <nonaka%NetBSD.org@localhost>
date:      Tue Dec 10 11:19:25 2019 +0000

description:
hvn(4): Handle VMBUS_CHANPKT_TYPE_INBAND packet type.

diffstat:

 sys/dev/hyperv/if_hvn.c |  14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diffs (35 lines):

diff -r d43ca9dffed0 -r f8f563175793 sys/dev/hyperv/if_hvn.c
--- a/sys/dev/hyperv/if_hvn.c   Tue Dec 10 11:12:02 2019 +0000
+++ b/sys/dev/hyperv/if_hvn.c   Tue Dec 10 11:19:25 2019 +0000
@@ -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 @@
                                    "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);



Home | Main Index | Thread Index | Old Index