summaryrefslogtreecommitdiff
path: root/drivers/hv/channel.c
diff options
context:
space:
mode:
authorWei Liu <wei.liu@kernel.org>2021-02-15 10:44:58 +0000
committerWei Liu <wei.liu@kernel.org>2021-02-15 10:49:11 +0000
commit3019270282a175defc02c8331786c73e082cd2a8 (patch)
tree13a9b1c1be5030db044227dc12ff0b074443326d /drivers/hv/channel.c
parentfb5ef35165a37ca63ef0227657eabd06f0a39cf9 (diff)
Revert "Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer"
This reverts commit a8c3209998afb5c4941b49e35b513cea9050cb4a. It is reported that the said commit caused regression in netvsc. Reported-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/hv/channel.c')
-rw-r--r--drivers/hv/channel.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
index 9aa789e5f22b..0bd202de7960 100644
--- a/drivers/hv/channel.c
+++ b/drivers/hv/channel.c
@@ -597,15 +597,12 @@ static int __vmbus_open(struct vmbus_channel *newchannel,
newchannel->onchannel_callback = onchannelcallback;
newchannel->channel_callback_context = context;
- if (!newchannel->max_pkt_size)
- newchannel->max_pkt_size = VMBUS_DEFAULT_MAX_PKT_SIZE;
-
- err = hv_ringbuffer_init(&newchannel->outbound, page, send_pages, 0);
+ err = hv_ringbuffer_init(&newchannel->outbound, page, send_pages);
if (err)
goto error_clean_ring;
- err = hv_ringbuffer_init(&newchannel->inbound, &page[send_pages],
- recv_pages, newchannel->max_pkt_size);
+ err = hv_ringbuffer_init(&newchannel->inbound,
+ &page[send_pages], recv_pages);
if (err)
goto error_clean_ring;