hyperv/bufring: Remove unused fields

MFC after:	1 week
Sponsored by:	Microsoft OSTC
Differential Revision:	https://reviews.freebsd.org/D7037
This commit is contained in:
Sepherosa Ziehau 2016-07-13 06:39:04 +00:00
parent 6de616d3a0
commit 7c2abef176
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302708
2 changed files with 1 additions and 4 deletions

View File

@ -471,7 +471,7 @@ typedef struct {
uint8_t reserved[4084];
/*
* WARNING: Ring data starts here + ring_data_start_offset
* WARNING: Ring data starts here
* !!! DO NOT place any fields below this !!!
*/
uint8_t buffer[0]; /* doubles as interrupt mask */
@ -491,10 +491,8 @@ typedef struct {
typedef struct {
hv_vmbus_ring_buffer* ring_buffer;
uint32_t ring_size; /* Include the shared header */
struct mtx ring_lock;
uint32_t ring_data_size; /* ring_size */
uint32_t ring_data_start_offset;
} hv_vmbus_ring_buffer_info;
typedef void (*hv_vmbus_pfn_channel_callback)(void *context);

View File

@ -286,7 +286,6 @@ hv_vmbus_ring_buffer_init(
ring_info->ring_buffer->read_index =
ring_info->ring_buffer->write_index = 0;
ring_info->ring_size = buffer_len;
ring_info->ring_data_size = buffer_len - sizeof(hv_vmbus_ring_buffer);
mtx_init(&ring_info->ring_lock, "vmbus ring buffer", NULL, MTX_SPIN);