Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Oct 2016 07:16:26 +0000 (UTC)
From:      Sepherosa Ziehau <sephe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r307612 - in stable/11/sys: dev/hyperv/netvsc modules/hyperv/vmbus net
Message-ID:  <201610190716.u9J7GQ8H015424@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sephe
Date: Wed Oct 19 07:16:26 2016
New Revision: 307612
URL: https://svnweb.freebsd.org/changeset/base/307612

Log:
  MFC 306484,306485
  
  306484
      hyperv/vmbus: Add missing vmbus_if.c to module build.
  
      Sponsored by:   Microsoft
      Differential Revision:  https://reviews.freebsd.org/D8067
  
  306485
      hyperv/hn: Add stubs for OFFLOAD_CURRENT_CONFIG and NETWORK_CHANGE status
  
      Sponsored by:   Microsoft
      Differential Revision:  https://reviews.freebsd.org/D8068

Modified:
  stable/11/sys/dev/hyperv/netvsc/hv_rndis_filter.c
  stable/11/sys/modules/hyperv/vmbus/Makefile
  stable/11/sys/net/rndis.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/hyperv/netvsc/hv_rndis_filter.c
==============================================================================
--- stable/11/sys/dev/hyperv/netvsc/hv_rndis_filter.c	Wed Oct 19 07:08:28 2016	(r307611)
+++ stable/11/sys/dev/hyperv/netvsc/hv_rndis_filter.c	Wed Oct 19 07:16:26 2016	(r307612)
@@ -155,6 +155,15 @@ hv_rf_receive_indicate_status(struct hn_
 		netvsc_linkstatus_callback(sc, 0);
 		break;
 
+	case RNDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG:
+		/* Not really useful; ignore. */
+		break;
+
+	case RNDIS_STATUS_NETWORK_CHANGE:
+		/* TODO */
+		if_printf(sc->hn_ifp, "network changed\n");
+		break;
+
 	default:
 		/* TODO: */
 		if_printf(sc->hn_ifp, "unknown RNDIS status 0x%08x\n",

Modified: stable/11/sys/modules/hyperv/vmbus/Makefile
==============================================================================
--- stable/11/sys/modules/hyperv/vmbus/Makefile	Wed Oct 19 07:08:28 2016	(r307611)
+++ stable/11/sys/modules/hyperv/vmbus/Makefile	Wed Oct 19 07:16:26 2016	(r307612)
@@ -11,6 +11,7 @@ SRCS=	hyperv.c \
 	vmbus_br.c \
 	vmbus_chan.c \
 	vmbus_et.c \
+	vmbus_if.c \
 	vmbus_xact.c
 SRCS+=	acpi_if.h bus_if.h device_if.h opt_acpi.h vmbus_if.h
 

Modified: stable/11/sys/net/rndis.h
==============================================================================
--- stable/11/sys/net/rndis.h	Wed Oct 19 07:08:28 2016	(r307611)
+++ stable/11/sys/net/rndis.h	Wed Oct 19 07:16:26 2016	(r307612)
@@ -31,6 +31,8 @@
 #define	RNDIS_STATUS_PENDING 		0x00000103L
 #define	RNDIS_STATUS_MEDIA_CONNECT 	0x4001000BL
 #define	RNDIS_STATUS_MEDIA_DISCONNECT 	0x4001000CL
+#define	RNDIS_STATUS_NETWORK_CHANGE	0x40010018L
+#define	RNDIS_STATUS_TASK_OFFLOAD_CURRENT_CONFIG	0x40020006L
 #define	RNDIS_STATUS_BUFFER_OVERFLOW 	0x80000005L
 #define	RNDIS_STATUS_FAILURE 		0xC0000001L
 #define	RNDIS_STATUS_NOT_SUPPORTED 	0xC00000BBL



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610190716.u9J7GQ8H015424>