hyperv/hn: Remove unused function

MFC after:	1 week
Sponsored by:	Microsoft
Differential Revision:	https://reviews.freebsd.org/D7706
This commit is contained in:
sephe 2016-09-01 05:29:58 +00:00
parent ae1baf89f1
commit 51bada0ecf
2 changed files with 0 additions and 31 deletions

View File

@ -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__ */

View File

@ -127,35 +127,6 @@ hv_set_rppi_data(rndis_msg *rndis_mesg, uint32_t rppi_size,
return (rppi);
}
/*
* 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
*/