Regression in hyperv network driver in 3.14
Hello,
using a 3.14 kernel in a Linux VM running on HyperV (Windows Server 2008 R2) we get following error:
hv_netvsc: hv_netvsc channel opened successfully
hv_netvsc vmbus_0_9 (unregistered net_device): Unable to complete receive buffer initialization with NetVsp - status 2 hv_netvsc vmbus_0_9 (unregistered net_device): unable to connect to NetVSP - -22
hv_netvsc vmbus_0_9 (unregistered net_device): unable to add netvsc device (ret -22)
hv_netvsc: probe of vmbus_0_9 failed with error -22
Bisecting the problem shows that commit b679ef73edc251f6d200a7dd2396e9fef9e36fc3 is responsible. Reverting it fixes the issue. Even only changing NETVSC_RECEIVE_BUFFER_SIZE to 2M fixes the issue!
The virtual machine has 2 GiB of memory and 4 CPUs.
Can I provide more information to track down the problem?
Regards,
Bernhard
Quoted 22 lines
-----Original Message-----
From: Bernhard Walle [mailto:[email protected]]
Sent: Tuesday, May 27, 2014 4:10 AM
To: Haiyang Zhang
Cc: KY Srinivasan; [email protected]
Subject: Regression in hyperv network driver in 3.14Hello,
using a 3.14 kernel in a Linux VM running on HyperV (Windows Server 2008 R2) we get following error:
hv_netvsc:hv_netvscchannel opened successfullyhv_netvscvmbus_0_9(unregisterednet_device): Unable to complete
receive buffer initialization with NetVsp - status 2
hv_netvscvmbus_0_9(unregisterednet_device): unable to connect to
NetVSP - -22
hv_netvscvmbus_0_9(unregisterednet_device): unable to add netvsc
device (ret -22)
hv_netvsc: probe ofvmbus_0_9failed with error -22
Quoted 8 lines
Bisecting the problem shows that commit
b679ef73edc251f6d200a7dd2396e9fef9e36fc3is responsible. Reverting it fixes the issue. Even only changingNETVSC_RECEIVE_BUFFER_SIZEto 2M fixes the issue!The virtual machine has 2 GiB of memory and 4 CPUs.
Can I provide more information to track down the problem?
This bug has been fixed upstream. The issue is with regards to the older hosts (ws2008 r2) not Being able to handle the larger receive buffer currently used.
K. Y
Quoted 4 lines
Regards,
Bernhard
Am 2014-05-27 15:43, schrieb KY Srinivasan:
Quoted 5 lines
Quoted 1 line
Can I provide more information to track down the problem?
This bug has been fixed upstream. The issue is with regards to the older hosts (ws2008 r2) not
Being able to handle the larger receive buffer currently used.
Can you point me to the commit that fixed the problem? Woudln't that be something for -stable since the problem is still in 3.14.4.
Regards,
Bernhard
Quoted 11 lines
-----Original Message-----
From: Bernhard Walle [mailto:[email protected]]
Sent: Tuesday, May 27, 2014 10:42 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]
Subject: RE: Regression in hyperv network driver in 3.14Am 2014-05-27 15:43, schrieb KY Srinivasan:
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Can I provide more information to track down the problem?
This bug has been fixed upstream. The issue is with regards to the older hosts (ws2008 r2) not
Being able to handle the larger receive buffer currently used.Can you point me to the commit that fixed the problem? Woudln't that be something for -stable since the problem is still in 3.14.4.
Yes, this commit is in stable tree:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/net/hyperv?id=99d3016de4f2a29635f5382b0e9bd0e5f2151487
hyperv: Change the receive buffer size for legacy hosts
I will ask the maintainer, see if it will be in next 3.14 update as well.
Thanks,
- Haiyang
���{.n�+�������+%�����ݶ��w��{.n�+����{��G�����{ay�ʇڙ�,j��f���h��������z_�(�階�ݢj"���m������G������?����&���~��iO��z��v�^�m����������?�I�
Non-FIXed in Linux Kernel v3.14.8 2014-06-16 Fw: hyperv: Change the receive buffer size for legacy hosts Re: Regression in hyperv network driver in 3.14 Fw: Debian Bug#748609: ( 3.14-0 : Hyper-V netvsc no networking)
Hi!
2014-03-09
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/net/hyperv?id=99d3016de4f2a29635f5382b0e9bd0e5f2151487
hyperv: Change the receive buffer size for legacy hosts
+
Haiyang Zhang write on May 27, 2014 6:22 PM:
I ( Haiyang Zhang) will ask the maintainer
( for backport id=99d3016de4f2a29635f5382b0e9bd0e5f2151487 ), see if it will be in next 3.14 update as well.
+
Haiyang Zhang on June 25, 2014 19:14 ( UTC+3) :
I ( Haiyang Zhang) have requested that patch for stable branch, but . . . ( VVM: skipped by me)
V.V.M.:
Problem Non-FIXed in Linux Kernel v3.14.8 2014-06-16 :-(
Reason? Roadmap?
(
Without this patch ( i.e. in kernel v3.14 ) LANCard driver/.ko is simply not start in case VM with OS Linux on Hyper-V host with Win 2008 R2 ( Win 2012 R2 not affected)
)
Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/
P.S.
About "rules":
IMHO,
In fact _all_ patch equal 16-1 = 15 :-) i.e.
-#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*16) /* 16MB */ +#define NETVSC_RECEIVE_BUFFER_SIZE (1024*1024*15) /* 15MB */
----- Original Message ----- From: Victor Miasnikov
To: Haiyang Zhang; Abhishek Gupta (LIS)
Cc: KY Srinivasan; Кулешов Андрей Анатольевич; Mathieu Simon; Bernhard Walle
Sent: Wednesday, June 25, 2014 1:19 PM
Subject: Non-FIXed in Linux Kernel v3.14.8 2014-06-16 Fw: hyperv: Change the receive buffer size for legacy hosts Re:
Regression in hyperv network driver in 3.14 Fw: Debian Bug#748609: (linux-image-3.14-0.bpo.1-amd64: Hyper-V netvsc no networking)
Hi!
Problem Non-FIXed in Linux Kernel v3.14.8 2014-06-16 :-(
Reason? Roadmap?
. . .
==
cat /var/log/sysloghv_netvsc vmbus_0_9 (unregistered net_device): Unable to complete receive buffer initialization with NetVsp - status 2 hv_netvsc vmbus_0_9 (unregistered net_device): unable to connect to NetVSP - -22hv_netvsc vmbus_0_9 (unregistered net_device): unable to add netvsc device (ret -22)hv_vmbus: probe failed for device vmbus_0_9 (-22)hv_netvsc: probe of vmbus_0_9 failed with error -22
==
==
It defines a NETVSC_RECEIVE_BUFFER_SIZE_LEGACY of 15MB instead of 16MB used on newer versions of this Hypervisor.
Technically this also affects Jessie when running as guest on Windows Server 2008 R2. ==
==
Yes, this commit is in stable tree:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/net/hyperv?id=99d3016de4f2a29635f5382b0e9bd0e5f2151487
hyperv: Change the receive buffer size for legacy hosts
I will ask the maintainer, see if it will be in next 3.14 update as well.
Thanks,
- Haiyang
==
Best regards, Victor Miasnikov
Blog: http://vvm.blog.tut.by/
P.S.
History of problem:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748609
==
cat /var/log/sysloghv_netvsc vmbus_0_9 (unregistered net_device): Unable to complete receive buffer initialization with NetVsp - status 2 hv_netvsc vmbus_0_9 (unregistered net_device): unable to connect to NetVSP - -22hv_netvsc vmbus_0_9 (unregistered net_device): unable to add netvsc device (ret -22)hv_vmbus: probe failed for device vmbus_0_9 (-22)hv_netvsc: probe of vmbus_0_9 failed with error -22
It defines a NETVSC_RECEIVE_BUFFER_SIZE_LEGACY of 15MB instead of 16MB used on newer versions of this Hypervisor.
Technically this also affects Jessie when running as guest on Windows Server 2008 R2. ==
+
----- Original Message ----- From: "Haiyang Zhang"
To: "Bernhard Walle" ; "KY Srinivasan"
Cc: <[email protected]>
Sent: Tuesday, May 27, 2014 6:22 PM
Subject: RE: Regression in hyperv network driver in 3.14
Quoted 9 lines
-----Original Message-----
From: Bernhard Walle
Sent: Tuesday, May 27, 2014 10:42 AM
To: KY Srinivasan
Cc: Haiyang Zhang; [email protected]
Subject: RE: Regression in hyperv network driver in 3.14Am 2014-05-27 15:43, schrieb KY Srinivasan:
Quoted 9 lines
Quoted 5 lines
Quoted 1 line
Can I provide more information to track down the problem?
This bug has been fixed upstream. The issue is with regards to the older hosts (ws2008 r2) not
Being able to handle the larger receive buffer currently used.Can you point me to the commit that fixed the problem? Woudln't that be something for -stable since the problem is still in 3.14.4.
Yes, this commit is in stable tree:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/drivers/net/hyperv?id=99d3016de4f2a29635f5382b0e9bd0e5f2151487
hyperv: Change the receive buffer size for legacy hosts
I will ask the maintainer, see if it will be in next 3.14 update as well.
Thanks,
- Haiyang
Nryvnz}zjvzz~zjyA