[PATCH net-next, 6/6] net/mlx5e: Add mlx5e HV VHCA stats agent

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA stats agent is responsible on running a preiodic rx/tx packets/bytes stats update. Currently the supported format is version MLX5_HV_VHCA_STATS_VERSION. Block ID 1 is dedicated for statistics data transfer from the VF to the PF. The reporter fetch the statistics

[PATCH net-next, 2/6] PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface

2019-08-14 Thread Haiyang Zhang
This mini driver is a helper driver allows other drivers to have a common interface with the Hyper-V PCI frontend driver. Signed-off-by: Haiyang Zhang Signed-off-by: Saeed Mahameed --- MAINTAINERS | 1 + drivers/pci/Kconfig | 1 + drivers/pci

[PATCH net-next, 1/6] PCI: hv: Add a paravirtual backchannel in software

2019-08-14 Thread Haiyang Zhang
ff-by: Dexuan Cui Cc: Haiyang Zhang Cc: K. Y. Srinivasan Cc: Stephen Hemminger Signed-off-by: Saeed Mahameed Signed-off-by: Haiyang Zhang --- drivers/pci/controller/pci-hyperv.c | 302 include/linux/hyperv.h | 15 ++ 2 files changed, 317 inser

[PATCH net-next, 3/6] net/mlx5: Add wrappers for HyperV PCIe operations

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha Add wrapper functions for HyperV PCIe read / write / block_invalidate_register operations. This will be used as an infrastructure in the downstream patch for software communication. This will be enabled by default if CONFIG_PCI_HYPERV_MINI is set. Signed-off-by: Eran Ben

[PATCH net-next, 4/6] net/mlx5: Add HV VHCA infrastructure

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha HV VHCA is a layer which provides PF to VF communication channel based on HyperV PCI config channel. It implements Mellanox's Inter VHCA control communication protocol. The protocol contains control block in order to pass messages between the PF and VF drivers, and data

[PATCH net-next, 0/6] Add software backchannel and mlx5e HV VHCA stats

2019-08-14 Thread Haiyang Zhang
Elisha (4): net/mlx5: Add wrappers for HyperV PCIe operations net/mlx5: Add HV VHCA infrastructure net/mlx5: Add HV VHCA control agent net/mlx5e: Add mlx5e HV VHCA stats agent Haiyang Zhang (1): PCI: hv: Add a Hyper-V PCI mini driver for software backchannel interface MAINTAINERS

[PATCH v5,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-14 Thread Haiyang Zhang
that is not in use. Suggested-by: Michael Kelley Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 92 +++-- 1 file changed, 79 insertions(+), 13 deletions(-) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci

[PATCH v5,2/2] PCI: hv: Use bytes 4 and 5 from instance ID as the PCI domain numbers

2019-08-14 Thread Haiyang Zhang
cases of collision, the driver code detects and finds another number that is not in use. Suggested-by: Michael Kelley Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci

RE: [PATCH v4,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-14 Thread Haiyang Zhang
> -Original Message- > From: Bjorn Helgaas > Sent: Wednesday, August 14, 2019 12:34 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; lorenzo.pieral...@arm.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; >

[PATCH v4,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-13 Thread Haiyang Zhang
Kelley Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 92 +++-- 1 file changed, 79 insertions(+), 13 deletions(-) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index 40b6254

[PATCH v4,2/2] PCI: hv: Use bytes 4 and 5 from instance ID as the PCI domain numbers

2019-08-13 Thread Haiyang Zhang
cases of collision, the driver code detects and finds another number that is not in use. Suggested-by: Michael Kelley Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci

RE: [PATCH v3] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-13 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Tuesday, August 13, 2019 10:26 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; >

RE: [PATCH v3] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-13 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Tuesday, August 13, 2019 6:14 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; >

[PATCH v3] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-12 Thread Haiyang Zhang
Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 92 +++-- 1 file changed, 79 insertions(+), 13 deletions(-) diff --git a/drivers/pci/controller/pci-hyperv.c b/drivers/pci/controller/pci-hyperv.c index 40b6254..4f3d97e

RE: [PATCH v2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-12 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Monday, August 12, 2019 11:39 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; >

RE: [PATCH v2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-12 Thread Haiyang Zhang
> -Original Message- > From: LKML haiyangz On Behalf Of Haiyang > Zhang > Sent: Tuesday, August 6, 2019 7:52 PM > To: sas...@kernel.org; bhelg...@google.com; lorenzo.pieral...@arm.com; > linux-hyp...@vger.kernel.org; linux-...@vger.kernel.org > Cc: Haiyang

[PATCH v2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-06 Thread Haiyang Zhang
will detect and find another number that is not in use. Thanks to Michael Kelley for proposing this idea. Signed-off-by: Haiyang Zhang Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 92 +++-- 1 file changed, 79 insertions(+), 13 deletions(-) diff --git

RE: [PATCH] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-06 Thread Haiyang Zhang
> -Original Message- > From: Bjorn Helgaas > Sent: Tuesday, August 6, 2019 2:55 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; lorenzo.pieral...@arm.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; >

[PATCH] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-02 Thread Haiyang Zhang
numbers. In the rare cases of collision, we will detect and find another number that is not in use. Thanks to Michael Kelley for proposing this idea. Signed-off-by: Haiyang Zhang --- drivers/pci/controller/pci-hyperv.c | 91 +++-- 1 file changed, 78 insertions

[PATCH net-next] Name NICs based on vmbus offer and enable async probe by default

2019-07-23 Thread Haiyang Zhang
probing mode by default for faster probing. Also added a modules parameter, probe_type, to set sync probing mode if a user wants to. Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers") Signed-off-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c

[PATCH net] hv_netvsc: Fix extra rcu_read_unlock in netvsc_recv_callback()

2019-07-19 Thread Haiyang Zhang
There is an extra rcu_read_unlock left in netvsc_recv_callback(), after a previous patch that removes RCU from this function. This patch removes the extra RCU unlock. Fixes: 345ac08990b8 ("hv_netvsc: pass netvsc_device to receive callback") Signed-off-by: Haiyang Zhang --- drivers/

RE: [PATCH] PCI: pci-hyperv: fix build errors on non-SYSFS config

2019-07-12 Thread Haiyang Zhang
> -Original Message- > From: Randy Dunlap > Sent: Friday, July 12, 2019 11:53 AM > To: linux-pci ; LKML ker...@vger.kernel.org> > Cc: Matthew Wilcox ; Jake Oshins > ; KY Srinivasan ; Haiyang > Zhang ; Stephen Hemminger > ; Stephen Hemminger > ; Sasha Le

RE: [PATCH net-next] Name NICs based on vmbus offer and enable async probe by default

2019-07-09 Thread Haiyang Zhang
> -Original Message- > From: linux-hyperv-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of David Miller > Sent: Tuesday, July 9, 2019 8:30 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; linux-hyp...@vger.kernel.org; > net...@vger.kernel.org; KY

RE: [PATCH net-next] Name NICs based on vmbus offer and enable async probe by default

2019-07-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, July 9, 2019 7:47 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; linux-hyp...@vger.kernel.org; > net...@vger.kernel.org; KY Srinivasan ; Stephen > Hemminger ; o...@aepfle.de; vkuznets > ; da

[PATCH net-next] Name NICs based on vmbus offer and enable async probe by default

2019-07-09 Thread Haiyang Zhang
probing mode by default for faster probing. Also added a modules parameter, probe_type, to set sync probing mode if a user wants to. Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers") Signed-off-by: Haiyang Zhang --- drivers/hv/channel_mgmt.c

RE: [PATCH v2] PCI: hv: fix pci-hyperv build when SYSFS not enabled

2019-07-03 Thread Haiyang Zhang
> -Original Message- > From: Randy Dunlap > Sent: Wednesday, July 3, 2019 12:59 PM > To: LKML ; linux-pci p...@vger.kernel.org> > Cc: Matthew Wilcox ; Jake Oshins > ; KY Srinivasan ; Haiyang > Zhang ; Stephen Hemminger > ; Sasha Levin ; Bjorn > Helgaas

[PATCH net] hv_netvsc: Set probe mode to sync

2019-06-13 Thread Haiyang Zhang
For better consistency of synthetic NIC names, we set the probe mode to PROBE_FORCE_SYNCHRONOUS. So the names can be aligned with the vmbus channel offer sequence. Fixes: af0a5646cb8d ("use the new async probing feature for the hyperv drivers") Signed-off-by: Haiyang Zhang --- d

[PATCH] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-05-19 Thread Haiyang Zhang
numbers. In the rare cases of collision, we will detect and find another number that is not in use. Thanks to Michael Kelley for proposing this idea. Signed-off-by: Haiyang Zhang --- drivers/pci/controller/pci-hyperv.c | 91 +++-- 1 file changed, 78 insertions

[PATCH hyperv-fixes] hv_netvsc: Fix unwanted wakeup after tx_disable

2019-03-28 Thread Haiyang Zhang
From: Haiyang Zhang After queue stopped, the wakeup mechanism may wake it up again when ring buffer usage is lower than a threshold. This may cause send path panic on NULL pointer when we stopped all tx queues in netvsc_detach and start removing the netvsc device. This patch fix it by adding

RE: [PATCH hyperv-fixes] hv_netvsc: Fix IP header checksum for coalesced packets

2019-02-23 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Saturday, February 23, 2019 11:46 AM > To: Haiyang Zhang > Cc: Haiyang Zhang ; sas...@kernel.org; linux- > hyp...@vger.kernel.org; KY Srinivasan ; Stephen > Hemminger ; o...@aepfle.de; vkuznets > ;

[PATCH hyperv-fixes] hv_netvsc: Fix IP header checksum for coalesced packets

2019-02-22 Thread Haiyang Zhang
From: Haiyang Zhang Incoming packets may have IP header checksum verified by the host. They may not have IP header checksum computed after coalescing. This patch re-compute the checksum when necessary, otherwise the packets may be dropped, because Linux network stack always checks it. Signed

[PATCH v2] MAINTAINERS: Change mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
From: Haiyang Zhang The new mailing list is: linux-hyp...@vger.kernel.org Signed-off-by: Haiyang Zhang --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 86aa227b5782..403d6e4b8257 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH] MAINTAINERS: Add mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
From: Haiyang Zhang The new mailing list is: linux-hyp...@vger.kernel.org Signed-off-by: Haiyang Zhang --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 86aa227b5782..ef65de3cfe1b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -7137,6 +7137,7

RE: [PATCH] MAINTAINERS: Add mailing list for Hyper-V CORE AND DRIVERS

2019-02-20 Thread Haiyang Zhang
> -Original Message- > From: Greg KH > Sent: Wednesday, February 20, 2019 2:52 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; linux-hyp...@vger.kernel.org; > de...@linuxdriverproject.org; Stephen Hemminger > ; linux-kernel@vger.kernel.org > Subject: Re:

[PATCH hyperv-fixes,3/3] Fix hash key value reset after other ops

2019-01-14 Thread Haiyang Zhang
From: Haiyang Zhang Changing mtu, channels, or buffer sizes ops call to netvsc_attach(), rndis_set_subchannel(), which always reset the hash key to default value. That will override hash key changed previously. This patch fixes the problem by save the hash key, then restore it when we re- add

[PATCH hyperv-fixes,2/3] Refactor assignments of struct netvsc_device_info

2019-01-14 Thread Haiyang Zhang
From: Haiyang Zhang These assignments occur in multiple places. The patch refactor them to a function for simplicity. It also puts the struct to heap area for future expension. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/netvsc_drv.c | 134 1 file

[PATCH hyperv-fixes,0/3] fixes for hash key setting issues

2019-01-14 Thread Haiyang Zhang
From: Haiyang Zhang Using ethtool to change Hash key failed on Linux VM runnig on Hyper-V. This patch set fix them. It targets Hyper-V tree, hyperv-fixes branch managed by Sasha Levin . Haiyang Zhang (3): Fix ethtool change hash key error Refactor assignments of struct netvsc_device_info

[PATCH hyperv-fixes,1/3] Fix ethtool change hash key error

2019-01-14 Thread Haiyang Zhang
From: Haiyang Zhang Hyper-V hosts require us to disable RSS before changing RSS key, otherwise the changing request will fail. This patch fixes the coding error. Fixes: ff4a44199012 ("netvsc: allow get/set of RSS indirection table") Reported-by: Wei Hu Signed-off-by: Hai

RE: [PATCH] hv_netvsc: fix typos in code comments

2019-01-03 Thread Haiyang Zhang
> -Original Message- > From: Adrian Vladu > Sent: Thursday, January 3, 2019 2:43 PM > To: linux-kernel@vger.kernel.org > Cc: Adrian Vladu ; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger ; Sasha Levin ; > David S. Miller ; apilotti > > Subject

RE: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up

2018-11-01 Thread Haiyang Zhang
; > Michael Kelley ; vkuznets > Cc: Dexuan Cui ; KY Srinivasan ; > Haiyang Zhang ; sta...@vger.kernel.org > Subject: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by > incorrect clean-up > > From: Dexuan Cui > > In kvp_send_key(), we

RE: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by incorrect clean-up

2018-11-01 Thread Haiyang Zhang
; > Michael Kelley ; vkuznets > Cc: Dexuan Cui ; KY Srinivasan ; > Haiyang Zhang ; sta...@vger.kernel.org > Subject: [PATCH V2 3/5] Drivers: hv: kvp: Fix the recent regression caused by > incorrect clean-up > > From: Dexuan Cui > > In kvp_send_key(), we

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-17 Thread Haiyang Zhang
> -Original Message- > From: Greg Kroah-Hartman > Sent: Wednesday, October 17, 2018 9:17 AM > To: Haiyang Zhang > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Stephen Hemminger > ; David S. Miller ; Sasha > Levin > Subject: Re: [PATCH 4.18 101

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-17 Thread Haiyang Zhang
> -Original Message- > From: Greg Kroah-Hartman > Sent: Wednesday, October 17, 2018 9:17 AM > To: Haiyang Zhang > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Stephen Hemminger > ; David S. Miller ; Sasha > Levin > Subject: Re: [PATCH 4.18 101

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-17 Thread Haiyang Zhang
> -Original Message- > From: Greg Kroah-Hartman > Sent: Wednesday, October 17, 2018 3:46 AM > To: Haiyang Zhang > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Stephen Hemminger > ; David S. Miller ; Sasha > Levin > Subject: Re: [PATCH 4.18 101

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-17 Thread Haiyang Zhang
> -Original Message- > From: Greg Kroah-Hartman > Sent: Wednesday, October 17, 2018 3:46 AM > To: Haiyang Zhang > Cc: linux-kernel@vger.kernel.org; sta...@vger.kernel.org; Stephen Hemminger > ; David S. Miller ; Sasha > Levin > Subject: Re: [PATCH 4.18 101

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-16 Thread Haiyang Zhang
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Greg Kroah-Hartman > Sent: Tuesday, October 16, 2018 1:06 PM > To: linux-kernel@vger.kernel.org > Cc: Greg Kroah-Hartman ; > sta...@vger.kernel.org; Stephen Hemminger ; > David S. Miller

RE: [PATCH 4.18 101/135] hv_netvsc: pair VF based on serial number

2018-10-16 Thread Haiyang Zhang
> -Original Message- > From: linux-kernel-ow...@vger.kernel.org ow...@vger.kernel.org> On Behalf Of Greg Kroah-Hartman > Sent: Tuesday, October 16, 2018 1:06 PM > To: linux-kernel@vger.kernel.org > Cc: Greg Kroah-Hartman ; > sta...@vger.kernel.org; Stephen Hemminger ; > David S. Miller

RE: [PATCH net-next, v2] hv_netvsc: fix vf serial matching with pci slot info

2018-10-12 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, October 12, 2018 6:21 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; vk

RE: [PATCH net-next, v2] hv_netvsc: fix vf serial matching with pci slot info

2018-10-12 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, October 12, 2018 6:21 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; linux-kernel@vger.kernel.org; > de...@linuxdriverproject.org; vk

[PATCH net,v2] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-17 Thread Haiyang Zhang
From: Haiyang Zhang If out ring is full temporarily and receive completion cannot go out, we may still need to reschedule napi if certain conditions are met. Otherwise the napi poll might be stopped forever, and cause network disconnect. Fixes: 7426b1a51803 ("netvsc: optimize re

[PATCH net,v2] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-17 Thread Haiyang Zhang
From: Haiyang Zhang If out ring is full temporarily and receive completion cannot go out, we may still need to reschedule napi if certain conditions are met. Otherwise the napi poll might be stopped forever, and cause network disconnect. Fixes: 7426b1a51803 ("netvsc: optimize re

RE: [PATCH net] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Monday, July 9, 2018 2:15 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; Stephen Hemminger > ; linux-kernel@vger.kernel.org; > de...@linux

RE: [PATCH net] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Monday, July 9, 2018 2:15 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; Stephen Hemminger > ; linux-kernel@vger.kernel.org; > de...@linux

[PATCH net] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-09 Thread Haiyang Zhang
From: Haiyang Zhang If out ring is full temporarily and receive completion cannot go out, we may still need to reschedule napi if other conditions are met. Otherwise the napi poll might be stopped forever, and cause network disconnect. Fixes: 7426b1a51803 ("netvsc: optimize receive comple

[PATCH net] hv_netvsc: Fix napi reschedule while receive completion is busy

2018-07-09 Thread Haiyang Zhang
From: Haiyang Zhang If out ring is full temporarily and receive completion cannot go out, we may still need to reschedule napi if other conditions are met. Otherwise the napi poll might be stopped forever, and cause network disconnect. Fixes: 7426b1a51803 ("netvsc: optimize receive comple

RE: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in hv_compose_msi_msg()

2018-05-25 Thread Haiyang Zhang
minger <sthem...@microsoft.com>; > o...@aepfle.de; a...@canonical.com; jasow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com &g

RE: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in hv_compose_msi_msg()

2018-05-25 Thread Haiyang Zhang
x-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com > Subject: [PATCH] PCI: hv: Fix a __local_bh_enable_ip warning in > hv_compose_msi_msg() > > > Commit de0aa7b2f97d ("PCI: hv: Fix 2 hang issues

RE: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared

2018-05-25 Thread Haiyang Zhang
erdev- > de...@linuxdriverproject.org' <driverdev-de...@linuxdriverproject.org>; > Haiyang Zhang <haiya...@microsoft.com>; 'vkuzn...@redhat.com' > <vkuzn...@redhat.com>; 'marcelo.ce...@canonical.com' > <marcelo.ce...@canonical.com> > Subject: [PATCH] PCI:

RE: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared

2018-05-25 Thread Haiyang Zhang
' ; 'jasow...@redhat.com' > > Cc: 'linux-kernel@vger.kernel.org' ; 'driverdev- > de...@linuxdriverproject.org' ; > Haiyang Zhang ; 'vkuzn...@redhat.com' > ; 'marcelo.ce...@canonical.com' > > Subject: [PATCH] PCI: hv: Do not wait forever on a device that has disappeared

[PATCH net-next] hv_netvsc: Add handlers for ethtool get/set msg level

2018-05-22 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The handlers for ethtool get/set msg level are missing from netvsc. This patch adds them. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/netvsc_drv.c | 16 1 file changed, 16 insertions(+)

[PATCH net-next] hv_netvsc: Add handlers for ethtool get/set msg level

2018-05-22 Thread Haiyang Zhang
From: Haiyang Zhang The handlers for ethtool get/set msg level are missing from netvsc. This patch adds them. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/netvsc_drv.c | 16 1 file changed, 16 insertions(+) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net

[PATCH net-next] hv_netvsc: Add NetVSP v6 and v6.1 into version negotiation

2018-04-17 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch adds the NetVSP v6 and 6.1 message structures, and includes these versions into NetVSC/NetVSP version negotiation process. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyperv

[PATCH net-next] hv_netvsc: Add NetVSP v6 and v6.1 into version negotiation

2018-04-17 Thread Haiyang Zhang
From: Haiyang Zhang This patch adds the NetVSP v6 and 6.1 message structures, and includes these versions into NetVSC/NetVSP version negotiation process. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 164 drivers/net/hyperv

RE: [PATCH v7] Revert "PCI: hv: Use device serial number as PCI domain"

2018-04-12 Thread Haiyang Zhang
> -Original Message- > From: Sridhar Pitchai > Sent: Thursday, April 12, 2018 11:14 AM > To: Bjorn Helgaas <helg...@kernel.org>; Lorenzo Pieralisi > <lorenzo.pieral...@arm.com> > Cc: Haiyang Zhang <haiya...@microsoft.com>; Dexuan Cui > <de..

RE: [PATCH v7] Revert "PCI: hv: Use device serial number as PCI domain"

2018-04-12 Thread Haiyang Zhang
> -Original Message- > From: Sridhar Pitchai > Sent: Thursday, April 12, 2018 11:14 AM > To: Bjorn Helgaas ; Lorenzo Pieralisi > > Cc: Haiyang Zhang ; Dexuan Cui > ; Stephen Hemminger ; > Jake Oshins ; KY Srinivasan ; > Michael Kelley (EOSG) ; > de...

[PATCH net-next] hv_netvsc: Add NetVSP v6 into version negotiation

2018-04-05 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch adds the NetVSP v6 message structures, and includes this version into NetVSC/NetVSP version negotiation process. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyper

[PATCH net-next] hv_netvsc: Add NetVSP v6 into version negotiation

2018-04-05 Thread Haiyang Zhang
From: Haiyang Zhang This patch adds the NetVSP v6 message structures, and includes this version into NetVSC/NetVSP version negotiation process. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 33 + drivers/net/hyperv/netvsc.c | 3 ++- 2

[PATCH net-next] hv_netvsc: Clean up extra parameter from rndis_filter_receive_data()

2018-03-30 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The variables, msg and data, have the same value. This patch removes the extra one. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/rndis_filter.c | 16 +--- 1 file changed, 9 insertions(+),

[PATCH net-next] hv_netvsc: Clean up extra parameter from rndis_filter_receive_data()

2018-03-30 Thread Haiyang Zhang
From: Haiyang Zhang The variables, msg and data, have the same value. This patch removes the extra one. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/rndis_filter.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/net/hyperv/rndis_filter.c b

RE: [PATCH net-next, 2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-27 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger <step...@networkplumber.org> > Sent: Tuesday, March 27, 2018 11:23 AM > To: Haiyang Zhang <haiya...@linuxonhyperv.com> > Cc: Haiyang Zhang <haiya...@microsoft.com>; da...@davemloft.net; > net...@vger

RE: [PATCH net-next, 2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-27 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Tuesday, March 27, 2018 11:23 AM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; Stephen Hemminger > ; linux-kernel@vger.kernel.org; > de...@linux

RE: [PATCH net-next,1/2] hv_netvsc: Fix the return status in RX path

2018-03-24 Thread Haiyang Zhang
> -Original Message- > From: Michael Kelley (EOSG) > Sent: Saturday, March 24, 2018 12:48 PM > To: Haiyang Zhang <haiya...@microsoft.com>; da...@davemloft.net; > net...@vger.kernel.org > Cc: KY Srinivasan <k...@microsoft.com>; Stephen Hemminger > <sth

RE: [PATCH net-next,1/2] hv_netvsc: Fix the return status in RX path

2018-03-24 Thread Haiyang Zhang
> -Original Message- > From: Michael Kelley (EOSG) > Sent: Saturday, March 24, 2018 12:48 PM > To: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org > Cc: KY Srinivasan ; Stephen Hemminger > ; o...@aepfle.de; vkuzn...@redhat.com; > de...@linuxdriverp

RE: [PATCH net-next,2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov <vkuzn...@redhat.com> > Sent: Friday, March 23, 2018 11:17 AM > To: Haiyang Zhang <haiya...@linuxonhyperv.com> > Cc: da...@davemloft.net; net...@vger.kernel.org; Haiyang Zhang > <haiya...@microsoft.com>

RE: [PATCH net-next,2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov > Sent: Friday, March 23, 2018 11:17 AM > To: Haiyang Zhang > Cc: da...@davemloft.net; net...@vger.kernel.org; Haiyang Zhang > ; KY Srinivasan ; Stephen > Hemminger ; o...@aepfle.de; > de...@linuxdriverp

RE: [PATCH 1/3] Vmbus: Add function to report available ring buffer to write in total ring size percentage

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Long Li <lon...@linuxonhyperv.com> > Sent: Thursday, March 22, 2018 8:16 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; > James E . J

RE: [PATCH 1/3] Vmbus: Add function to report available ring buffer to write in total ring size percentage

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Long Li > Sent: Thursday, March 22, 2018 8:16 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > James E . J . Bottomley ; Martin K . Petersen > ; de...@linuxdriverproject.org; linux- > s...@vger.kernel.org; linux-ker

RE: [PATCH 2/3] Netvsc: Use the vmbus functiton to calculate ring buffer percentage

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Long Li <lon...@linuxonhyperv.com> > Sent: Thursday, March 22, 2018 8:16 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; > James E . J

RE: [PATCH 2/3] Netvsc: Use the vmbus functiton to calculate ring buffer percentage

2018-03-23 Thread Haiyang Zhang
> -Original Message- > From: Long Li > Sent: Thursday, March 22, 2018 8:16 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > James E . J . Bottomley ; Martin K . Petersen > ; de...@linuxdriverproject.org; linux- > s...@vger.kernel.org; linux-ker

[PATCH net-next,1/2] hv_netvsc: Fix the return status in RX path

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> As defined in hyperv_net.h, the NVSP_STAT_SUCCESS is one not zero. Some functions returns 0 when it actually means NVSP_STAT_SUCCESS. This patch fixes them. In netvsc_receive(), it puts the last RNDIS packet's receive status for all p

[PATCH net-next,1/2] hv_netvsc: Fix the return status in RX path

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang As defined in hyperv_net.h, the NVSP_STAT_SUCCESS is one not zero. Some functions returns 0 when it actually means NVSP_STAT_SUCCESS. This patch fixes them. In netvsc_receive(), it puts the last RNDIS packet's receive status for all packets in a vmxferpage which may contain

[PATCH net-next,0/2] hv_netvsc: Fix/improve RX path error handling

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Fix the status code returned to the host. Also add range check for rx packet offset and length. Haiyang Zhang (2): hv_netvsc: Fix the return status in RX path hv_netvsc: Add range checking for rx packet offset and length drivers/net/

[PATCH net-next,2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch adds range checking for rx packet offset and length. It may only happen if there is a host side bug. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvs

[PATCH net-next,0/2] hv_netvsc: Fix/improve RX path error handling

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang Fix the status code returned to the host. Also add range check for rx packet offset and length. Haiyang Zhang (2): hv_netvsc: Fix the return status in RX path hv_netvsc: Add range checking for rx packet offset and length drivers/net/hyperv/hyperv_net.h | 1

[PATCH net-next,2/2] hv_netvsc: Add range checking for rx packet offset and length

2018-03-22 Thread Haiyang Zhang
From: Haiyang Zhang This patch adds range checking for rx packet offset and length. It may only happen if there is a host side bug. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 1 + drivers/net/hyperv/netvsc.c | 17 +++-- 2 files changed, 16 insertions

RE: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@mic

RE: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new work when necessary

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; Jack > Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH v3 5/6] PCI: hv: hv_pci_devices_present(): only queue a new > work wh

RE: [PATCH v3 6/6] PCI: hv: fix 2 hang issues in hv_compose_msi_msg()

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@micro

RE: [PATCH v3 6/6] PCI: hv: fix 2 hang issues in hv_compose_msi_msg()

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; > sta...@vger.kernel.org; Jack Morgenstein > Subject: [PATCH v3 6/6] PCI: hv: fix 2 hang issues in hv_compose_msi_msg() > >

RE: [PATCH v3 4/6] PCI: hv: remove hbus->enum_sem

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@mic

RE: [PATCH v3 3/6] PCI: hv: serialize the present/eject work items

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@mic

RE: [PATCH v3 4/6] PCI: hv: remove hbus->enum_sem

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; Jack > Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH v3 4/6] PCI: hv: remove hbus->enum_sem > > Since we serialize th

RE: [PATCH v3 3/6] PCI: hv: serialize the present/eject work items

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; Jack > Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH v3 3/6] PCI: hv: serialize the present/eject work items > > When

RE: [PATCH v3 2/6] PCI: hv: hv_eject_device_work(): remove the bogus test

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@mic

RE: [PATCH v3 1/6] PCI: hv: fix a comment typo in _hv_pcifront_read_config()

2018-03-09 Thread Haiyang Zhang
asow...@redhat.com > Cc: linux-kernel@vger.kernel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > <michael.h.kel...@microsoft.com>; Dexuan Cui <de...@microsof

RE: [PATCH v3 2/6] PCI: hv: hv_eject_device_work(): remove the bogus test

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; Jack > Morgenstein ; sta...@vger.kernel.org > Subject: [PATCH v3 2/6] PCI: hv: hv_eject_device_work(): remove the bogus test > >

RE: [PATCH v3 1/6] PCI: hv: fix a comment typo in _hv_pcifront_read_config()

2018-03-09 Thread Haiyang Zhang
nel.org; driverdev-de...@linuxdriverproject.org; > Haiyang Zhang ; vkuzn...@redhat.com; > marcelo.ce...@canonical.com; Michael Kelley (EOSG) > ; Dexuan Cui ; > sta...@vger.kernel.org > Subject: [PATCH v3 1/6] PCI: hv: fix a comment typo in > _hv_pcifront_read_config() > > No func

RE: Any known soft lockup issue with vfs_write()->fsnotify()?

2018-03-08 Thread Haiyang Zhang
nux-fsde...@vger.kernel.org; Jan Kara <j...@suse.cz>; Amir Goldstein > <amir7...@gmail.com>; Miklos Szeredi <mszer...@redhat.com>; Haiyang > Zhang <haiya...@microsoft.com>; 'linux-kernel@vger.kernel.org' ker...@vger.kernel.org>; Jork Loeser <jork.loe...@microsoft

RE: Any known soft lockup issue with vfs_write()->fsnotify()?

2018-03-08 Thread Haiyang Zhang
Amir Goldstein > ; Miklos Szeredi ; Haiyang > Zhang ; 'linux-kernel@vger.kernel.org' ker...@vger.kernel.org>; Jork Loeser > Subject: Re: Any known soft lockup issue with vfs_write()->fsnotify()? > > Hi! > > On Fri 02-03-18 22:28:50, Dexuan Cui wrote: > > Recently peo

[PATCH] hv_vmbus: Correct the stale comments regarding cpu affinity

2018-01-26 Thread Haiyang Zhang
The comments doesn't match what the current code does, also have a typo. This patch corrects them. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/hv/channel_mgmt.c | 6 ++ include/linux/hyperv.h| 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff

<    1   2   3   4   5   6   7   8   9   >