summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/hyperv/netvsc/hv_rndis.h2
-rw-r--r--sys/dev/hyperv/netvsc/hv_rndis_filter.c29
2 files changed, 0 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
OpenPOWER on IntegriCloud