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

2019-08-21 Thread Haiyang Zhang
block layout. Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Haiyang Zhang --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c | 253 + .../net/ethernet/mellanox/mlx5/core/lib/hv_v

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

2019-08-22 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 interface driver for software backchannel interface MAINTAINERS

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

2019-08-22 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,v5, 2/6] PCI: hv: Add a Hyper-V PCI interface driver for software backchannel interface

2019-08-22 Thread Haiyang Zhang
This interface 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

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

2019-08-22 Thread Haiyang Zhang
: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Haiyang Zhang --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 1 + drivers/net/ethernet/mellanox/mlx5/core/lib/hv.c | 64 drivers/net/ethernet/mellanox/mlx5/core/lib/hv.h | 22 3 files changed, 87

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

2019-08-22 Thread Haiyang Zhang
block layout. Signed-off-by: Eran Ben Elisha Signed-off-by: Saeed Mahameed Signed-off-by: Haiyang Zhang --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 2 +- .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c | 253 + .../net/ethernet/mellanox/mlx5/core/lib/hv_v

[PATCH net-next,v5, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-22 Thread Haiyang Zhang
Mahameed Signed-off-by: Haiyang Zhang --- .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c | 122 - .../net/ethernet/mellanox/mlx5/core/lib/hv_vhca.h | 1 + 2 files changed, 121 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/hv_vhca.c b

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

2019-08-22 Thread Haiyang Zhang
: Saeed Mahameed Signed-off-by: Haiyang Zhang --- drivers/net/ethernet/mellanox/mlx5/core/Makefile | 1 + drivers/net/ethernet/mellanox/mlx5/core/en.h | 13 ++ .../ethernet/mellanox/mlx5/core/en/hv_vhca_stats.c | 162 + .../ethernet/mellanox/mlx5/core/en

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

2019-08-22 Thread Haiyang Zhang
> -Original Message- > From: David Miller > Sent: Thursday, August 22, 2019 3:33 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.com; bhelg...@google.com; > linux-...@vger.

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

2019-08-22 Thread Haiyang Zhang
> -Original Message- > From: David Miller > Sent: Thursday, August 22, 2019 3:39 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.com; bhelg...@google.com; > linux-...@vger.

[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 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 bloc

[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, 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, 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 dat

[PATCH net-next, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-14 Thread Haiyang Zhang
From: Eran Ben Elisha Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy

RE: [PATCH] hv_netvsc: Fix a memory leak bug

2019-08-14 Thread Haiyang Zhang
> -Original Message- > From: Wenwen Wang > Sent: Wednesday, August 14, 2019 4:16 PM > To: Wenwen Wang > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Sasha Levin ; David S. > Miller ; open list:Hyper-V CORE AND DRIVERS > ; open list:NETWO

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

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

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

2019-08-15 Thread Haiyang Zhang
hat 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/d

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

2019-08-15 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 v6,1/2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-16 Thread Haiyang Zhang
> -Original Message- > From: Lorenzo Pieralisi > Sent: Friday, August 16, 2019 5:52 AM > To: Haiyang Zhang > Cc: sas...@kernel.org; bhelg...@google.com; linux- > hyp...@vger.kernel.org; linux-...@vger.kernel.org; KY Srinivasan > ; Stephen Hemminger ; > o...@aep

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

2019-08-16 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov > Sent: Friday, August 16, 2019 8:28 AM > To: Haiyang Zhang ; sas...@kernel.org; > da...@davemloft.net; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.com; bhelg...@google.com; > linu

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

2019-08-16 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov > Sent: Friday, August 16, 2019 12:16 PM > To: Haiyang Zhang > Cc: KY Srinivasan ; Stephen Hemminger > ; linux-kernel@vger.kernel.org; > sas...@kernel.org; da...@davemloft.net; sae...@mellanox.com; > l...@kernel.

RE: [PATCH v2] PCI: hv: Make functions only used locally static in pci-hyperv.c

2019-08-28 Thread Haiyang Zhang
> -Original Message- > From: Krzysztof Wilczynski On Behalf Of Krzysztof > Wilczynski > Sent: Wednesday, August 28, 2019 3:19 PM > To: Bjorn Helgaas > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Sasha Levin ; Lorenzo > Pieralisi ; linux-...@vg

RE: [PATCH net-next, 2/2] hv_netvsc: Sync offloading features to VF NIC

2019-09-05 Thread Haiyang Zhang
> -Original Message- > From: Jakub Kicinski > Sent: Friday, August 30, 2019 7:05 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...@dav

[PATCH net-next,v2, 2/2] hv_netvsc: Sync offloading features to VF NIC

2019-09-05 Thread Haiyang Zhang
host events. Signed-off-by: Haiyang Zhang Cc: Mark Bloch --- drivers/net/hyperv/netvsc_drv.c | 22 -- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c index 1f1192e..39dddcd 100644 --- a/drivers

[PATCH net-next,v2, 1/2] hv_netvsc: Allow scatter-gather feature to be tunable

2019-09-05 Thread Haiyang Zhang
In a previous patch, the NETIF_F_SG was missing after the code changes. That caused the SG feature to be "fixed". This patch includes it into hw_features, so it is tunable again. Fixes: 23312a3be999 ("netvsc: negotiate checksum and segmentation parameters") Signed-o

[PATCH net-next,v2, 0/2] Enable sg as tunable, sync offload settings to VF NIC

2019-09-05 Thread Haiyang Zhang
This patch set fixes an issue in SG tuning, and sync offload settings from synthetic NIC to VF NIC. Haiyang Zhang (2): hv_netvsc: hv_netvsc: Allow scatter-gather feature to be tunable hv_netvsc: Sync offloading features to VF NIC drivers/net/hyperv/hyperv_net.h | 2 +- drivers/net/hyperv

RE: [PATCH][PATCH net-next] hv_netvsc: Add the support of hibernation

2019-09-12 Thread Haiyang Zhang
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, September 11, 2019 7:38 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; sas...@kernel.org; da...@davemloft.net; > linux-hyp...@vger.kernel.org; net...@vger.kernel.org; linux- > ker...@

RE: [PATCH v3 02/26] PCI: hv: Use PCI_STD_NUM_BARS

2019-09-16 Thread Haiyang Zhang
> -Original Message- > From: Denis Efremov > Sent: Monday, September 16, 2019 4:42 PM > To: Bjorn Helgaas > Cc: Denis Efremov ; linux-kernel@vger.kernel.org; > linux-...@vger.kernel.org; Andrew Murray ; > linux-hyp...@vger.kernel.org; KY Srinivasan ; Haiy

RE: [PATCH v2][PATCH net] hv_netvsc: Add the support of hibernation

2019-09-25 Thread Haiyang Zhang
> -Original Message- > From: Dexuan Cui > Sent: Wednesday, September 25, 2019 6:04 PM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; sas...@kernel.org; da...@davemloft.net; > linux-hyp...@vger.kernel.org; net...@vger.kernel.org; linux- > ker...@

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

2019-08-19 Thread Haiyang Zhang
> -Original Message- > From: Eran Ben Elisha > Sent: Thursday, August 15, 2019 7:35 AM > To: Mark Bloch ; Haiyang Zhang > ; sas...@kernel.org; da...@davemloft.net; > Saeed Mahameed ; l...@kernel.org; > lorenzo.pieral...@arm.com; bhelg...@google.com; linux- > p..

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

2019-08-19 Thread Haiyang Zhang
This patch set adds paravirtual backchannel in software in pci_hyperv, which is required by the mlx5e driver HV VHCA stats agent. The stats agent is responsible on running a periodic rx/tx packets/bytes stats update. Dexuan Cui (1): PCI: hv: Add a paravirtual backchannel in software Haiyang

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

2019-08-19 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,v2 2/6] PCI: hv: Add a Hyper-V PCI interface driver for software backchannel interface

2019-08-19 Thread Haiyang Zhang
This interface 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

[PATCH net-next,v2 5/6] net/mlx5: Add HV VHCA control agent

2019-08-19 Thread Haiyang Zhang
From: Eran Ben Elisha Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy

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

2019-08-19 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_INTERFACE is set. Signed-off-by: Eran

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

2019-08-19 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 dat

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

2019-08-19 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 bloc

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

2019-08-20 Thread Haiyang Zhang
> -Original Message- > From: David Miller > Sent: Tuesday, August 20, 2019 3:29 PM > To: Haiyang Zhang > Cc: sas...@kernel.org; sae...@mellanox.com; l...@kernel.org; > era...@mellanox.com; lorenzo.pieral...@arm.com; bhelg...@google.com; > linux-...@vger.

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

2019-08-20 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 interface driver for software backchannel interface

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

2019-08-20 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 bloc

[PATCH net-next,v3, 5/6] net/mlx5: Add HV VHCA control agent

2019-08-20 Thread Haiyang Zhang
From: Eran Ben Elisha Control agent is responsible over of the control block (ID 0). It should update the PF via this block about every capability change. In addition, upon block 0 invalidate, it should activate all other supported agents with data requests from the PF. Upon agent create/destroy

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

2019-08-20 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,v3, 2/6] PCI: hv: Add a Hyper-V PCI interface driver for software backchannel interface

2019-08-20 Thread Haiyang Zhang
This interface 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

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

2019-08-20 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_INTERFACE is set. Signed-off-by: Eran

RE: [PATCH v2] hv_netvsc: Fix netvsc_start_xmit's return type

2020-04-30 Thread Haiyang Zhang
> -Original Message- > From: Nathan Chancellor > Sent: Thursday, April 30, 2020 2:02 AM > To: Michael Kelley > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; Wei Liu ; linux- > hyp...@vger.kernel.org; net...@vger.kernel.org; linux- > ker...@vger

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] 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

[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 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

[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,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] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-05-19 Thread Haiyang Zhang
nique 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 inser

[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 a

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 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

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 ; >

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

2019-08-12 Thread Haiyang Zhang
ael 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 40b625

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 ; >

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 ; >

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

2019-08-13 Thread Haiyang Zhang
y: 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/controller/pci-hyperv.c ind

[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 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 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

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

2019-08-14 Thread Haiyang Zhang
hat 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/d

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

2019-08-02 Thread Haiyang Zhang
nique 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 inser

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 v2] PCI: hv: Detect and fix Hyper-V PCI domain number collision

2019-08-06 Thread Haiyang Zhang
n, 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 Acked-by: Sasha Levin --- drivers/pci/controller/pci-hyperv.c | 92 +++-- 1 file changed, 79 insertions(+), 13 deletions(-)

[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

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: 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/

[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 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

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

[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

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 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

[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 RFC net-next] netvsc: get rid of completion timeouts

2016-06-08 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, June 8, 2016 10:19 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; KY > Srinivasan ; Haiyang Zhang > Subject: [PATCH RFC

[PATCH net-next] hv_netvsc: Fix VF register on vlan devices

2016-06-02 Thread Haiyang Zhang
Added a condition to avoid vlan devices with same MAC registering as VF. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/net/hyperv/netvsc_drv.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net

RE: [PATCH net-next v2 6/9] net: use core MTU range checking in virt drivers

2016-10-20 Thread Haiyang Zhang
> -Original Message- > From: Jarod Wilson [mailto:ja...@redhat.com] > Sent: Thursday, October 20, 2016 1:55 PM > To: linux-kernel@vger.kernel.org > Cc: Jarod Wilson ; net...@vger.kernel.org; > virtualizat...@lists.linux-foundation.org; KY Srinivasan > ; Haiy

RE: [PATCH net-next] hv_netvsc: remove excessive logging on MTU change

2016-11-28 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, November 28, 2016 12:26 PM > To: net...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang > Subject: [PATCH net-next] hv_netvsc: remove exc

RE: [PATCH v2] Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

2016-11-01 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, November 1, 2016 9:34 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang ; Van De Ven, Arjan > > Subject: [PATC

RE: [PATCH] Drivers: hv: vmbus: Raise retry/wait limits in vmbus_post_msg()

2016-10-26 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, October 26, 2016 7:12 AM > To: de...@linuxdriverproject.org > Cc: linux-kernel@vger.kernel.org; KY Srinivasan ; > Haiyang Zhang > Subject: [PATCH] Drivers: hv: vmbus: Raise

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-14 Thread Haiyang Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: Saturday, December 10, 2016 7:21 AM > To: Stephen Hemminger > Cc: Haiyang Zhang ; o...@aepfle.de; > jasow...@redhat.com; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a

[PATCH net-next] tools: hv: Enable network manager for bonding scripts on RHEL

2016-12-02 Thread Haiyang Zhang
From: Haiyang Zhang We found network manager is necessary on RHEL to make the synthetic NIC, VF NIC bonding operations handled automatically. So, enabling network manager here. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- tools/hv/bondvf.sh |4 ++-- 1 files changed, 2

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-16 Thread Haiyang Zhang
t.org; > leann.ogasaw...@canonical.com; Haiyang Zhang > Subject: RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on > serial numbers > > > > > -Original Message- > > From: devel [mailto:driverdev-devel-boun...@linuxdriverproject.org] On > > Beh

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 3:30 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 4:45 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 1:21 PM > To: Greg KH > Cc: KY Srinivasan ; o...@aepfle.de; Haiyang Zhang > ; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a

RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on serial numbers

2016-12-09 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Friday, December 9, 2016 5:05 PM > To: Haiyang Zhang > Cc: Greg KH ; KY Srinivasan > ; o...@aepfle.de; linux-kernel@vger.kernel.org; > bjorn.helg...@gmail.com; a

RE: [PATCH] netvsc: fix dereference before null check errors

2017-03-26 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Saturday, March 25, 2017 10:27 AM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > de...@linuxdriverproject.org; net...@vger.kernel.org > Cc: kernel-janit...@vger.ker

RE: [PATCH] netvsc: fix unititialized return value in variable ret

2017-03-26 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Saturday, March 25, 2017 10:17 AM > To: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > de...@linuxdriverproject.org; net...@vger.kernel.org > Cc: kernel-janit...@vger.ker

[PATCH] pci-hyperv: Use device serial number as PCI domain

2017-02-13 Thread Haiyang Zhang
number of devices. Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan --- drivers/pci/host/pci-hyperv.c | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/drivers/pci/host/pci-hyperv.c b/drivers/pci/host/pci-hyperv.c index 3efcc7b..b92b565 100644 --- a

[PATCH net-next] tools: hv: Add clean up function for Ubuntu config

2017-02-24 Thread Haiyang Zhang
This patch adds a function to clean up duplicate config info on Ubuntu. Signed-off-by: Haiyang Zhang --- tools/hv/bondvf.sh | 18 ++ 1 files changed, 18 insertions(+), 0 deletions(-) diff --git a/tools/hv/bondvf.sh b/tools/hv/bondvf.sh index 4aa5369..d85968c 100755 --- a

RE: [PATCH] PCI: hv: fix wslot_to_devfn()

2017-02-07 Thread Haiyang Zhang
> -Original Message- > From: Dexuan Cui > Sent: Tuesday, February 7, 2017 4:00 AM > To: Bjorn Helgaas ; linux-...@vger.kernel.org; > de...@linuxdriverproject.org; Jake Oshins > Cc: KY Srinivasan ; Stephen Hemminger > ; Haiyang Zhang ; > o...@aepfle.de; gre...@li

RE: [PATCH net 3/4] hv_netvsc: protect module refcount by checking net_device_ctx->vf_netdev

2016-08-11 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Thursday, August 11, 2016 6:59 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-kernel@vger.kernel.org; Haiyang > Zhang ; KY Srinivasan > Subject: [PAT

<    1   2   3   4   5   >