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-ker...@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 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,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

[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

RE: [PATCH net-next 2/4] net/hyperv: use skb_vlan_tag_*() helpers

2018-11-20 Thread Haiyang Zhang
> -Original Message- > From: Michał Mirosław > Sent: Tuesday, November 20, 2018 7:21 AM > To: net...@vger.kernel.org > Cc: KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger > ; de...@linuxdriverproject.org; Ajit Khaparde > ; Leon Romanovsky ; > linux-

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

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

2018-10-15 Thread Haiyang Zhang
From: Haiyang Zhang The VF device's serial number is saved as a string in PCI slot's kobj name, not the slot->number. This patch corrects the netvsc driver, so the VF device can be successfully paired with synthetic NIC. Fixes: 00d7ddba1143 ("hv_netvsc: pair VF based on serial number&qu

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-ker...@vger.kernel.org; > de...@linuxdriverproject.org; vk

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

2018-10-12 Thread Haiyang Zhang
From: Haiyang Zhang The VF device's serial number is saved as a string in PCI slot's kobj name, not the slot->number. This patch corrects the netvsc driver, so the VF device can be successfully paired with synthetic NIC. Fixes: 00d7ddba1143 ("hv_netvsc: pair VF based on serial number&qu

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

2018-10-12 Thread Haiyang Zhang
> -Original Message- > From: Greg KH > Sent: Friday, October 12, 2018 2:36 AM > To: Haiyang Zhang > Cc: da...@davemloft.net; net...@vger.kernel.org; o...@aepfle.de; Stephen > Hemminger ; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; vkuznets >

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

2018-10-11 Thread Haiyang Zhang
> -Original Message- > From: Haiyang Zhang > Sent: Thursday, October 11, 2018 4:15 PM > To: da...@davemloft.net; net...@vger.kernel.org > Cc: Haiyang Zhang ; KY Srinivasan > ; Stephen Hemminger ; > o...@aepfle.de; vkuznets ; > de...@linuxdriverproject.org; linu

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

2018-10-11 Thread Haiyang Zhang
From: Haiyang Zhang The VF device's serial number is saved as a string in PCI slot's kobj name, not the slot->number. This patch corrects the netvsc driver, so the VF device can be successfully paired with synthetic NIC. Fixes: 00d7ddba1143 ("hv_netvsc: pair VF based on serial number&

[PATCH net-next] hv_netvsc: Fix rndis_per_packet_info internal field initialization

2018-09-28 Thread Haiyang Zhang
From: Haiyang Zhang The RSC feature -- a bit field "internal" was added here with total size unchanged: struct rndis_per_packet_info { u32 size; u32 type:31; u32 internal:1; u32 ppi_offset; }; On TX path, we put rndis msg into skb head room, which is

RE: [PATCH] hv_netvsc: Make sure out channel is fully opened on send

2018-09-26 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal > Sent: Wednesday, September 26, 2018 12:34 PM > To: Stephen Hemminger ; net...@vger.kernel.org > Cc: KY Srinivasan ; Haiyang Zhang > ; vkuznets ; > ot...@redhat.com; cavery ; linux- > ker...@vger.kernel.org; de..

RE: [PATCH net-next, v2, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch

2018-09-21 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, September 21, 2018 4:22 PM > To: Haiyang Zhang > Cc: da...@davemloft.net; net...@vger.kernel.org; o...@aepfle.de; linux- > ker...@vger.kernel.org; de...@linuxdriverproject.org; vkuznets > > Subj

RE: [PATCH net-next, v2, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch

2018-09-21 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Friday, September 21, 2018 2:37 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; vk

[PATCH net-next, v2, 3/3] hv_netvsc: Update document for LRO/RSC support

2018-09-21 Thread Haiyang Zhang
From: Haiyang Zhang Update document for LRO/RSC support, and the command line info to change the setting. Signed-off-by: Haiyang Zhang --- Documentation/networking/netvsc.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/networking/netvsc.txt b/Documentation

[PATCH net-next, v2, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch

2018-09-21 Thread Haiyang Zhang
From: Haiyang Zhang LRO/RSC in the vSwitch is a feature available in Windows Server 2019 hosts and later. It reduces the per packet processing overhead by coalescing multiple TCP segments when possible. This patch adds netvsc driver support for this feature. Signed-off-by: Haiyang Zhang

[PATCH net-next, v2, 2/3] hv_netvsc: Add handler for LRO setting change

2018-09-21 Thread Haiyang Zhang
From: Haiyang Zhang This patch adds the handler for LRO setting change, so that a user can use ethtool command to enable / disable LRO feature. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 4 drivers/net/hyperv/netvsc_drv.c | 30

[PATCH net-next,v2,0/3] hv_netvsc: Support LRO/RSC in the vSwitch

2018-09-21 Thread Haiyang Zhang
From: Haiyang Zhang The patch adds support for LRO/RSC in the vSwitch feature. It reduces the per packet processing overhead by coalescing multiple TCP segments when possible. The feature is enabled by default on VMs running on Windows Server 2019 and later. The patch set also adds ethtool

RE: [PATCH net-next, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch

2018-09-20 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger > Sent: Thursday, September 20, 2018 4:48 PM > To: Haiyang Zhang > Cc: Haiyang Zhang ; da...@davemloft.net; > net...@vger.kernel.org; o...@aepfle.de; linux-ker...@vger.kernel.org; > de...@linuxdriverproject.org; vk

[PATCH net-next,3/3] hv_netvsc: Update document for LRO/RSC support

2018-09-20 Thread Haiyang Zhang
From: Haiyang Zhang Update document for LRO/RSC support, and the command line info to change the setting. Signed-off-by: Haiyang Zhang --- Documentation/networking/netvsc.txt | 9 + 1 file changed, 9 insertions(+) diff --git a/Documentation/networking/netvsc.txt b/Documentation

[PATCH net-next, 1/3] hv_netvsc: Add support for LRO/RSC in the vSwitch

2018-09-20 Thread Haiyang Zhang
From: Haiyang Zhang LRO/RSC in the vSwitch is a feature available in Windows Server 2019 hosts and later. It reduces the per packet processing overhead by coalescing multiple TCP segments when possible. This patch adds netvsc driver support for this feature. Signed-off-by: Haiyang Zhang

[PATCH net-next,2/3] hv_netvsc: Add handler for LRO setting change

2018-09-20 Thread Haiyang Zhang
From: Haiyang Zhang This patch adds the handler for LRO setting change, so that a user can use ethtool command to enable / disable LRO feature. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 4 drivers/net/hyperv/netvsc_drv.c | 30

[PATCH net-next,0/3] hv_netvsc: Support LRO/RSC in the vSwitch

2018-09-20 Thread Haiyang Zhang
From: Haiyang Zhang The patch adds support for LRO/RSC in the vSwitch feature. It reduces the per packet processing overhead by coalescing multiple TCP segments when possible. The feature is enabled by default on VMs running on Windows Server 2019 and later. The patch set also adds ethtool

RE: [PATCH net-next 17/22] hv_netvsc: fix return type of ndo_start_xmit function

2018-09-20 Thread Haiyang Zhang
com; m-kariche...@ti.com; > t.sai...@alumni.ethz.ch; jreu...@yaina.de; KY Srinivasan ; > Haiyang Zhang ; wei.l...@citrix.com; > paul.durr...@citrix.com; arvid.bro...@alten.se; pshe...@ovn.org; > d...@openvswitch.org; linux-m...@linux-mips.org; xen- > de...@lists.xenproject.org; net...@vger.ke

RE: [PATCH net-next 17/22] hv_netvsc: fix return type of ndo_start_xmit function

2018-09-20 Thread Haiyang Zhang
@alumni.ethz.ch; jreu...@yaina.de; KY Srinivasan ; > Haiyang Zhang ; wei.l...@citrix.com; > paul.durr...@citrix.com; arvid.bro...@alten.se; pshe...@ovn.org > Cc: linux-ker...@vger.kernel.org; net...@vger.kernel.org; linux- > c...@vger.kernel.org; linux-arm-ker...@lists.infradead.or

[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-ker...@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: split sub-channel setup into async and sync

2018-06-29 Thread Haiyang Zhang
in a single ip command. Reported-by: Thomas Walker Fixes: 8195b1396ec8 ("hv_netvsc: fix deadlock on hotplug") Fixes: 732e49850c5e ("netvsc: fix race on sub channel creation") Signed-off-by: Stephen Hemminger Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h

RE: [PATCH net-next] hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

2018-06-14 Thread Haiyang Zhang
> -Original Message- > From: David Miller > Sent: Thursday, June 14, 2018 8:00 PM > To: Haiyang Zhang ; haiya...@linuxonhyperv.com > Cc: net...@vger.kernel.org; KY Srinivasan ; Stephen > Hemminger ; o...@aepfle.de; > vkuzn...@redhat.com; de...@linuxdriverproj

[PATCH net] hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

2018-06-14 Thread Haiyang Zhang
From: Haiyang Zhang These fields in struct ndis_ipsecv2_offload and struct ndis_rsc_offload are one byte according to the specs. This patch defines them with the right size. These structs are not in use right now, but will be used soon. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv

[PATCH net-next] hv_netvsc: Fix the variable sizes in ipsecv2 and rsc offload

2018-06-14 Thread Haiyang Zhang
From: Haiyang Zhang These fields in struct ndis_ipsecv2_offload and struct ndis_rsc_offload are one byte according to the specs. This patch defines them with the right size. Signed-off-by: Haiyang Zhang --- drivers/net/hyperv/hyperv_net.h | 26 +- 1 file changed, 13

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-ker...@vger.kernel.org; driverdev-devel@linuxdriverproject.org; > Haiyang Zhang <haiya...@microsoft.com>; vkuzn...@redhat.com; > marcelo.ce...@canonical.com &g

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-devel@linuxdriverproject.org>; > Haiyang Zhang <haiya...@microsoft.com>; 'vkuzn...@redhat.com' > <vkuzn...@redhat.com>; 'marcelo.ce...@canonical.com' > <marcelo.ce...@canonical.com> > Subject: [PATCH] PCI:

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

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

[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: 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(+),

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

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

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

2018-03-09 Thread Haiyang Zhang
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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 6/6] PCI: hv: fix 2 hang issues in hv_compose_msi_msg()

2018-03-09 Thread Haiyang Zhang
...@redhat.com > Cc: linux-ker...@vger.kernel.org; driverdev-devel@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

[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

RE: [RFC PATCH 0/2] hv_netvsc: Fix shutdown regression on Win2012 hosts

2018-01-23 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal [mailto:mga...@redhat.com] > Sent: Tuesday, January 23, 2018 4:34 AM > To: net...@vger.kernel.org > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; KY > Srinivasan <k...@microsoft.com>; Haiyang Zhang

[PATCH net-next] hv_netvsc: Use the num_online_cpus() for channel limit

2018-01-19 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Since we no longer localize channel/CPU affiliation within one NUMA node, num_online_cpus() is used as the number of channel cap, instead of the number of processors in a NUMA node. This patch allows a bigger range for tuning the number of ch

[PATCH net-next] hv_netvsc: Use the num_online_cpus() for channel limit

2018-01-19 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> Since we no longer localize channel/CPU affiliation within one NUMA node, num_online_cpus() is used as the number of channel cap, instead of the number of processors in a NUMA node. This patch allows a bigger range for tuning the number of ch

RE: [PATCH] hyperv/netvsc: Delete two error messages for a failed memory allocation in netvsc_init_buf()

2018-01-08 Thread Haiyang Zhang
> -Original Message- > From: SF Markus Elfring [mailto:elfr...@users.sourceforge.net] > Sent: Sunday, January 7, 2018 3:10 PM > To: de...@linuxdriverproject.org; net...@vger.kernel.org; Haiyang Zhang > <haiya...@microsoft.com>; KY Srinivasan <k...@microsoft.c

RE: [PATCH net 3/3] hv_netvsc: Fix the default receive buffer size

2017-12-08 Thread Haiyang Zhang
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, December 8, 2017 5:45 AM > To: Stephen Hemminger <step...@networkplumber.org> > Cc: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft

RE: [PATCH net 1/3] hv_netvsc: Correct the max receive buffer size

2017-12-08 Thread Haiyang Zhang
> -Original Message- > From: Dan Carpenter [mailto:dan.carpen...@oracle.com] > Sent: Friday, December 8, 2017 5:33 AM > To: Stephen Hemminger <step...@networkplumber.org> > Cc: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft

RE: [PATCH 0/4] hv_balloon: fixes for num_pages_onlined accounting and misc improvements

2017-11-29 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Tuesday, November 28, 2017 8:30 AM > To: Alex Ng <ale...@microsoft.com>; KY Srinivasan <k...@microsoft.com> > Cc: linux-ker...@vger.kernel.org; Haiyang Zhang <haiya...@micro

[PATCH] tools/hv: Fix IP reporting by KVP daemon with SRIOV

2017-11-21 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> On Hyper-V the VF NIC has the same MAC as the related synthetic NIC. VF NIC can work under the synthetic NIC transparently, without its own IP address. The existing KVP daemon only gets IP from the first NIC matching a MAC address, and may not b

RE: [PATCH net v2] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-15 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Wednesday, November 15, 2017 9:13 AM > To: net...@vger.kernel.org > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; KY > Srinivasan <k...@microsoft.com>

RE: [PATCH net] hv_netvsc: preserve hw_features on mtu/channels/ringparam changes

2017-11-14 Thread Haiyang Zhang
ct.org; KY Srinivasan <k...@microsoft.com>; Haiyang > Zhang <haiya...@microsoft.com>; Stephen Hemminger > <sthem...@microsoft.com>; Mohammed Gamal <mmo...@redhat.com> > Subject: Re: [PATCH net] hv_netvsc: preserve hw_features on > mtu/channels/ringparam change

RE: [Revised PATCH v2] hv: kvp: Avoid reading past allocated blocks from KVP file

2017-11-08 Thread Haiyang Zhang
> -Original Message- > From: Long Li [mailto:lon...@exchange.microsoft.com] > Sent: Wednesday, November 1, 2017 2:45 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger > <sthem...@microsoft.com>;

RE: [PATCH] hv_netvsc: make const array ver_list static, reduces object code size

2017-09-22 Thread Haiyang Zhang
> -Original Message- > From: Colin King [mailto:colin.k...@canonical.com] > Sent: Friday, September 22, 2017 8:50 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

RE: [PATCH net-next 1/1] hv_netvsc: fix deadlock on hotplug

2017-09-06 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, September 6, 2017 11:19 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <st

RE: [PATCHv2] hv_set_ifconfig.sh double check before setting ip

2017-08-28 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Monday, August 28, 2017 11:16 AM > To: Eduardo Otubo <ot...@redhat.com> > Cc: linux-ker...@vger.kernel.org; de...@linuxdriverproject.org; Haiyang > Zhang <haiya...@micros

RE: [PATCH v1 4/6] vmbus: Switch to use new generic UUID API

2017-07-19 Thread Haiyang Zhang
..@vger.kernel.org; linux-watch...@vger.kernel.org; linux- > e...@vger.kernel.org; Christoph Hellwig <h...@lst.de>; linux- > ker...@vger.kernel.org; Lukas Wunner <lu...@wunner.de> > Cc: Andy Shevchenko <andriy.shevche...@linux.intel.com>; KY Srinivasan > <k...@mi

RE: [PATCH net-next 3/8] netvsc: change order of steps in setting queues

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, July 19, 2017 2:53 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com> &

RE: [PATCH] netvsc: Remove redundant use of ipv6_hdr()

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal [mailto:mga...@redhat.com] > Sent: Wednesday, July 19, 2017 1:48 PM > To: Stephen Hemminger <step...@networkplumber.org> > Cc: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microso

RE: [PATCH] netvsc: Remove redundant use of ipv6_hdr()

2017-07-19 Thread Haiyang Zhang
> -Original Message- > From: Mohammed Gamal [mailto:mga...@redhat.com] > Sent: Wednesday, July 19, 2017 9:19 AM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com> > Cc: de.

RE: [PATCH] netvsc: don't access netdev->num_rx_queues directly

2017-06-21 Thread Haiyang Zhang
> -Original Message- > From: Arnd Bergmann [mailto:a...@arndb.de] > Sent: Wednesday, June 21, 2017 6:17 PM > To: Stephen Hemminger <sthem...@microsoft.com> > Cc: Arnd Bergmann <a...@arndb.de>; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <h

RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-05-24 Thread Haiyang Zhang
> -Original Message- > From: Haiyang Zhang [mailto:haiya...@exchange.microsoft.com] > Sent: Wednesday, May 24, 2017 4:39 PM > To: bhelg...@google.com; linux-...@vger.kernel.org > Cc: Haiyang Zhang <haiya...@microsoft.com>; KY Srinivasan > <k...@microsoft.com

[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-05-24 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch uses the lower 16 bits of the serial number as PCI domain, otherwise some drivers may not be able to handle it. Besides Nvidia drivers, we also found X.org, and DPDK handle only 16 bit PCI domain. Signed-off-by: Haiyang Zhang

RE: [PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-04-20 Thread Haiyang Zhang
> -Original Message- > From: Bjorn Helgaas [mailto:bhelg...@google.com] > Sent: Thursday, April 20, 2017 2:33 PM > To: Haiyang Zhang <haiya...@microsoft.com> > Cc: linux-...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Stephen Hemminger <sthem.

[PATCH] pci-hyperv: Use only 16 bit integer for PCI domain

2017-04-20 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> This patch uses the lower 16 bits of the serial number as PCI domain, otherwise some drivers may not be able to handle it. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> --- drivers/pci/host/pci-hyperv.c |4 +++- 1 file

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 <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

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 <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com>; Stephen Hemminger <sthem...@microsoft.com>; &g

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

2017-02-13 Thread Haiyang Zhang
number of devices. Signed-off-by: Haiyang Zhang <haiya...@microsoft.com> Reviewed-by: K. Y. Srinivasan <k...@microsoft.com> --- 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/

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

2017-02-07 Thread Haiyang Zhang
.com>; Stephen Hemminger > <sthem...@microsoft.com>; Haiyang Zhang <haiya...@microsoft.com>; > o...@aepfle.de; gre...@linuxfoundation.org; linux-ker...@vger.kernel.org; > a...@canonical.com; jasow...@redhat.com; Vitaly Kuznetsov > <vkuzn...@redhat.com> > Subject: [P

RE: [PATCHv1] net-next: treewide use is_vlan_dev() helper function.

2017-02-06 Thread Haiyang Zhang
@chelsio.com; manish.cho...@cavium.com; rahul.ve...@cavium.com; > dept-gelinuxnic...@cavium.com; harish.pa...@cavium.com; KY Srinivasan > <k...@microsoft.com>; Haiyang Zhang <haiya...@microsoft.com>; Stephen > Hemminger <sthem...@microsoft.com>; qlogic-storage-upstr...@

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

2016-12-16 Thread Haiyang Zhang
org; > bjorn.helg...@gmail.com; a...@canonical.com; de...@linuxdriverproject.org; > leann.ogasaw...@canonical.com; Haiyang Zhang <haiya...@microsoft.com> > Subject: RE: [PATCH 3/3] hv_netvsc: Implement VF matching based on > serial numbers > > > > > -Ori

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 <step...@networkplumber.org> > Cc: Haiyang Zhang <haiya...@microsoft.com>; o...@aepfle.de; > jasow...@redhat.com

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 <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsof

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 <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsof

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 <haiya...@microsoft.com> > Cc: Greg KH <gre...@linuxfoundation.org>; KY Srinivasan > <k...@microsof

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 <gre...@linuxfoundation.org> > Cc: KY Srinivasan <k...@microsoft.com>; o...@aepfle.de; Haiyang Zhang > <h

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

2016-12-02 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> 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 <haiya...@microsoft.com> Reviewed-by: K. Y. S

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-ker...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <haiya...@micros

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-ker...@vger.kernel.org; KY Srinivasan <k...@microsoft.com>; > Haiyang Zhang <haiya...@micro

RE: [PATCH] hv: do not lose pending heartbeat vmbus packets

2016-09-19 Thread Haiyang Zhang
> -Original Message- > From: Long Li [mailto:lon...@exchange.microsoft.com] > Sent: Monday, September 12, 2016 11:31 PM > To: KY Srinivasan <k...@microsoft.com>; Haiyang Zhang > <haiya...@microsoft.com> > Cc: de...@linuxdriverproject.org; linux-ker...@v

[PATCH net-next] hv_netvsc: Implement batching of receive completions

2016-08-19 Thread Haiyang Zhang
From: Haiyang Zhang <haiya...@microsoft.com> The existing code uses busy retry when unable to send out receive completions due to full ring buffer. It also gives up retrying after limit is reached, and causes receive buffer slots not being recycled. This patch implements batching of r

RE: [PATCH net v2 5/5] hv_netvsc: fix bonding devices check in netvsc_netdev_event()

2016-08-15 Thread Haiyang Zhang
> -Original Message- > From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] > Sent: Monday, August 15, 2016 11:49 AM > To: net...@vger.kernel.org > Cc: de...@linuxdriverproject.org; linux-ker...@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

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-ker...@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

RE: [PATCH net 2/4] hv_netvsc: reset vf_inject on VF removal

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-ker...@vger.kernel.org; Haiyang > Zhang <haiya...@microsoft.com>; KY Sriniv

  1   2   3   >