diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-09 03:02:35 -0400 |
commit | 1236d6bb6e19fc72ffc6bbcdeb1bfefe450e54ee (patch) | |
tree | 47da3feee8e263e8c9352c85cf518e624be3c211 /drivers/net/hyperv/netvsc.c | |
parent | 750b1a6894ecc9b178c6e3d0a1170122971b2036 (diff) | |
parent | 8a5776a5f49812d29fe4b2d0a2d71675c3facf3f (diff) |
Merge 4.14-rc4 into staging-next
We want the staging/iio fixes in here as well to handle merge issues.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/hyperv/netvsc.c')
-rw-r--r-- | drivers/net/hyperv/netvsc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c index a5511b7326af..8d5077fb0492 100644 --- a/drivers/net/hyperv/netvsc.c +++ b/drivers/net/hyperv/netvsc.c | |||
@@ -76,9 +76,6 @@ static struct netvsc_device *alloc_net_device(void) | |||
76 | net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT; | 76 | net_device->max_pkt = RNDIS_MAX_PKT_DEFAULT; |
77 | net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT; | 77 | net_device->pkt_align = RNDIS_PKT_ALIGN_DEFAULT; |
78 | 78 | ||
79 | net_device->recv_section_size = NETVSC_RECV_SECTION_SIZE; | ||
80 | net_device->send_section_size = NETVSC_SEND_SECTION_SIZE; | ||
81 | |||
82 | init_completion(&net_device->channel_init_wait); | 79 | init_completion(&net_device->channel_init_wait); |
83 | init_waitqueue_head(&net_device->subchan_open); | 80 | init_waitqueue_head(&net_device->subchan_open); |
84 | INIT_WORK(&net_device->subchan_work, rndis_set_subchannel); | 81 | INIT_WORK(&net_device->subchan_work, rndis_set_subchannel); |
@@ -262,7 +259,7 @@ static int netvsc_init_buf(struct hv_device *device, | |||
262 | int ret = 0; | 259 | int ret = 0; |
263 | 260 | ||
264 | /* Get receive buffer area. */ | 261 | /* Get receive buffer area. */ |
265 | buf_size = device_info->recv_sections * net_device->recv_section_size; | 262 | buf_size = device_info->recv_sections * device_info->recv_section_size; |
266 | buf_size = roundup(buf_size, PAGE_SIZE); | 263 | buf_size = roundup(buf_size, PAGE_SIZE); |
267 | 264 | ||
268 | net_device->recv_buf = vzalloc(buf_size); | 265 | net_device->recv_buf = vzalloc(buf_size); |
@@ -344,7 +341,7 @@ static int netvsc_init_buf(struct hv_device *device, | |||
344 | goto cleanup; | 341 | goto cleanup; |
345 | 342 | ||
346 | /* Now setup the send buffer. */ | 343 | /* Now setup the send buffer. */ |
347 | buf_size = device_info->send_sections * net_device->send_section_size; | 344 | buf_size = device_info->send_sections * device_info->send_section_size; |
348 | buf_size = round_up(buf_size, PAGE_SIZE); | 345 | buf_size = round_up(buf_size, PAGE_SIZE); |
349 | 346 | ||
350 | net_device->send_buf = vzalloc(buf_size); | 347 | net_device->send_buf = vzalloc(buf_size); |