hyperv/hn: Add definition for NDIS media state.
MFC after: 1 week Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7652
This commit is contained in:
parent
27dc50b0f0
commit
3dc33a77d7
@ -117,9 +117,11 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/hyperv/include/hyperv_busdma.h>
|
||||
#include <dev/hyperv/include/vmbus_xact.h>
|
||||
|
||||
#include "hv_net_vsc.h"
|
||||
#include "hv_rndis.h"
|
||||
#include "hv_rndis_filter.h"
|
||||
#include <dev/hyperv/netvsc/hv_net_vsc.h>
|
||||
#include <dev/hyperv/netvsc/hv_rndis.h>
|
||||
#include <dev/hyperv/netvsc/hv_rndis_filter.h>
|
||||
#include <dev/hyperv/netvsc/ndis.h>
|
||||
|
||||
#include "vmbus_if.h"
|
||||
|
||||
/* Short for Hyper-V network interface */
|
||||
@ -584,7 +586,7 @@ netvsc_attach(device_t dev)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (device_info.link_state == 0) {
|
||||
if (device_info.link_state == NDIS_MEDIA_STATE_CONNECTED) {
|
||||
sc->hn_carrier = 1;
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,9 @@
|
||||
#ifndef _NET_NDIS_H_
|
||||
#define _NET_NDIS_H_
|
||||
|
||||
#define NDIS_MEDIA_STATE_CONNECTED 0
|
||||
#define NDIS_MEDIA_STATE_DISCONNECTED 1
|
||||
|
||||
#define OID_TCP_OFFLOAD_PARAMETERS 0xFC01020C
|
||||
|
||||
#define NDIS_OBJTYPE_DEFAULT 0x80
|
||||
|
Loading…
x
Reference in New Issue
Block a user