src/netvsc_drv.c
/* Hyper-V RNDIS protocol does not have ring in the HW sense.
 * It does have pre-allocated receive area which is divided into sections.
 */
Hyper-V RNDIS protocol does not have ring in the HW sense.
It does have pre-allocated receive area which is divided into sections.
Hyper - V RNDIS protocol does not have ring in the HW sense . It does have pre - allocated receive area which is divided into sections .
static void __netvsc_get_ringparam(struct netvsc_device *nvdev,
				   struct ethtool_ringparam *ring)
{
	u32 max_buf_size;
	ring->rx_pending = nvdev->recv_section_cnt;
	ring->tx_pending = nvdev->send_section_cnt;
	if (nvdev->nvsp_version <= NVSP_PROTOCOL_VERSION_2)
		max_buf_size = NETVSC_RECEIVE_BUFFER_SIZE_LEGACY;
	else
		max_buf_size = NETVSC_RECEIVE_BUFFER_SIZE;
	ring->rx_max_pending = max_buf_size / nvdev->recv_section_size;
	ring->tx_max_pending = NETVSC_SEND_BUFFER_SIZE
		/ nvdev->send_section_size;
}
static void __netvsc_get_ringparam ( struct netvsc_device * nvdev , struct ethtool_ringparam * ring ) { u32 max_buf_size ; ring -> rx_pending = nvdev -> recv_section_cnt ; ring -> tx_pending = nvdev -> send_section_cnt ; if ( nvdev -> nvsp_version <= NVSP_PROTOCOL_VERSION_2 ) max_buf_size = NETVSC_RECEIVE_BUFFER_SIZE_LEGACY ; else max_buf_size = NETVSC_RECEIVE_BUFFER_SIZE ; ring -> rx_max_pending = max_buf_size / nvdev -> recv_section_size ; ring -> tx_max_pending = NETVSC_SEND_BUFFER_SIZE / nvdev -> send_section_size ; }
Hyper-V RNDIS protocol does not have ring in the HW sense.
Hyper - V RNDIS protocol does not have ring in the HW sense .