summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsephe <sephe@FreeBSD.org>2016-10-13 06:55:51 +0000
committersephe <sephe@FreeBSD.org>2016-10-13 06:55:51 +0000
commit1391e959ab279f7a99179097fb5abdc36675e1ef (patch)
tree9e472c66eb0caf33d5521d7e07e8bcd750cea2b6
parent2f3c6a00e9ae9be6750169edc0f5644968dce4a6 (diff)
downloadFreeBSD-src-1391e959ab279f7a99179097fb5abdc36675e1ef.zip
FreeBSD-src-1391e959ab279f7a99179097fb5abdc36675e1ef.tar.gz
MFC 305173,305174
305173 net/rndis: Add comment for rndis_set_parameter Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7705 305174 hyperv/hn: Remove unused function Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7706
-rw-r--r--sys/dev/hyperv/netvsc/hv_rndis.h2
-rw-r--r--sys/dev/hyperv/netvsc/hv_rndis_filter.c29
-rw-r--r--sys/net/rndis.h3
3 files changed, 3 insertions, 31 deletions
diff --git a/sys/dev/hyperv/netvsc/hv_rndis.h b/sys/dev/hyperv/netvsc/hv_rndis.h
index 6524340..f765745 100644
--- a/sys/dev/hyperv/netvsc/hv_rndis.h
+++ b/sys/dev/hyperv/netvsc/hv_rndis.h
@@ -904,7 +904,5 @@ void* hv_set_rppi_data(rndis_msg *rndis_mesg,
uint32_t rppi_size,
int pkt_type);
-void* hv_get_ppi_data(rndis_packet *rpkt, uint32_t type);
-
#endif /* __HV_RNDIS_H__ */
diff --git a/sys/dev/hyperv/netvsc/hv_rndis_filter.c b/sys/dev/hyperv/netvsc/hv_rndis_filter.c
index 819a8ef..35d0c37 100644
--- a/sys/dev/hyperv/netvsc/hv_rndis_filter.c
+++ b/sys/dev/hyperv/netvsc/hv_rndis_filter.c
@@ -129,35 +129,6 @@ hv_set_rppi_data(rndis_msg *rndis_mesg, uint32_t rppi_size,
}
/*
- * Get the Per-Packet-Info with the specified type
- * return NULL if not found.
- */
-void *
-hv_get_ppi_data(rndis_packet *rpkt, uint32_t type)
-{
- rndis_per_packet_info *ppi;
- int len;
-
- if (rpkt->per_pkt_info_offset == 0)
- return (NULL);
-
- ppi = (rndis_per_packet_info *)((unsigned long)rpkt +
- rpkt->per_pkt_info_offset);
- len = rpkt->per_pkt_info_length;
-
- while (len > 0) {
- if (ppi->type == type)
- return (void *)((unsigned long)ppi +
- ppi->per_packet_info_offset);
-
- len -= ppi->size;
- ppi = (rndis_per_packet_info *)((unsigned long)ppi + ppi->size);
- }
-
- return (NULL);
-}
-
-/*
* RNDIS filter receive indicate status
*/
static void
diff --git a/sys/net/rndis.h b/sys/net/rndis.h
index 3a51454..4c82ca4 100644
--- a/sys/net/rndis.h
+++ b/sys/net/rndis.h
@@ -217,6 +217,9 @@ struct rndis_set_comp {
uint32_t rm_status;
};
+/*
+ * Parameter used by OID_GEN_RNDIS_CONFIG_PARAMETER.
+ */
#define REMOTE_NDIS_SET_PARAM_NUMERIC 0x00000000
#define REMOTE_NDIS_SET_PARAM_STRING 0x00000002
OpenPOWER on IntegriCloud