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:
parent
6de616d3a0
commit
7c2abef176
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302708
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user